|
|
@ -349,7 +349,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public Map<String, Object> CalculateAllApplicationInCount() { |
|
|
public Map<String, Object> CalculateAllApplicationInCount(List<Integer> list) { |
|
|
|
|
|
|
|
|
// 获取当前时间
|
|
|
// 获取当前时间
|
|
|
long now = System.currentTimeMillis(); |
|
|
long now = System.currentTimeMillis(); |
|
|
@ -362,10 +362,12 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
Map<String, Object> mapForToday = new HashMap<>(); |
|
|
Map<String, Object> mapForToday = new HashMap<>(); |
|
|
mapForToday.put("start", nowTimeForCalc); |
|
|
mapForToday.put("start", nowTimeForCalc); |
|
|
mapForToday.put("end", now); |
|
|
mapForToday.put("end", now); |
|
|
|
|
|
mapForToday.put("list",list); |
|
|
// 用于查询昨天的入库记录
|
|
|
// 用于查询昨天的入库记录
|
|
|
Map<String, Object> mapForYesterday = new HashMap<>(); |
|
|
Map<String, Object> mapForYesterday = new HashMap<>(); |
|
|
mapForYesterday.put("start", yesterdayTimeForCalc); |
|
|
mapForYesterday.put("start", yesterdayTimeForCalc); |
|
|
mapForYesterday.put("end", nowTimeForCalc); |
|
|
mapForYesterday.put("end", nowTimeForCalc); |
|
|
|
|
|
mapForYesterday.put("list",list); |
|
|
|
|
|
|
|
|
// 查询今天目前为止的入库
|
|
|
// 查询今天目前为止的入库
|
|
|
List<ApplicationInRecordP> applicationInRecordPForToday = depositoryRecordMapper.findApplicationInRecordPForAPeriodOfTime(mapForToday); |
|
|
List<ApplicationInRecordP> applicationInRecordPForToday = depositoryRecordMapper.findApplicationInRecordPForAPeriodOfTime(mapForToday); |
|
|
@ -3115,7 +3117,6 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
String applyTime = (String) map.get("endDate"); |
|
|
String applyTime = (String) map.get("endDate"); |
|
|
map.put("endDate", DateUtil.DateTimeByDayToTimeStamp(applyTime)); |
|
|
map.put("endDate", DateUtil.DateTimeByDayToTimeStamp(applyTime)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
List<RoleAndDepository> depositoryAndRole = roleService.findDepositoryAndRole(userByPort.getId()); |
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
List<Integer> depositoryIdList = new ArrayList<>(); |
|
|
for (RoleAndDepository depository : depositoryAndRole |
|
|
for (RoleAndDepository depository : depositoryAndRole |
|
|
@ -3462,9 +3463,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public Map<String, Object> CalculateAllApplicationInAll() { |
|
|
public Map<String, Object> CalculateAllApplicationInAll(List<Integer> list) { |
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
List<ApplicationInRecordP> applicationInRecordPAll = depositoryRecordMapper.findApplicationInRecordPAll(); |
|
|
List<ApplicationInRecordP> applicationInRecordPAll = depositoryRecordMapper.findApplicationInRecordPByDepositoryList(list); |
|
|
Double sum = 0.0; |
|
|
Double sum = 0.0; |
|
|
Integer count = 0; |
|
|
Integer count = 0; |
|
|
for (int i = 0; i < applicationInRecordPAll.size(); i++) { |
|
|
for (int i = 0; i < applicationInRecordPAll.size(); i++) { |
|
|
|