|
|
@@ -385,14 +385,10 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
|
|
|
|
|
|
@Select("select opName = (select top(1) rtrim(name) from a_employee_mi where code = op_id_code)," +
|
|
|
"rtrim(inpatient_no) inpatient_no, admiss_times, dis_diag_no, dis_diag_type," +
|
|
|
- "case when yb_code is null then rtrim(dis_diag) else rtrim(yb_code) end dis_diag," +
|
|
|
- "case when yb_name is null then rtrim(dis_diag_comment) else rtrim(yb_name) end dis_diag_comment," +
|
|
|
+ "rtrim(dis_diag) as dis_diag,rtrim(dis_diag_comment) as dis_diag_comment," +
|
|
|
"op_id_code, op_diag_date, dis_diag_bzfx, dis_diag_status, operation, si_diag_type,admiss_cond," +
|
|
|
- "dept_code," +
|
|
|
- "(select name from zd_unit_code where code = dept_code) as dept_code_name " +
|
|
|
- "from ${tableName} left join zd_icd_code_new on (dis_diag = code) " +
|
|
|
- "where inpatient_no = #{patNo} and admiss_times = #{times} " +
|
|
|
- "order by dis_diag_no ")
|
|
|
+ "dept_code, (select name from zd_unit_code where code=dept_code) as dept_code_name " +
|
|
|
+ "from ${tableName} where inpatient_no=#{patNo} and admiss_times=#{times} order by dis_diag_no ")
|
|
|
List<YbZyDisDiag> zhenDuanXinXi(@Param("patNo") String patNo, @Param("times") Integer times, @Param("tableName") String tableName);
|
|
|
|
|
|
@Select("select *,bldCatName = (select name from bld_cat_code where bld_cat_code.code = bld_cat) " + "from patient_bld_info " + "where pat_no = #{patNo} " + " and times = #{times}")
|