Browse Source

1.干线bug修复

dist.1.3.0
zhenghaoyu 7 months ago
parent
commit
256a776621
  1. 1
      blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java
  2. 1
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml
  3. 4
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml
  4. 2
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml
  5. 21
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java
  6. 6
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

1
blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/LoadCarsDTO.java

@ -63,6 +63,7 @@ public class LoadCarsDTO implements Serializable {
private List<ProductInfoDTO> productInfoList = new ArrayList<>(); private List<ProductInfoDTO> productInfoList = new ArrayList<>();
private String goodsName;
private String orderCode; private String orderCode;
private String trayCode; private String trayCode;

1
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineBillladingWaybillMapper.xml

@ -58,7 +58,6 @@
left join logpm_warehouse_waybill lww on lww.waybill_no = ltbw.waybill_no left join logpm_warehouse_waybill lww on lww.waybill_no = ltbw.waybill_no
where ltbw.billlading_id = #{billladingId} where ltbw.billlading_id = #{billladingId}
and ltbw.is_deleted = 0 and ltbw.is_deleted = 0
and ltbw.real_num > 0
</select> </select>
<update id="updateDataByBillladingWaybillId" > <update id="updateDataByBillladingWaybillId" >

4
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml

@ -281,8 +281,8 @@
<if test="param.destinationWarehouseName != null and param.destinationWarehouseName != ''"> <if test="param.destinationWarehouseName != null and param.destinationWarehouseName != ''">
and lww.destination_warehouse_name like concat('%',#{param.destinationWarehouseName},'%') and lww.destination_warehouse_name like concat('%',#{param.destinationWarehouseName},'%')
</if> </if>
<if test="param.productName != null and param.productName != ''"> <if test="param.goodsName != null and param.goodsName != ''">
and lww.goods_name like concat('%',#{param.productName},'%') and lww.goods_name like concat('%',#{param.goodsName},'%')
</if> </if>
<if test="param.shipper != null and param.shipper != ''"> <if test="param.shipper != null and param.shipper != ''">
and lww.shipper like concat('%',#{param.shipper},'%') and lww.shipper like concat('%',#{param.shipper},'%')

2
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadScanMapper.xml

@ -509,7 +509,7 @@
<select id="findUnloadLoadScanWaybillList" resultType="com.logpm.trunkline.vo.LoadScanWaybillVO"> <select id="findUnloadLoadScanWaybillList" resultType="com.logpm.trunkline.vo.LoadScanWaybillVO">
select waybill_no waybillNo, select waybill_no waybillNo,
sum(num) num, sum(num) num,
sum(IF(unload_node_id = null,0,unload_num)) unloadNum IFNULL(sum(IF(unload_node_id = null,0,unload_num)),0) unloadNum
from logpm_trunkline_cars_load_scan from logpm_trunkline_cars_load_scan
where load_id = #{loadId} where load_id = #{loadId}
and final_node_id = #{nodeId} and final_node_id = #{nodeId}

21
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

@ -1823,15 +1823,18 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
Map<String, ImportStandardOuPaiDTO> importStandardOuPaiDTOMap = importStandardOuPaiDTOS.stream().collect(Collectors.toMap(ImportStandardOuPaiDTO::getOrderPackageCode, Function.identity(), (a, b) -> a)); Map<String, ImportStandardOuPaiDTO> importStandardOuPaiDTOMap = importStandardOuPaiDTOS.stream().collect(Collectors.toMap(ImportStandardOuPaiDTO::getOrderPackageCode, Function.identity(), (a, b) -> a));
List<TrunklineAdvanceDetailEntity> hasAdvanceDetailList = advanceDetailService.findListByOrderPackageCodeList(hasOrderPackageCodeList); List<TrunklineAdvanceDetailEntity> hasAdvanceDetailList = advanceDetailService.findListByOrderPackageCodeList(hasOrderPackageCodeList);
hasAdvanceDetailList.forEach(advanceDetailEntity -> { hasAdvanceDetailList.forEach(advanceDetailEntity -> {
ImportStandardOuPaiDTO importStandardOuPaiDTO = importStandardOuPaiDTOMap.get(advanceDetailEntity.getOrderPackageCode()); Long waybillId = advanceDetailEntity.getWaybillId();
TrunklineAdvanceDetailEntity updateMaterialEntity = new TrunklineAdvanceDetailEntity(); if(Objects.isNull(waybillId)){
updateMaterialEntity.setId(advanceDetailEntity.getId()); ImportStandardOuPaiDTO importStandardOuPaiDTO = importStandardOuPaiDTOMap.get(advanceDetailEntity.getOrderPackageCode());
updateMaterialEntity.setMaterialCode(importStandardOuPaiDTO.getMaterialCode()); TrunklineAdvanceDetailEntity updateMaterialEntity = new TrunklineAdvanceDetailEntity();
updateMaterialEntity.setMaterialName(importStandardOuPaiDTO.getMaterialName()); updateMaterialEntity.setId(advanceDetailEntity.getId());
updateMaterialEntity.setFirstPackName(importStandardOuPaiDTO.getFirstsName()); updateMaterialEntity.setMaterialCode(importStandardOuPaiDTO.getMaterialCode());
updateMaterialEntity.setSecondPackName(importStandardOuPaiDTO.getSencodsName()); updateMaterialEntity.setMaterialName(importStandardOuPaiDTO.getMaterialName());
updateMaterialEntity.setThirdPackName(importStandardOuPaiDTO.getThirdsName()); updateMaterialEntity.setFirstPackName(importStandardOuPaiDTO.getFirstsName());
updateMaterialList.add(updateMaterialEntity); updateMaterialEntity.setSecondPackName(importStandardOuPaiDTO.getSencodsName());
updateMaterialEntity.setThirdPackName(importStandardOuPaiDTO.getThirdsName());
updateMaterialList.add(updateMaterialEntity);
}
}); });
if(CollUtil.isNotEmpty(updateMaterialList)){ if(CollUtil.isNotEmpty(updateMaterialList)){

6
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -1814,7 +1814,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
String enterTimeStartStr = loadCarsDTO.getEnterTimeStartStr(); String enterTimeStartStr = loadCarsDTO.getEnterTimeStartStr();
String enterTimeEndStr = loadCarsDTO.getEnterTimeEndStr(); String enterTimeEndStr = loadCarsDTO.getEnterTimeEndStr();
loadCarsDTO.setEnterTimeStart(CommonUtil.getStartByDateStr(enterTimeStartStr)); loadCarsDTO.setEnterTimeStart(CommonUtil.getStartByDateStr(enterTimeStartStr));
loadCarsDTO.setEnterTimeEnd(CommonUtil.getStartByDateStr(enterTimeEndStr)); loadCarsDTO.setEnterTimeEnd(CommonUtil.getEndByDateStr(enterTimeEndStr));
IPage<CarsLoadAllOrderVO> pageList = baseMapper.findAllOrderList(page, loadCarsDTO); IPage<CarsLoadAllOrderVO> pageList = baseMapper.findAllOrderList(page, loadCarsDTO);
return R.data(pageList); return R.data(pageList);
@ -6478,7 +6478,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
String loadStatus = trunklineCarsLoadVO.getLoadStatus(); String loadStatus = trunklineCarsLoadVO.getLoadStatus();
trunklineCarsLoadVO.setLoadStatus(DictBizCache.getValue(DictBizConstant.CARS_LOAD_STATUS, loadStatus)); trunklineCarsLoadVO.setLoadStatus(DictBizCache.getValue(DictBizConstant.CARS_LOAD_STATUS, loadStatus));
trunklineCarsLoadVO.setStockCarsNum(realLoadingNumber - unloadNumber); int i = realLoadingNumber - unloadNumber;
if(i < 0) i = 0;
trunklineCarsLoadVO.setStockCarsNum(i);
trunklineCarsLoadVO.setLoadScanOrderList(loadScanOrderList); trunklineCarsLoadVO.setLoadScanOrderList(loadScanOrderList);
trunklineCarsLoadVO.setZeroList(zeroList); trunklineCarsLoadVO.setZeroList(zeroList);
trunklineCarsLoadVO.setExceptionList(exceptionList); trunklineCarsLoadVO.setExceptionList(exceptionList);

Loading…
Cancel
Save