fix(qms): 修复质检数据更新逻辑

- 移除重复的收货项目更新操作
- 添加缺失的收货项目数据更新
- 添加收货主表数据更新
- 确保质检流程中的数据一致性
This commit is contained in:
曹鹏飞 2026-06-15 17:46:13 +08:00
parent f0eee8e2aa
commit 8a0c901fe9
1 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,6 @@ public class QmsController extends BaseController {
// receiveItem.setMaterialDocYear(returnDto.getValue());
inspect.setMaterialDoc105(returnDto.getKey());
inspect.setMaterialDocYear105(returnDto.getValue());
qcReceiveItemService.updateById(receiveItem);
// 检查并更新收货单完成状态
List<WmsQcReceiveItem> allItems = qcReceiveItemService.lambdaQuery()
@ -208,6 +207,8 @@ public class QmsController extends BaseController {
if (!Objects.equals(receive.getIsCheck(), (short) 2)) {
receive.setIsCheck(isCheck);
}
qcReceiveItemService.updateById(receiveItem);
qcReceiveService.updateById(receive);
// qcReceiveItemService.updateCheckNum(inspect.getInspectionQty(), inspect.getNoteNum(), inspect.getLineNumber(), inspect.getItemCode(), receiveItem.getMaterialDoc());
//更新二维码数量
if (CollectionUtil.isNotEmpty(qo.getQrCodes())) {