Bläddra i källkod

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

xiaochan 3 år sedan
förälder
incheckning
732add9446

+ 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);