|
@@ -23,7 +23,7 @@ public interface SiQueryDao {
|
|
*
|
|
*
|
|
* @param patNo 门诊号
|
|
* @param patNo 门诊号
|
|
* @return 门诊患者的身份证和姓名
|
|
* @return 门诊患者的身份证和姓名
|
|
- * */
|
|
|
|
|
|
+ */
|
|
@Select("select social_no,rtrim(name) as name,times from mz_patient_mi where patient_id=#{patNo}")
|
|
@Select("select social_no,rtrim(name) as name,times from mz_patient_mi where patient_id=#{patNo}")
|
|
QryPsnBsInfo selectMzSocialAndName(@Param("patNo") String patNo);
|
|
QryPsnBsInfo selectMzSocialAndName(@Param("patNo") String patNo);
|
|
|
|
|
|
@@ -71,9 +71,9 @@ public interface SiQueryDao {
|
|
/**
|
|
/**
|
|
* 获取患者的医保基本信息
|
|
* 获取患者的医保基本信息
|
|
*
|
|
*
|
|
- * @param patNo 住院号
|
|
|
|
- * @param times 住院次数
|
|
|
|
- * @param ledgerSn 账页号
|
|
|
|
|
|
+ * @param patNo 住院号
|
|
|
|
+ * @param times 住院次数
|
|
|
|
+ * @param ledgerSn 账页号
|
|
* @return 医保基本信息
|
|
* @return 医保基本信息
|
|
*/
|
|
*/
|
|
@Select("select * from t_si_pat_info where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledgerSn}")
|
|
@Select("select * from t_si_pat_info where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledgerSn}")
|
|
@@ -96,14 +96,14 @@ public interface SiQueryDao {
|
|
/**
|
|
/**
|
|
* 获取患者的医保个人编号
|
|
* 获取患者的医保个人编号
|
|
*
|
|
*
|
|
- * @param patNo 住院号
|
|
|
|
|
|
+ * @param patNo 住院号
|
|
* @param medType 医疗类别
|
|
* @param medType 医疗类别
|
|
* @return 患者的医保个人编号
|
|
* @return 患者的医保个人编号
|
|
*/
|
|
*/
|
|
@Select("select top 1 insuplc_admdvs as code, psn_no as name from t_si_pat_info where pat_no=#{patNo} and med_type=#{medType} " +
|
|
@Select("select top 1 insuplc_admdvs as code, psn_no as name from t_si_pat_info where pat_no=#{patNo} and med_type=#{medType} " +
|
|
"and insuplc_admdvs is not null ")
|
|
"and insuplc_admdvs is not null ")
|
|
PureCodeName selectPsnNoByPatNoAndMedType(@Param("patNo") String patNo,
|
|
PureCodeName selectPsnNoByPatNoAndMedType(@Param("patNo") String patNo,
|
|
- @Param("medType") String medType);
|
|
|
|
|
|
+ @Param("medType") String medType);
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取患者的医保基本信息
|
|
* 获取患者的医保基本信息
|
|
@@ -126,9 +126,9 @@ public interface SiQueryDao {
|
|
@Update("update t_si_pat_info set mdtrt_id=#{nullCtnt}, adm_reg_msgid=#{nullCtnt}, setl_id=#{nullCtnt} " +
|
|
@Update("update t_si_pat_info set mdtrt_id=#{nullCtnt}, adm_reg_msgid=#{nullCtnt}, setl_id=#{nullCtnt} " +
|
|
"where pat_no=#{inpatientNo} and times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
"where pat_no=#{inpatientNo} and times=#{admissTimes} and ledger_sn=#{ledgerSn}")
|
|
void clearMdtrtIdForZy(@Param("inpatientNo") String inpatientNo,
|
|
void clearMdtrtIdForZy(@Param("inpatientNo") String inpatientNo,
|
|
- @Param("admissTimes") int admissTimes,
|
|
|
|
- @Param("ledgerSn") int ledgerSn,
|
|
|
|
- @Param("nullCtnt") String nullCtnt);
|
|
|
|
|
|
+ @Param("admissTimes") int admissTimes,
|
|
|
|
+ @Param("ledgerSn") int ledgerSn,
|
|
|
|
+ @Param("nullCtnt") String nullCtnt);
|
|
|
|
|
|
@Select("select type=#{type},pat_no,times,ledger_sn,psn_name,setl_id,gend,setl_time,medfee_sumamt,psn_no " +
|
|
@Select("select type=#{type},pat_no,times,ledger_sn,psn_name,setl_id,gend,setl_time,medfee_sumamt,psn_no " +
|
|
"from t_si_setlinfo where pat_no=#{patNo} and times=#{times} and isnull(revoked,0)!=1")
|
|
"from t_si_setlinfo where pat_no=#{patNo} and times=#{times} and isnull(revoked,0)!=1")
|
|
@@ -274,4 +274,26 @@ public interface SiQueryDao {
|
|
@Param("sn") int sn,
|
|
@Param("sn") int sn,
|
|
@Param("mdtrtId") String mdtrtId,
|
|
@Param("mdtrtId") String mdtrtId,
|
|
@Param("insutype") String insutype);
|
|
@Param("insutype") String insutype);
|
|
|
|
+
|
|
|
|
+ @Select("select a.pat_no,a.times,a.ledger_sn,b.insuplc_admdvs,a.medfee_sumamt,a.insutype,a.hifmi_pay, " +
|
|
|
|
+ "a.hifp_pay,a.cvlserv_pay,a.fund_pay_sumamt,a.acct_pay from t_si_setlinfo a, t_si_pat_info b " +
|
|
|
|
+ "where a.revoked=0 and a.setl_type=21 and a.insutype=#{insutype} and a.setl_time>=#{begntime} " +
|
|
|
|
+ "and a.setl_time<=#{endtime} and a.pat_no=b.pat_no and a.times=b.times and a.ledger_sn=b.ledger_sn " +
|
|
|
|
+ "and b.insuplc_admdvs!='439900' and b.insuplc_admdvs like '43%' and b.insuplc_admdvs not like '4301%' ")
|
|
|
|
+ List<BaseSetlStatistics> selectBaseSetlStatisticsInProvince(@Param("begntime") String begntime,
|
|
|
|
+ @Param("endtime") String endtime,
|
|
|
|
+ @Param("insutype") String insutype);
|
|
|
|
+
|
|
|
|
+ @Select("select a.pat_no,a.times,a.ledger_sn,b.insuplc_admdvs,a.medfee_sumamt,a.insutype,a.hifmi_pay, " +
|
|
|
|
+ "a.hifp_pay,a.cvlserv_pay,a.fund_pay_sumamt,a.acct_pay from t_si_setlinfo a, t_si_pat_info b " +
|
|
|
|
+ "where a.revoked=0 and a.setl_type=21 and a.insutype=#{insutype} and a.setl_time>=#{begntime} " +
|
|
|
|
+ "and a.setl_time<=#{endtime} and a.pat_no=b.pat_no and a.times=b.times and a.ledger_sn=b.ledger_sn " +
|
|
|
|
+ "and b.insuplc_admdvs!='439900' and b.insuplc_admdvs not like '43%' ")
|
|
|
|
+ List<BaseSetlStatistics> selectBaseSetlStatisticsOutProvince(@Param("begntime") String begntime,
|
|
|
|
+ @Param("endtime") String endtime,
|
|
|
|
+ @Param("insutype") String insutype);
|
|
|
|
+
|
|
|
|
+ @Select("select name from t_si_admdvs where code=#{code}")
|
|
|
|
+ String selectAdmdvsName(@Param("code") String code);
|
|
|
|
+
|
|
}
|
|
}
|