|
|
|
@ -425,8 +425,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Map<String, Object> CalculateAllApplicationOutCount(String state) { |
|
|
|
public Map<String, Object> CalculateAllApplicationOutCount(String state,List<Integer> list) { |
|
|
|
// 获取昨天出库订单
|
|
|
|
|
|
|
|
// 获取当前时间
|
|
|
|
long now = System.currentTimeMillis(); |
|
|
|
|
|
|
|
@ -439,10 +440,12 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
Map<String, Object> mapForToday = new HashMap<>(); |
|
|
|
mapForToday.put("start", nowTimeForCalc); |
|
|
|
mapForToday.put("end", now); |
|
|
|
mapForToday.put("list",list); |
|
|
|
// 用于查询昨天的出库记录
|
|
|
|
Map<String, Object> mapForYesterday = new HashMap<>(); |
|
|
|
mapForYesterday.put("start", yesterdayTimeForCalc); |
|
|
|
mapForYesterday.put("end", nowTimeForCalc); |
|
|
|
mapForYesterday.put("list",list); |
|
|
|
|
|
|
|
// 用于最终的结果
|
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
@ -1880,7 +1883,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (flagForDepartmentHeadPass) { |
|
|
|
map.put("state", "部门负责人审核通过"); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("depositoryManagerTime", "0"); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
map.put("departmenthead", userByPort.getId()); |
|
|
|
map.put("departmentheadPass", 1); |
|
|
|
} |
|
|
|
@ -1896,7 +1899,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
map.put("state", "部门负责人审核未通过"); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("departmenthead", userByPort.getId()); |
|
|
|
map.put("depositoryManagerTime", "0"); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
} |
|
|
|
} |
|
|
|
// 将当前redis中存储的spno删除
|
|
|
|
@ -2349,7 +2352,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
map.put("departmenthead", userid); |
|
|
|
map.put("departmentheadPass", 1); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("depositoryManagerTime", "0"); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
updateInventoryForOutRefused(record); |
|
|
|
@ -2361,7 +2365,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
map.put("departmenthead", userid); |
|
|
|
map.put("departmentheadPass", 2); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("depositoryManagerTime", "0"); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
} |
|
|
|
} |
|
|
|
// 开启线程更改其他用户卡片模板样式
|
|
|
|
|