|
|
@@ -4,6 +4,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
+import thyyxxk.webserver.entity.dictionary.CodeName;
|
|
|
import thyyxxk.webserver.entity.inpatient.patient.Overview;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.manage.InstSetlLdgChkBrf;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.manage.clinicinfo.ClinicDiseinfo;
|
|
|
@@ -54,6 +55,28 @@ public interface SiManageDao {
|
|
|
@Param("end") String end,
|
|
|
@Param("acctStatement") String acctStatement);
|
|
|
|
|
|
+ @Select("select med_org_ord as pat_no,times=0,ledger_sn=0, " +
|
|
|
+ "fee_sumamt as medfee_sumamt,psn_acct_pay as acct_pay, " +
|
|
|
+ "fund_pay as fund_pay_sumamt,hosp_part_amt=0 " +
|
|
|
+ "from powersi_mip_setlinfo where insu_type=#{insutype} " +
|
|
|
+ "and clr_type=#{clrType} and ord_state='SETTLED' " +
|
|
|
+ "and clr_optins=#{clrOptins} and trace_time>=#{start} " +
|
|
|
+ "and trace_time<=#{end} and ${acctStatement} and insu_code like '43%'")
|
|
|
+ List<InstSetlLdgChkBrf> selectYbydzfSetlChkBrfs(@Param("clrType") String clrType,
|
|
|
+ @Param("insutype") String insutype,
|
|
|
+ @Param("clrOptins") String clrOptins,
|
|
|
+ @Param("start") String start,
|
|
|
+ @Param("end") String end,
|
|
|
+ @Param("acctStatement") String acctStatement);
|
|
|
+
|
|
|
+ @Select("select clr_optins as code from powersi_mip_setlinfo " +
|
|
|
+ "where insu_type=#{insutype} and clr_type=#{clrType} and ord_state='SETTLED' " +
|
|
|
+ "and trace_time>=#{start} and trace_time<=#{end} and insu_code like '43%'")
|
|
|
+ List<CodeName> selectYdybzfClrOptins(@Param("clrType") String clrType,
|
|
|
+ @Param("insutype") String insutype,
|
|
|
+ @Param("start") String start,
|
|
|
+ @Param("end") String end);
|
|
|
+
|
|
|
@Select("select visitId=pat_no+'_'+cast(times as varchar)+'_'+cast(ledger_sn as varchar), " +
|
|
|
"setl_id,mdtrt_id,psn_no,medins_setl_id as msgId,medfee_sumamt,acct_pay,fund_pay_sumamt, " +
|
|
|
"hosp_part_amt from t_si_setlinfo where setl_type=#{clrType} and revoked=0 and " +
|
|
|
@@ -91,6 +114,20 @@ public interface SiManageDao {
|
|
|
@Param("end") String end,
|
|
|
@Param("acctStatement") String acctStatement);
|
|
|
|
|
|
+ @Select("select pat_no=med_org_ord,times=0,ledger_sn=0, " +
|
|
|
+ "hi_doc_sn as setl_id,mdtrt_id=hi_rgs_sn,psn_no, " +
|
|
|
+ "fee_sumamt as medfee_sumamt, " +
|
|
|
+ "psn_acct_pay as acct_pay, " +
|
|
|
+ "fund_pay as fund_pay_sumamt, " +
|
|
|
+ "ownpay_amt as psn_cash_pay, hosp_part_amt=0 " +
|
|
|
+ "from powersi_mip_setlinfo where clr_type=#{clrType} and ord_state='SETTLED' and clr_optins=#{clrOptins} and " +
|
|
|
+ "${acctStatement} and trace_time>=#{start} and trace_time<=#{end} and insu_code like '43%' ")
|
|
|
+ List<InstSetlLdgChkBrf> selectYbydzfSetlChkBrfs2(@Param("clrType") String clrType,
|
|
|
+ @Param("clrOptins") String clrOptins,
|
|
|
+ @Param("start") String start,
|
|
|
+ @Param("end") String end,
|
|
|
+ @Param("acctStatement") String acctStatement);
|
|
|
+
|
|
|
@Select("select count(1) from dj_user_role where user_code=#{code} and role_id=41")
|
|
|
Integer recoveryTradePermission(@Param("code") String code);
|
|
|
|
|
|
@@ -230,9 +267,9 @@ public interface SiManageDao {
|
|
|
|
|
|
@Select("select mdtrt_id,medinsAdmdvs='430105',medinsLv='03',begntime as adm_date,endtime as dscg_date, " +
|
|
|
"dscgMainDiseCodg=(select rtrim(dis_diag) from zy_dis_diag_yb where inpatient_no=a.pat_no and " +
|
|
|
- " admiss_times=a.times and dis_diag_no=1), " +
|
|
|
+ "admiss_times=a.times and dis_diag_no=1), " +
|
|
|
"dscgMainDiseName=(select rtrim(dis_diag_comment) from zy_dis_diag_yb where inpatient_no=a.pat_no and " +
|
|
|
- " admiss_times=a.times and dis_diag_no=1), " +
|
|
|
+ "admiss_times=a.times and dis_diag_no=1), " +
|
|
|
"drCodg=(select rtrim(op_id_code) from zy_dis_diag_yb where inpatient_no=a.pat_no and " +
|
|
|
" admiss_times=a.times and dis_diag_no=1), " +
|
|
|
"admDeptCodg=(select rtrim(small_dept) from zy_inactpatient where inpatient_no=a.pat_no and admiss_times=a.times), " +
|