派工数据生成新增正常整批返修

master
Leon 3 years ago
parent a08852be3a
commit f0623d8cdf

@ -663,7 +663,7 @@ public class SfcDispatchServiceImpl extends ServiceImpl<SfcDispatchMapper, SfcDi
return;
}
//生成新拆分的批次派工数量
//拆分出来的SFC生产当前工艺路线的后续步骤派工数据
if ("N".equals(category) || "R".equals(category)) {
int stepIdInt = Integer.parseInt(stepId);
List<SfcDispatch> sfcDispatchList = sfcDispatchMapper.findSplitSfcDispatch(site, sfc, stepIdInt);
@ -708,10 +708,13 @@ public class SfcDispatchServiceImpl extends ServiceImpl<SfcDispatchMapper, SfcDi
if (newSfcDispatchList != null && newSfcDispatchList.size() > 0) {
this.saveBatch(newSfcDispatchList);
}
//修改派工数量
sfcDispatchMapper.updateSfcDispatchQty(site, sfc, Integer.parseInt(stepSequence), new Float(sfcModel.getQty()));
}
//返工工艺路线保存派工数据
if ("R".equals(category)) {
//拆出来的SFC生产返修工艺路线的派工数据
if ("R".equals(category) || "A".equals(category)) {
Router routerModel = routerService.getById(routerBo);
if (routerModel == null) {
throw new BaseException("工艺路线[" + StringUtils.trimHandle(routerBo) + "]不存在");
@ -726,9 +729,6 @@ public class SfcDispatchServiceImpl extends ServiceImpl<SfcDispatchMapper, SfcDi
shopOrderReleaseService.sfcDispatch(site, user, shopOrderModel, sfcModel, routerList);
}
//修改派工数量
sfcDispatchMapper.updateSfcDispatchQty(site, sfc, Integer.parseInt(stepSequence), new Float(sfcModel.getQty()));
}
@Override

Loading…
Cancel
Save