|
|
|
@ -1285,7 +1285,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
restResponse.setData(""); |
|
|
|
restResponse.setStatusInfo(new StatusInfo("出库失败", "出库失败,库存不足")); |
|
|
|
} |
|
|
|
} else { |
|
|
|
} |
|
|
|
else { |
|
|
|
// 如果是拆单后的出库
|
|
|
|
|
|
|
|
// 用于获取对应的拆单记录
|
|
|
|
@ -1573,7 +1574,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} |
|
|
|
else { |
|
|
|
// 如果拆单库存处理记录不存在
|
|
|
|
|
|
|
|
int scale = splitUnitService.findSplitInfoScaleQuantity(splitInfo, -1L); |
|
|
|
@ -1843,7 +1845,6 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
materialAndPlace.setQuantity(materialAndPlace.getQuantity() - inventory_quantity); |
|
|
|
inventory.setQuantity(inventory.getQuantity() - inventory_quantity); |
|
|
|
|
|
|
|
|
|
|
|
// 修改库存数量
|
|
|
|
materialMapper.updateInventory(inventory); |
|
|
|
placeMapper.updateMaterialAndPlace(materialAndPlace); |
|
|
|
@ -2473,9 +2474,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
|
workwechat = depositoryManager.getWechat(); |
|
|
|
} |
|
|
|
depositoryManagerByQyWx.append(workwechat+","); |
|
|
|
// depositoryManagerByQyWx.append(workwechat+",");
|
|
|
|
} |
|
|
|
// depositoryManagerByQyWx.append("PangFuZhen,");
|
|
|
|
depositoryManagerByQyWx.append("PangFuZhen,"); |
|
|
|
JSONObject jsonObject = qyWxOperationService.sendCcMessageToUsers(depositoryManagerByQyWx.toString(), record.getId(), userAgent, userKey, token); |
|
|
|
|
|
|
|
// 删除redis中本订单
|
|
|
|
@ -2669,9 +2670,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
|
workwechat = manager.getWechat(); |
|
|
|
} |
|
|
|
QyWxUid.append(workwechat+","); |
|
|
|
// QyWxUid.append(workwechat+",");
|
|
|
|
} |
|
|
|
// QyWxUid.append("PangFuZhen,");
|
|
|
|
QyWxUid.append("PangFuZhen,"); |
|
|
|
// 将当前子单的管理员插入到子单记录中
|
|
|
|
minRecord.put("manager", minRecordManage.toString()); |
|
|
|
// 添加子订单到redis中
|
|
|
|
@ -2753,9 +2754,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
|
workwechat = manager.getWechat(); |
|
|
|
} |
|
|
|
QyWxUid.append(workwechat+","); |
|
|
|
// QyWxUid.append(workwechat+",");
|
|
|
|
} |
|
|
|
// QyWxUid.append("PangFuZhen,");
|
|
|
|
QyWxUid.append("PangFuZhen,"); |
|
|
|
minRecord.put("manager", minRecordManage.toString()); |
|
|
|
// 添加子订单到redis中
|
|
|
|
redisPool.getRedisTemplateByDb(15).opsForHash().putAll(minRecordKey, minRecord); |
|
|
|
@ -3379,7 +3380,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
|
workwechat = departmentHead.getWechat(); |
|
|
|
} |
|
|
|
QyWxUid.append(workwechat).append(","); |
|
|
|
// QyWxUid.append(workwechat).append(",");
|
|
|
|
} |
|
|
|
} else { |
|
|
|
// 如果是正常仓库
|
|
|
|
@ -3394,7 +3395,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
|
workwechat = userByPort.getWechat(); |
|
|
|
} |
|
|
|
QyWxUid.append(workwechat).append(","); |
|
|
|
// QyWxUid.append(workwechat).append(",");
|
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
@ -3425,7 +3426,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// QyWxUid.append("PangFuZhen,");
|
|
|
|
QyWxUid.append("PangFuZhen,"); |
|
|
|
if (record.getDepositoryManager() == null) { |
|
|
|
map.put("depositoryManager", depositoryManager.toString()); |
|
|
|
} else { |
|
|
|
@ -3507,7 +3508,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
QyWxUid.append(workwechat).append(","); |
|
|
|
} |
|
|
|
String s = QyWxUid.toString(); |
|
|
|
// s = "PangFuZhen,";
|
|
|
|
s = "PangFuZhen,"; |
|
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toLong(id), s, userAgent, 1, userKey, token); |
|
|
|
}); |
|
|
|
} else if (map.containsKey("balancePosterPass") && !flagForHasOtherDepository) { |
|
|
|
|