fix:需求单下推,需求单删除
This commit is contained in:
@@ -66,4 +66,7 @@ public class RegionConstant {
|
|||||||
*/
|
*/
|
||||||
public static final String R004 = "R004";
|
public static final String R004 = "R004";
|
||||||
|
|
||||||
|
public static final String H001 = "H001";
|
||||||
|
public static final String H002 = "H002";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ public class MesToWmsController {
|
|||||||
pmDemandPlatingParams.add(param);
|
pmDemandPlatingParams.add(param);
|
||||||
} else if (RegionConstant.ASSEMBLY_PART_STORE_CODE.equals(warehouseCode)) {
|
} else if (RegionConstant.ASSEMBLY_PART_STORE_CODE.equals(warehouseCode)) {
|
||||||
partDemandParams.add(param);
|
partDemandParams.add(param);
|
||||||
} else if (RegionConstant.H005.equals(warehouseCode)) {
|
} else if (RegionConstant.H005.equals(warehouseCode) ||
|
||||||
|
RegionConstant.H001.equals(warehouseCode) || RegionConstant.H002.equals(warehouseCode)) {
|
||||||
structureDemandParams.add(param);
|
structureDemandParams.add(param);
|
||||||
} else {
|
} else {
|
||||||
pmDemandParams.add(param);
|
pmDemandParams.add(param);
|
||||||
|
|||||||
@@ -239,21 +239,23 @@ public class PmDemandServiceImpl extends ServiceImpl<PmDemandMapper, PmDemand> i
|
|||||||
for (PmDemand pmDemand : pmDemands) {
|
for (PmDemand pmDemand : pmDemands) {
|
||||||
ArrayList<PmDemandDto> pmDemandDtos = new ArrayList<>();
|
ArrayList<PmDemandDto> pmDemandDtos = new ArrayList<>();
|
||||||
String id = pmDemand.getId();
|
String id = pmDemand.getId();
|
||||||
PmDemandDto pmDemandDto = new PmDemandDto();
|
if (RegionConstant.R001.equals(pmDemand.getInventory_dis()) && pmDemand.getStatus().equals(DemandStatus.SEND.getValue())){
|
||||||
pmDemandDto.setId(pmDemand.getId());
|
PmDemandDto pmDemandDto = new PmDemandDto();
|
||||||
pmDemandDto.setWorkOrder(pmDemand.getWork_order());
|
pmDemandDto.setId(pmDemand.getId());
|
||||||
pmDemandDto.setCreator(pmDemand.getCreator());
|
pmDemandDto.setWorkOrder(pmDemand.getWork_order());
|
||||||
pmDemandDto.setPriority(pmDemand.getPriority());
|
pmDemandDto.setCreator(pmDemand.getCreator());
|
||||||
pmDemandDto.setSkuCode(pmDemand.getSku_code());
|
pmDemandDto.setPriority(pmDemand.getPriority());
|
||||||
pmDemandDto.setSkuName(pmDemand.getSku_name());
|
pmDemandDto.setSkuCode(pmDemand.getSku_code());
|
||||||
pmDemandDto.setQty(pmDemand.getQty());
|
pmDemandDto.setSkuName(pmDemand.getSku_name());
|
||||||
pmDemandDto.setUnit(pmDemand.getUnit());
|
pmDemandDto.setQty(pmDemand.getQty());
|
||||||
pmDemandDto.setTargetArea(pmDemand.getTarget_area());
|
pmDemandDto.setUnit(pmDemand.getUnit());
|
||||||
pmDemandDto.setProductionLine(pmDemand.getProduction_line());
|
pmDemandDto.setTargetArea(pmDemand.getTarget_area());
|
||||||
pmDemandDto.setCarrierType(pmDemand.getCarrier_type());
|
pmDemandDto.setProductionLine(pmDemand.getProduction_line());
|
||||||
pmDemandDto.setSn(pmDemand.getSn());
|
pmDemandDto.setCarrierType(pmDemand.getCarrier_type());
|
||||||
pmDemandDtos.add(pmDemandDto);
|
pmDemandDto.setSn(pmDemand.getSn());
|
||||||
wmsToZDWmdService.syncDemandOrderDel(pmDemandDtos);
|
pmDemandDtos.add(pmDemandDto);
|
||||||
|
wmsToZDWmdService.syncDemandOrderDel(pmDemandDtos);
|
||||||
|
}
|
||||||
mesApi.delMesDemand(id);
|
mesApi.delMesDemand(id);
|
||||||
this.update(new LambdaUpdateWrapper<PmDemand>()
|
this.update(new LambdaUpdateWrapper<PmDemand>()
|
||||||
.eq(PmDemand::getId, id)
|
.eq(PmDemand::getId, id)
|
||||||
|
|||||||
Reference in New Issue
Block a user