소스 검색

结算单中 不查询违规的手术。

xiaochan 3 년 전
부모
커밋
732add9446
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

+ 2 - 2
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

@@ -162,7 +162,7 @@ public interface UpIdCollectionDao {
             "       (select top(1) rtrim(name) from a_employee_mi where code = mzys) as  anst_dr_name, " +
             "       rtrim(mzys) as anst_dr_code " +
             "       from ${tableName} " +
-            "where zyh = #{patNo} and zycs = #{times}")
+            "where zyh = #{patNo} and zycs = #{times} and isnull(ssbm,'-') <> '-' ")
     List<OprninfoUpld> oprninfoUplds(@Param("patNo") String patNo,
                                      @Param("times") Integer times,
                                      @Param("tableName") String tableName);
@@ -410,7 +410,7 @@ public interface UpIdCollectionDao {
             "       mzys_name = (select top(1) rtrim(name) from a_employee_mi where code = mzys)," +
             "       bah, zyh, zycs, ssxh, ssrq, sstj, ssys, sszs1, sszs2, mzys, ssbm, ssmc, rtrim(mzff) mzff, rtrim(qkjb) qkjb," +
             "rtrim(yhqk) yhqk, ssbfz, fhqk, ssjb, cut_heal" +
-            " from ${tableName} where zyh = #{patNo} and zycs = #{times} ")
+            " from ${tableName} where zyh = #{patNo} and zycs = #{times} and isnull(ssbm,'-') <> '-'")
     List<BatjBa4> shouShuXinXi(@Param("patNo") String patNo,
                                @Param("times") Integer times,
                                @Param("tableName") String tableName);