|
|
|
@ -290,6 +290,7 @@ public class ErfTriConfirmServiceImpl implements ErfTriConfirmService { |
|
|
|
confirm.setProcessStep(processStep); |
|
|
|
confirm.setProcessSeq(processSeq); // ✅ 设置工序顺序 |
|
|
|
confirm.setStatus("待确认"); |
|
|
|
confirm.setCreateTime(new Date()); |
|
|
|
erfExpTriConfirmMapper.insert(confirm); |
|
|
|
log.info("创建工序记录:第{}道 - {}", processSeq, processStep); |
|
|
|
} |
|
|
|
@ -325,7 +326,7 @@ public class ErfTriConfirmServiceImpl implements ErfTriConfirmService { |
|
|
|
process.setApplyNo(data.getApplyNo()); |
|
|
|
process.setProcessStep(data.getProcessStep().trim()); |
|
|
|
process.setStatus("待确认"); |
|
|
|
|
|
|
|
process.setCreateTime(new Date()); |
|
|
|
// 自动计算工序顺序:查询当前最大顺序号 + 1 |
|
|
|
QueryWrapper<ErfExpTriConfirm> maxSeqQuery = new QueryWrapper<>(); |
|
|
|
maxSeqQuery.eq("apply_no", data.getApplyNo()) |
|
|
|
@ -643,6 +644,7 @@ public class ErfTriConfirmServiceImpl implements ErfTriConfirmService { |
|
|
|
newMain.setApplyNo(targetApplyNo); |
|
|
|
newMain.setStatus("待确认"); |
|
|
|
newMain.setConfirmTime(null); |
|
|
|
newMain.setCreateTime(new Date()); |
|
|
|
erfExpTriConfirmMapper.insert(newMain); |
|
|
|
log.info("复制工序主记录: {} - {}", newMain.getProcessSeq(), newMain.getProcessStep()); |
|
|
|
} |
|
|
|
|