소스 검색

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