Browse Source

no message

xiaochan 2 years ago
parent
commit
a3dd54c08c

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/JieShouHuiZhenDao.java

@@ -28,7 +28,7 @@ public interface JieShouHuiZhenDao {
             " admiss_date " +
             "from ysh_hz_record a with(nolock) " +
             " inner join view_zy_patient_all b with(nolock) on " +
-            "    (b.inpatient_no = a.inpatient_no)" +
+            "    (b.inpatient_no = a.inpatient_no and a.admiss_times = b.admiss_times)" +
             " ${ew.customSqlSegment} ")
     List<JieShouHuiZhenPojo> getHuiZhenData(@Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);