lighter há 1 ano atrás
pai
commit
8ce4270225

+ 2 - 1
src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzPatientMiMapper.java

@@ -253,7 +253,8 @@ public interface MzPatientMiMapper {
      * @param times
      * @return
      */
-    @Select("select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0 ")
+    @Select("select ((select count(1) from t_si_setlinfo where pat_no=#{patientId} and times=#{times} and revoked=0) + " +
+            "(select count(1) from t_si_presetlinfo where pat_no=#{patientId} and times=#{times}) )")
     int countYbZf(@Param(value = "patientId") String patientId, @Param("times") Integer times);
     /**
      * @description:分页查询病人信息