瀏覽代碼

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

wuyongyi 2 年之前
父節點
當前提交
3ee320ed62
共有 1 個文件被更改,包括 6 次插入0 次删除
  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 = ?)";