fix:测试修复问题
This commit is contained in:
@@ -172,7 +172,7 @@ public class MesToWmsController {
|
||||
Map<String, String> warehouseByMaterial = materialWarehouseMappingService.getWarehouseByMaterialCodes(
|
||||
params.stream().map(PmDemandParam::getSkuCode).collect(Collectors.toSet()));
|
||||
for (PmDemandParam param : params) {
|
||||
String warehouseCode = warehouseByMaterial.get(param.getSkuCode());
|
||||
String warehouseCode = warehouseByMaterial.getOrDefault(param.getSkuCode(), param.getWarehouseCode());
|
||||
if (RegionConstant.PLATING_STORE_CODE.equals(warehouseCode)) {
|
||||
pmDemandPlatingParams.add(param);
|
||||
} else if (RegionConstant.ASSEMBLY_PART_STORE_CODE.equals(warehouseCode)) {
|
||||
|
||||
@@ -568,6 +568,8 @@ public class MesToWmsServiceImpl implements MesToWmsService {
|
||||
dataOut.put("transtype", "020");
|
||||
dataOut.put("biztime", LocalDate.now().toString());
|
||||
dataOut.put("cztype", "02");
|
||||
dataOut.put("entrys", entrysOut);
|
||||
callbackOutData.put("data", dataOut);
|
||||
PmStockReturn stockReturnOut = new PmStockReturn();
|
||||
stockReturnOut.setRequest_Id(orderCode);
|
||||
stockReturnOut.setRequest_type(IOSEnum.BILL_TYPE.code("生产出库"));
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<select id="queryPage" resultMap="DemandDtoMap">
|
||||
select d.*,g.qty pkInv
|
||||
from pm_part_demand d
|
||||
left join md_pb_groupplate g on d.sku_code = g.material_code and g.storagevehicle_code = 'VTP0006'
|
||||
left join md_pb_groupplate g on d.sku_code = g.material_code and g.storagevehicle_code = 'VTP0013'
|
||||
where 1 = 1
|
||||
<if test="query.status == 90">
|
||||
and is_deleted = 1
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<select id="queryPage" resultMap="DemandDtoMap">
|
||||
select d.*,g.qty pkInv
|
||||
from pm_demand_plating d
|
||||
left join md_pb_groupplate g on d.sku_code = g.material_code and g.storagevehicle_code = 'VTP0006'
|
||||
left join md_pb_groupplate g on d.sku_code = g.material_code and g.storagevehicle_code = 'VTP0010'
|
||||
where 1 = 1
|
||||
<if test="query.status == 90">
|
||||
and is_deleted = 1
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.common.domain.constant.RegionConstant;
|
||||
import org.nl.common.domain.query.PageQuery;
|
||||
import org.nl.common.exception.BadRequestException;
|
||||
import org.nl.wms.basedata_manage.service.IMdMeMaterialbaseService;
|
||||
@@ -166,7 +167,7 @@ public class PartDemandServiceImpl extends ServiceImpl<PartDemandMapper, PartDem
|
||||
demand.setSn(pmDemandParam.getSn());
|
||||
demand.setMax_load(pmDemandParam.getMaxLoad());
|
||||
demand.setStatus("01");
|
||||
demand.setInventory_dis("6.006");
|
||||
demand.setInventory_dis(RegionConstant.ASSEMBLY_PART_STORE_CODE);
|
||||
this.updateById(demand);
|
||||
}else{
|
||||
this.create(pmDemandParam);
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.nl.common.domain.constant.RegionConstant;
|
||||
import org.nl.common.domain.query.PageQuery;
|
||||
import org.nl.common.exception.BadRequestException;
|
||||
import org.nl.wms.basedata_manage.service.IMdMeMaterialbaseService;
|
||||
@@ -166,7 +167,7 @@ public class PmDemandPlatingServiceImpl extends ServiceImpl<PmDemandPlatingMappe
|
||||
demand.setSn(pmDemandParam.getSn());
|
||||
demand.setMax_load(pmDemandParam.getMaxLoad());
|
||||
demand.setStatus("01");
|
||||
demand.setInventory_dis("6.005");
|
||||
demand.setInventory_dis(RegionConstant.PLATING_STORE_CODE);
|
||||
this.updateById(demand);
|
||||
}else{
|
||||
this.create(pmDemandParam);
|
||||
|
||||
@@ -139,7 +139,7 @@ export default {
|
||||
components: { pagination, crudOperation, rrOperation, udOperation },
|
||||
mixins: [presenter(), header(), form(createDefaultForm()), crud()],
|
||||
cruds() {
|
||||
return CRUD({ title: '部装需求单', url: 'api/pmPartDemand', idField: 'id', sort: 'priority,desc', crudMethod: { ...crudDemand }, optShow: { add: true, reset: true }})
|
||||
return CRUD({ title: '部装需求单', url: 'api/partDemand', idField: 'id', sort: 'priority,desc', crudMethod: { ...crudDemand }, optShow: { add: true, reset: true }})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user