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