Selaa lähdekoodia

feature: 药房客户端下载列表展示

wuyongyi 2 vuotta sitten
vanhempi
commit
3ee320ed62
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      src/main/java/com/ywt/mg/services/DownloadRecordService.java

+ 6 - 0
src/main/java/com/ywt/mg/services/DownloadRecordService.java

@@ -451,6 +451,12 @@ public class DownloadRecordService {
             whereSql += " and ( admin_id = ?)";
             paramList.add(adminId);
         }
+        int pharmacyId = authService.getCurrentPharmacyId();
+        if (pharmacyId > 0) {
+            whereSql += " and ( pharmacy_id = ?)";
+            paramList.add(pharmacyId);
+        }
+
         int status = Checker.getIntegerValue(request.getStatus());
         if(status == 1){
             whereSql += " and ( status = ?)";