|
|
@ -26,6 +26,7 @@ import org.nl.wms.basedata_manage.service.IStructattrService; |
|
|
|
import org.nl.wms.basedata_manage.service.dao.BsrealStorattr; |
|
|
|
import org.nl.wms.basedata_manage.service.dao.mapper.MdPbStoragevehicleextMapper; |
|
|
|
import org.nl.wms.basedata_manage.service.dto.MdPbStoragevehicleextDto; |
|
|
|
import org.nl.wms.basedata_manage.service.dto.StructattrChangeDto; |
|
|
|
import org.nl.wms.pda.ios_manage.service.PdaIosOutService; |
|
|
|
import org.nl.wms.sch_manage.enums.TaskStatus; |
|
|
|
import org.nl.wms.sch_manage.service.ISchBasePointService; |
|
|
@ -1263,19 +1264,13 @@ public class OutBillServiceImpl extends ServiceImpl<IOStorInvMapper, IOStorInv> |
|
|
|
.set(IOStorInvDis::getWork_status, IOSEnum.INBILL_DIS_STATUS.code("完成")) |
|
|
|
.eq(IOStorInvDis::getIostorinvdis_id, ioStorInvDis.getIostorinvdis_id()) |
|
|
|
); |
|
|
|
//修改库存,恢复库存,手持进行减扣,无需修改,需要载具出库确认后更改
|
|
|
|
// List<JSONObject> updateIvtList = new ArrayList<>();
|
|
|
|
// JSONObject jsonIvt = new JSONObject();
|
|
|
|
// jsonIvt.put("type", IOSConstant.UPDATE_IVT_TYPE_SUB_FROZEN_ADD_CANUSE);
|
|
|
|
// jsonIvt.put("storagevehicle_code", ioStorInvDis.getStoragevehicle_code());
|
|
|
|
// jsonIvt.put("material_id", ioStorInvDis.getMaterial_id());
|
|
|
|
// jsonIvt.put("pcsn", ioStorInvDis.getPcsn());
|
|
|
|
// jsonIvt.put("qty_unit_id", ioStorInvDis.getQty_unit_id());
|
|
|
|
// jsonIvt.put("qty_unit_name", ioStorInvDis.getQty_unit_name());
|
|
|
|
// jsonIvt.put("change_qty", ioStorInvDis.getPlan_qty());
|
|
|
|
// updateIvtList.add(jsonIvt);
|
|
|
|
// iMdPbGroupPlateService.updateIvt(updateIvtList);
|
|
|
|
// 查询该明细下是否还有未完成的分配明细
|
|
|
|
//库存变动:根据冻结数更新物料库存
|
|
|
|
StructattrChangeDto changeDto = StructattrChangeDto.builder() |
|
|
|
.inv(ioStorInvDis.getIostorinv_id()) |
|
|
|
.storagevehicleCode(ioStorInvDis.getStoragevehicle_code()) |
|
|
|
.structCode(ioStorInvDis.getStruct_code()).taskType(task.getConfig_code()).inBound(false).build(); |
|
|
|
iStructattrService.changeStruct(changeDto); |
|
|
|
|
|
|
|
int countDis = ioStorInvDisMapper.selectCount(new LambdaQueryWrapper<>(IOStorInvDis.class) |
|
|
|
.eq(IOStorInvDis::getIostorinvdtl_id, ioStorInvDis.getIostorinvdtl_id()) |
|
|
|
.ne(IOStorInvDis::getWork_status, IOSEnum.INBILL_DIS_STATUS.code("完成")) |
|
|
|