|
@@ -59,7 +59,10 @@ public interface SiSetlinfoDao extends BaseMapper<SiSetlinfo> {
|
|
|
@Param("enddate") String enddate);
|
|
|
|
|
|
@Select("select *,sbjjPay=(select fund_payamt from t_si_setldetail " +
|
|
|
- "where setl_id=a.setl_id and fund_pay_type='650100') from t_si_setlinfo a " +
|
|
|
+ "where setl_id=a.setl_id and fund_pay_type='650100'), " +
|
|
|
+ "cyzd=case when #{setltype} = '21' then (select isnull(admiss_diag_str, clinic_diag_str) from zy_patient where a.pat_no = inpatient_no and a.times = admiss_times)" +
|
|
|
+ " else (select isnull(icd_text_new, '') from mz_visit_table where a.pat_no = patient_id and a.times = times) end " +
|
|
|
+ "from t_si_setlinfo a " +
|
|
|
"where setl_type=#{setltype} and revoked=0 and insutype like #{insutype} " +
|
|
|
"and setl_time>=#{begntime} and setl_time<=#{endtime} ${insuplcAdmdvs}")
|
|
|
List<SiSetlinfo> selectMyList(@Param("setltype") String setltype,
|