diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/CarsLoadController.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/CarsLoadController.java index e68715ac5..368a26110 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/CarsLoadController.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/CarsLoadController.java @@ -1056,7 +1056,7 @@ public class CarsLoadController { @ResponseBody @PostMapping("/loadingDetail") @ApiOperationSupport(order = 1) - @ApiOperation(value = "三方中转装车明细", notes = "传入loadCarsDTO") + @ApiOperation(value = "装车明细", notes = "传入loadCarsDTO") public R loadingDetail(@RequestBody LoadCarsDTO loadCarsDTO) { String method = "############loadingDetail: "; log.info(method+"请求参数{}",loadCarsDTO); @@ -1086,5 +1086,39 @@ public class CarsLoadController { } } + @ResponseBody + @PostMapping("/carsLoadDetailInfo") + @ApiOperationSupport(order = 1) + @ApiOperation(value = "配载计划详情", notes = "传入loadCarsDTO") + public R carsLoadDetailInfo(@RequestBody LoadCarsDTO loadCarsDTO) { + String method = "############carsLoadDetailInfo: "; + log.info(method+"请求参数{}",loadCarsDTO); + Long loadId = loadCarsDTO.getLoadId(); + try{ + + //当前登录人选择的仓库 + BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); + if(Objects.isNull(myCurrentWarehouse)){ + log.warn(method+"仓库信息为空 myCurrentWarehouse={}",myCurrentWarehouse); + return R.fail(400,"仓库信息为空"); + } + loadCarsDTO.setWarehouseId(myCurrentWarehouse.getId()); + + if(Objects.isNull(loadId)){ + log.warn(method+"配载计划id为空 loadId={}",loadId); + return R.fail(400,"配载计划id为空"); + } + + return carsLoadService.carsLoadDetailInfo(loadCarsDTO); + }catch (CustomerException e){ + log.error(e.message,e); + return R.fail(e.code,e.message); + }catch (Exception e){ + log.error(method+"系统异常",e); + return R.fail(500,"系统异常"); + } + } + + } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.java index cc320d558..04dd30f40 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.java @@ -10,6 +10,8 @@ import com.logpm.trunkline.vo.TrunklineCarsLoadVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; +import java.util.List; + @Mapper public interface TrunklineCarsLoadMapper extends BaseMapper { @@ -27,4 +29,5 @@ public interface TrunklineCarsLoadMapper extends BaseMapper arriveUnloadPageList(IPage page, @Param("param") LoadCarsDTO loadCarsDTO); + List findUseOrderListNoPage(@Param("param") LoadCarsDTO loadCarsDTO); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml index 3e6fa617f..a29c4f920 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineCarsLoadMapper.xml @@ -194,8 +194,8 @@ from logpm_trunkline_cars_order ltco left join logpm_warehouse_waybill lww on lww.waybill_no = ltco.waybill_no left join logpm_distribution_parcel_list ldpl on ltco.order_code = ldpl.order_code and ldpl.waybill_number = ltco.waybill_no - where ltco.load_id = #{loadId} - and ltco.final_node_id = #{finalNodeId} + where ltco.load_id = #{param.loadId} + and ltco.final_node_id = #{param.finalNodeId} and ldpl.is_deleted = 0 and ldpl.order_package_status in ('20','30') @@ -220,6 +220,54 @@ lww.waybill_type + +