fix(wms): 修复卷材待处理操作完成时的空值设置问题
- 添加对 newCoilIds 的空值和 "-" 值检查 - 避免在无效值情况下设置 processedCoilIds 字段 - 确保只有有效的新卷材 ID 才会被更新到操作记录中
This commit is contained in:
@@ -286,8 +286,9 @@ public class WmsCoilPendingActionServiceImpl implements IWmsCoilPendingActionSer
|
|||||||
action.setActionId(actionId);
|
action.setActionId(actionId);
|
||||||
action.setActionStatus(2); // 已完成
|
action.setActionStatus(2); // 已完成
|
||||||
action.setCompleteTime(new Date());
|
action.setCompleteTime(new Date());
|
||||||
|
if(StringUtils.isNotBlank(newCoilIds) && !newCoilIds.equals("-")) {
|
||||||
action.setProcessedCoilIds(newCoilIds);
|
action.setProcessedCoilIds(newCoilIds);
|
||||||
|
}
|
||||||
// 如果操作人为空,设置当前登录用户为操作人
|
// 如果操作人为空,设置当前登录用户为操作人
|
||||||
if (oldAction.getOperatorId() == null || oldAction.getOperatorName() == null) {
|
if (oldAction.getOperatorId() == null || oldAction.getOperatorName() == null) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user