Ver Fonte

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

wuyongyi há 2 anos atrás
pai
commit
3ee320ed62

+ 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 = ?)";