소스 검색

就诊效验科室条件修改

lihong 2 년 전
부모
커밋
a9260d1020
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/cn/hnthyy/thmz/mapper/his/mz/MzyReqrecMapper.java

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

@@ -183,7 +183,7 @@ public interface MzyReqrecMapper {
             " and visit_doctor =#{doctorCode} ",
             "</when>",
             "<when test='deptCode!=null'>",
-            " and isnull(visit_dept,unit_code) =#{deptCode}",
+            " and (visit_dept = #{deptCode} or unit_code = #{deptCode})",
             "</when>",
              "</script>"})
     Integer selectValidMzyReqrec(@Param("patientId")String patientId,@Param("doctorCode")String doctorCode,@Param("deptCode")String deptCode,@Param("befoDate")Date befoDate);