fix:指定出库分配明细数量

This commit is contained in:
yuxiaoxiao
2026-12-04 10:52:04 +08:00
parent 299e0102eb
commit ac570a7bdb

View File

@@ -358,7 +358,7 @@ public class VoiceCallbackService {
ioStorInvDis.setQty_unit_id(materialVO.getQty_unit_id());
ioStorInvDis.setQty_unit_name(materialVO.getQty_unit_name());
ioStorInvDis.setWork_status(IOSEnum.INBILL_DIS_STATUS.code("未生成"));
ioStorInvDis.setPlan_qty(materialVO.getFrozen_qty());
ioStorInvDis.setPlan_qty(planQty);
//锁定货位
JSONObject lock_map = new JSONObject();
lock_map.put("struct_code", structattrVechielDto.getStruct_code());
@@ -369,7 +369,7 @@ public class VoiceCallbackService {
iStructattrService.updateStatusByCode("0",lock_map);
//更新组盘表冻结数量状态(组盘表统一存物料编码, 分配明细的物料雪花ID需转换)
iMdPbGroupPlateService.update(new LambdaUpdateWrapper<GroupPlate>()
.set(GroupPlate::getFrozen_qty, structattrVechielDto.getFrozen_qty())
.set(GroupPlate::getFrozen_qty, planQty)
.set(GroupPlate::getUpdate_time, DateUtil.now())
.eq(GroupPlate::getStoragevehicle_code, structattrVechielDto.getStoragevehicle_code())
.eq(GroupPlate::getPcsn, structattrVechielDto.getPcsn())
@@ -380,8 +380,8 @@ public class VoiceCallbackService {
//更新详情
dtl.setBill_status(IOSEnum.BILL_STATUS.code("分配完"));
dtl.setUnassign_qty(planQty.subtract(materialVO.getFrozen_qty()));
dtl.setAssign_qty(materialVO.getFrozen_qty());
dtl.setUnassign_qty(BigDecimal.ZERO);
dtl.setAssign_qty(planQty);
ioStorInvDtlMapper.updateById(dtl);
}