소스 검색

no message

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

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