|
|
@ -262,7 +262,7 @@ public class UnplannedissueRequestMainServiceImpl implements UnplannedissueReque |
|
|
|
detailDo.setCreateTime(LocalDateTime.now()); |
|
|
|
// BQ-----QL 校验来源库位基础信息
|
|
|
|
LocationDO locationDO = validatorLocation(detailDo.getFromLocationCode()); |
|
|
|
AreabasicDO areabasicDO = areabasicService.selectAreabasicDOByCode(locationDO.getAreaCode()); |
|
|
|
AreabasicDO areabasicDO = areabasicService.selectAreabasicDOByCode(detailDo.getFromLocationCode()); |
|
|
|
if(locationDO == null){ |
|
|
|
throw exception(UNPLANNEDISSUE_REQUEST_DETAIL_LOCALTIONCODE_NOT_EXISTS, detailDo.getFromLocationCode()); |
|
|
|
} |
|
|
@ -277,7 +277,7 @@ public class UnplannedissueRequestMainServiceImpl implements UnplannedissueReque |
|
|
|
detailDo.setUom(itembasicDO.getUom()); |
|
|
|
detailDo.setProjectCode(itembasicDO.getProject()); |
|
|
|
// DBT——>DBT2——>LO
|
|
|
|
jobUtils.ifInToLocationType(detailDo.getFromLocationCode(), businesstypeDO); |
|
|
|
jobUtils.ifInFromLocationType(detailDo.getFromLocationCode(), businesstypeDO); |
|
|
|
// DBT——>DBT2——>SO
|
|
|
|
jobUtils.ifOutInventoryStatuses(detailDo.getInventoryStatus(), businesstypeDO); |
|
|
|
// TB——>TB1 校验库存余额是否存在
|
|
|
|