소스 검색

feature:处方外传下载

wuyongyi 2 년 전
부모
커밋
3c288073fe
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/main/java/com/ywt/mg/services/PrescriptionServices.java

+ 4 - 0
src/main/java/com/ywt/mg/services/PrescriptionServices.java

@@ -1163,6 +1163,10 @@ public class PrescriptionServices {
         }
 
         int hospitalId = authService.getCurrentHospitalId();
+        if(hospitalId > 0){
+            whereSql += " and ( hospital_id = ?)";
+            paramList.add(hospitalId);
+        }
 
         String pharmacyId = request.getPharmacyId();
         if (!Checker.isNull(pharmacyId)) {