瀏覽代碼

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)) {