|
@@ -258,28 +258,19 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
@Select("select rtrim(code) as code,rtrim(name) as name from zd_icd_code_new where code=#{code}")
|
|
|
CaseFrontsheetDisdiag selectDiagInfoByCode(@Param("code") String code);
|
|
|
|
|
|
- @Select("select no=rtrim(ssxh)," +
|
|
|
- "name=rtrim(ssmc)," +
|
|
|
- "date=ssrq, " +
|
|
|
- "op_end_date,anst_start_date,anst_end_date, " +
|
|
|
- "level=rtrim(ssjb)," +
|
|
|
- "code=rtrim(ssbm)," +
|
|
|
- "operator=rtrim(ssys)," +
|
|
|
+ @Select("select no=rtrim(ssxh),name=rtrim(ssmc),date=ssrq, " +
|
|
|
+ "op_end_date,anst_start_date,anst_end_date,anaesthesiaor=rtrim(mzys), " +
|
|
|
+ "level=rtrim(ssjb),code=rtrim(ssbm),operator=rtrim(ssys), " +
|
|
|
"operatorName=(select rtrim(name) from a_employee_mi with(nolock) where code=ssys)," +
|
|
|
- "assistantOne=rtrim(sszs1)," +
|
|
|
+ "assistantOne=rtrim(sszs1),assistantTwo=rtrim(sszs2), " +
|
|
|
"assistantOneName=(select rtrim(name) from a_employee_mi with(nolock) where code=sszs1)," +
|
|
|
- "assistantTwo=rtrim(sszs2)," +
|
|
|
"assistantTwoName=(select rtrim(name) from a_employee_mi with(nolock) where code=sszs2)," +
|
|
|
- "cut=rtrim(qkjb), " +
|
|
|
- "heal=rtrim(yhqk), " +
|
|
|
- "anaesthesia=rtrim(mzff)," +
|
|
|
- "anaesthesiaor=rtrim(mzys)," +
|
|
|
+ "cut=rtrim(qkjb),heal=rtrim(yhqk),anaesthesia=rtrim(mzff)," +
|
|
|
"anaesthesiaorName=(select rtrim(name) from a_employee_mi with(nolock) where code=mzys) " +
|
|
|
- "from batj_ba4 with(nolock) " +
|
|
|
- "where bah=#{bah} and zycs=#{times}")
|
|
|
+ "from batj_ba4 with(nolock) where bah=#{bah} and zycs=#{times}")
|
|
|
List<CaseFrontsheetSurgery> getSurgeries(@Param("bah") String bah, @Param("times") int times);
|
|
|
|
|
|
- @Select("select rtrim(code) as code,name from zd_icd9_cm3 where code=#{code}")
|
|
|
+ @Select("select top 1 rtrim(yb_code) as code,rtrim(yb_name) as name from zd_icd9_cm3 where code=#{code}")
|
|
|
CaseFrontsheetSurgery selectSurgeryByCode(@Param("code") String code);
|
|
|
|
|
|
@Update("update a_patient_mi set name=#{name}, " +
|
|
@@ -615,8 +606,8 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
Integer qualityPass(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
- "select rtrim(code) as code,rtrim(name) as name,charge_code as wjwCode,charge_name as wjwName from zd_icd9_cm3 " +
|
|
|
- "where code in " +
|
|
|
+ "select rtrim(yb_code) as code,rtrim(yb_name) as name,charge_code as wjwCode," +
|
|
|
+ "charge_name as wjwName from zd_icd9_cm3 where yb_code in " +
|
|
|
"<foreach collection='surgeries' item='surgery' open='(' separator=',' close=')'>" +
|
|
|
"#{surgery.code}" +
|
|
|
"</foreach>" +
|
|
@@ -644,7 +635,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
@Select("select top 1 insuplc_admdvs from t_si_setlinfo where pat_no=#{patNo} and times=#{times} and revoked=0")
|
|
|
String selectSetlInsuplcAdmdvs(@Param("patNo") String patNo, @Param("times") int times);
|
|
|
|
|
|
- @Select("select top 1 isnull(op_type,9) from zd_icd9_cm3 where code=#{code}")
|
|
|
+ @Select("select top 1 isnull(op_type,9) from zd_icd9_cm3 where yb_code=#{code}")
|
|
|
Integer selectOperationType(@Param("code") String code);
|
|
|
|
|
|
// 病历分型
|