fix(qms): 修复质检数据更新逻辑
- 移除重复的收货项目更新操作 - 添加缺失的收货项目数据更新 - 添加收货主表数据更新 - 确保质检流程中的数据一致性
This commit is contained in:
parent
f0eee8e2aa
commit
8a0c901fe9
|
|
@ -184,7 +184,6 @@ public class QmsController extends BaseController {
|
||||||
// receiveItem.setMaterialDocYear(returnDto.getValue());
|
// receiveItem.setMaterialDocYear(returnDto.getValue());
|
||||||
inspect.setMaterialDoc105(returnDto.getKey());
|
inspect.setMaterialDoc105(returnDto.getKey());
|
||||||
inspect.setMaterialDocYear105(returnDto.getValue());
|
inspect.setMaterialDocYear105(returnDto.getValue());
|
||||||
qcReceiveItemService.updateById(receiveItem);
|
|
||||||
|
|
||||||
// 检查并更新收货单完成状态
|
// 检查并更新收货单完成状态
|
||||||
List<WmsQcReceiveItem> allItems = qcReceiveItemService.lambdaQuery()
|
List<WmsQcReceiveItem> allItems = qcReceiveItemService.lambdaQuery()
|
||||||
|
|
@ -208,6 +207,8 @@ public class QmsController extends BaseController {
|
||||||
if (!Objects.equals(receive.getIsCheck(), (short) 2)) {
|
if (!Objects.equals(receive.getIsCheck(), (short) 2)) {
|
||||||
receive.setIsCheck(isCheck);
|
receive.setIsCheck(isCheck);
|
||||||
}
|
}
|
||||||
|
qcReceiveItemService.updateById(receiveItem);
|
||||||
|
qcReceiveService.updateById(receive);
|
||||||
// qcReceiveItemService.updateCheckNum(inspect.getInspectionQty(), inspect.getNoteNum(), inspect.getLineNumber(), inspect.getItemCode(), receiveItem.getMaterialDoc());
|
// qcReceiveItemService.updateCheckNum(inspect.getInspectionQty(), inspect.getNoteNum(), inspect.getLineNumber(), inspect.getItemCode(), receiveItem.getMaterialDoc());
|
||||||
//更新二维码数量
|
//更新二维码数量
|
||||||
if (CollectionUtil.isNotEmpty(qo.getQrCodes())) {
|
if (CollectionUtil.isNotEmpty(qo.getQrCodes())) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue