|
@@ -6,6 +6,7 @@ import thyyxxk.webserver.entity.medicalinsurance.query.*;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.BrfChrgitm;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.InptntSetlmtLst;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.setllist.OtptntSetlmtLst;
|
|
|
+import thyyxxk.webserver.entity.yibao.ZyActpatient;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
@@ -283,8 +284,8 @@ public interface SiQueryDao {
|
|
|
"from t_si_setlinfo a where revoked=0 and setl_type=21 and insutype like #{insutype} and setl_time>=#{begntime} " +
|
|
|
"and setl_time<=#{endtime} and insuplc_admdvs='439900' ")
|
|
|
List<BaseSetlStatistics> selectBaseSetlStatisticsInProvinceLevel(@Param("begntime") String begntime,
|
|
|
- @Param("endtime") String endtime,
|
|
|
- @Param("insutype") String insutype);
|
|
|
+ @Param("endtime") String endtime,
|
|
|
+ @Param("insutype") String insutype);
|
|
|
|
|
|
@Select("select pat_no,times,ledger_sn,insuplc_admdvs,medfee_sumamt,insutype,hifmi_pay,hifp_pay,cvlserv_pay, " +
|
|
|
"fundPaySumamt=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
@@ -294,8 +295,8 @@ public interface SiQueryDao {
|
|
|
"from t_si_setlinfo a where revoked=0 and setl_type=21 and insutype like #{insutype} and setl_time>=#{begntime} " +
|
|
|
"and setl_time<=#{endtime} and insuplc_admdvs!='439900' and insuplc_admdvs like '4301%' ")
|
|
|
List<BaseSetlStatistics> selectBaseSetlStatisticsInChangshaCity(@Param("begntime") String begntime,
|
|
|
- @Param("endtime") String endtime,
|
|
|
- @Param("insutype") String insutype);
|
|
|
+ @Param("endtime") String endtime,
|
|
|
+ @Param("insutype") String insutype);
|
|
|
|
|
|
@Select("select pat_no,times,ledger_sn,insuplc_admdvs,medfee_sumamt,insutype,hifmi_pay,hifp_pay,cvlserv_pay, " +
|
|
|
"fundPaySumamt=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
@@ -316,8 +317,8 @@ public interface SiQueryDao {
|
|
|
"from t_si_setlinfo a where revoked=0 and setl_type=21 and insutype like #{insutype} and setl_time>=#{begntime} " +
|
|
|
"and setl_time<=#{endtime} and insuplc_admdvs!='439900' and insuplc_admdvs not like '43%' ")
|
|
|
List<BaseSetlStatistics> selectBaseSetlStatisticsOutProvince(@Param("begntime") String begntime,
|
|
|
- @Param("endtime") String endtime,
|
|
|
- @Param("insutype") String insutype);
|
|
|
+ @Param("endtime") String endtime,
|
|
|
+ @Param("insutype") String insutype);
|
|
|
|
|
|
@Select("select pat_no,times,ledger_sn,insuplc_admdvs,medfee_sumamt,insutype,hifmi_pay,hifp_pay,cvlserv_pay, " +
|
|
|
"fundPaySumamt=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
|
|
@@ -336,4 +337,40 @@ public interface SiQueryDao {
|
|
|
@Select("select name,code='' from t_si_admdvs where code=#{code}")
|
|
|
PureCodeName selectAdmdvsName(@Param("code") String code);
|
|
|
|
|
|
+
|
|
|
+ @Select("<script>" +
|
|
|
+ "select rtrim(a.inpatient_no) inpatient_no," +
|
|
|
+ " a.admiss_times," +
|
|
|
+ " rtrim(name) name," +
|
|
|
+ " refer_physician_name = (select rtrim(name) from a_employee_mi where code = refer_physician)," +
|
|
|
+ " small_dept_name = (select rtrim(name) from zd_unit_code where code = small_dept)," +
|
|
|
+ " responce_type_name = (select rtrim(name) from zy_zd_responce_type where code = responce_type)," +
|
|
|
+ " total_charge," +
|
|
|
+ " sex," +
|
|
|
+ " rtrim(c.dis_diag) dis_diag," +
|
|
|
+ " rtrim(c.dis_diag_comment) dis_diag_comment " +
|
|
|
+ "from zy_actpatient a " +
|
|
|
+ " left join t_si_pat_info b on (a.inpatient_no = b.pat_no and a.admiss_times = b.times) " +
|
|
|
+ " left join zy_dis_diag_yb c on (a.inpatient_no = c.inpatient_no and a.admiss_times = c.admiss_times and c.dis_diag_no = 1) " +
|
|
|
+ "where " +
|
|
|
+ "setl_id is null " +
|
|
|
+ "<if test=\"startTime !=null and startTime != '' \">" +
|
|
|
+ " and admiss_date >= #{startTime} and admiss_date <= #{endTime} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"patNo != null and patNo != '' \">" +
|
|
|
+ " and a.inpatient_no = #{patNo} /* 住院号 */ " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"name != null and name != ''\">" +
|
|
|
+ " and name like #{name} /*姓名*/ " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"certno !=null and certno != '' \">" +
|
|
|
+ " and certno = '' /*身份证号码*/" +
|
|
|
+ "</if>" +
|
|
|
+ "</script>")
|
|
|
+ List<ZyActpatient> zaiYuanHuanZheXinXi(@Param("patNo") String patNo,
|
|
|
+ @Param("startTime") String startTime,
|
|
|
+ @Param("endTime") String endTime,
|
|
|
+ @Param("name") String name,
|
|
|
+ @Param("certno") String certno);
|
|
|
+
|
|
|
}
|