|
|
|
@ -1917,7 +1917,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
// 将当前redis中存储的spno删除
|
|
|
|
redisTemplate.delete(spNo); |
|
|
|
} |
|
|
|
} else { |
|
|
|
} |
|
|
|
else { |
|
|
|
// 如果是部门负责人
|
|
|
|
|
|
|
|
String departmentheadTime = recordP.getDepartmentheadTime(); |
|
|
|
@ -1959,7 +1960,6 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (flag) { |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
|
|
map.put("id", outId); |
|
|
|
return depositoryRecordMapper.updateApplicationOutRecord(map); |
|
|
|
|
|
|
|
@ -2168,6 +2168,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
}).start(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
// 如果没有通过
|
|
|
|
updateInventoryForOutRefused(record); |
|
|
|
@ -2210,7 +2211,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toInteger(id), s, userAgent, 1); |
|
|
|
} |
|
|
|
}).start(); |
|
|
|
} else { |
|
|
|
} |
|
|
|
else { |
|
|
|
String result = ""; |
|
|
|
// 开启线程更改其他用户卡片模板样式
|
|
|
|
String simpleTime = DateUtil.getSimpleTime(new Date()); |
|
|
|
@ -2225,6 +2227,12 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if(depositoryManagerPass == null){ |
|
|
|
depositoryManagerPass = (Integer) map.get("departmentheadPass"); |
|
|
|
} |
|
|
|
String departmentheadTime = record.getDepartmentheadTime(); |
|
|
|
// 用于标识部门负责人是否审批
|
|
|
|
boolean flagFordepartmentTime = false; // 默认审批过
|
|
|
|
if("0".equals(departmentheadTime)){ |
|
|
|
flagFordepartmentTime = true; |
|
|
|
} |
|
|
|
if (depositoryManagerPass == 1) { |
|
|
|
// 如果审核通过
|
|
|
|
result = "通过"; |
|
|
|
@ -2309,6 +2317,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
}).start(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*for (int i = 0; i < depositoryIdList.size(); i++) { |
|
|
|
Object o = minIdByDepository.get("depository" + depositoryIdList.get(i)); |
|
|
|
if (o != null) { |
|
|
|
@ -2362,22 +2372,23 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
// 将主订单插入到redis中
|
|
|
|
redisTemplate.opsForHash().put("record:" + record.getId(), "minRecord", minRecordByMain.toString()); |
|
|
|
map.put("state", "仓储中心负责人审核通过"); |
|
|
|
if (!flagForHasOtherDepository) { |
|
|
|
|
|
|
|
if (flagFordepartmentTime) { |
|
|
|
map.put("state", "部门负责人审核通过"); |
|
|
|
map.put("departmenthead", userid); |
|
|
|
map.put("departmentheadPass", 1); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
|
|
|
|
map.put("departmenthead", userToken.getId()); |
|
|
|
map.put("departmentheadPass", 1); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
updateInventoryForOutRefused(record); |
|
|
|
result = "驳回"; |
|
|
|
map.put("pass", 2); |
|
|
|
map.put("state", "仓储中心负责人审核未通过"); |
|
|
|
if (!flagForHasOtherDepository) { |
|
|
|
if (flagFordepartmentTime) { |
|
|
|
map.put("state", "部门负责人审核未通过"); |
|
|
|
map.put("departmenthead", userid); |
|
|
|
map.put("departmenthead", userToken.getId()); |
|
|
|
map.put("departmentheadPass", 2); |
|
|
|
map.put("departmentheadTime", DateUtil.DateTimeToTimeStamp(simpleTime)); |
|
|
|
map.put("depositoryManagerPass", 4); |
|
|
|
|