diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/BillladingDTO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/BillladingDTO.java index 74b8b2247..8fe676786 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/BillladingDTO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/BillladingDTO.java @@ -53,7 +53,7 @@ public class BillladingDTO extends TrunklineBillladingEntity { private String consignee;//收货单位 private String remark;//备注 private String destinationWarehouseName;//目的仓 + private String completeTime;//目的仓 private Long billladingId; - } diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineLoadSignOrderVO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineLoadSignOrderVO.java index 92b129a9f..e3e827012 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineLoadSignOrderVO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/vo/TrunklineLoadSignOrderVO.java @@ -9,6 +9,7 @@ import java.util.List; @Data public class TrunklineLoadSignOrderVO extends TrunklineLoadSignOrderEntity { + private String warehouseName; private String driverName; private String carsNo; private String carsLineName; diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java index 41882006f..dbc8f41a9 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/BillladingController.java @@ -277,6 +277,7 @@ public class BillladingController { //提货单状态 1=未开始,2=提货中,3=已完成,4=已结算 5=已取消 Integer type = billladingDTO.getType(); Long billladingId = billladingDTO.getId(); + String completeTime = billladingDTO.getCompleteTime(); try{ //当前登录人选择的仓库 @@ -295,7 +296,7 @@ public class BillladingController { return R.fail(405,"提货单id不能为空"); } - trunklineBillladingService.updateBillladingStatus(billladingId,type,myCurrentWarehouse.getId(),myCurrentWarehouse.getName()); + trunklineBillladingService.updateBillladingStatus(billladingId,type,myCurrentWarehouse.getId(),myCurrentWarehouse.getName(),completeTime); return R.success("更新完成"); }catch (CustomerException e){ log.error(e.message,e); 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 c363140f2..aa6ab07af 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 @@ -2405,6 +2405,7 @@ public class CarsLoadController { }else{ warehouseIds.add(myCurrentWarehouse.getId()); } + loadCarsDTO.setWarehouseIds(warehouseIds); return carsLoadService.findSignOrderPageList(loadCarsDTO); }catch (CustomerException e){ diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineLoadSignOrderMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineLoadSignOrderMapper.xml index cb58060fa..971587c7b 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineLoadSignOrderMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineLoadSignOrderMapper.xml @@ -118,9 +118,17 @@ select ltlso.id id, ltlso.load_id loadId, ltlso.warehouse_id warehouseId, + lww.warehouse_name warehouseName, ltlso.plan_num planNum, ltlso.load_sign_code loadSignCode, ltlso.sign_num signNum, + ltlso.mall_name mallName, + ltlso.mall_person mallPerson, + ltlso.mall_mobile mallMobile, + ltlso.mall_address mallAddress, + ltlso.belong_to_warehouse_name belongToWarehouseName, + ltlso.sign_status signStatus, + ltlso.sign_time signTime, ltcl.driver_name driverName, ltcl.driver_mobile driverMobile, ltcl.car_number carNumber, @@ -130,6 +138,7 @@ from logpm_trunkline_load_sign_order ltlso left join logpm_trunkline_cars_load ltcl on ltcl.id = ltlso.load_id LEFT JOIN logpm_trunkline_cars_order ltco on ltco.sign_order_id = ltlso.id + left join logpm_warehouse_warehouse lww on lww.id = ltlso.warehouse_id and (ltlso.warehouse_id in diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineBillladingService.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineBillladingService.java index e8a3e987a..331eaea1b 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineBillladingService.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/ITrunklineBillladingService.java @@ -22,7 +22,7 @@ public interface ITrunklineBillladingService extends BaseService advanceDetailEntities = advanceDetailService.findListByOrderPackageCodeList(orderPackageCodes); + List updateAdvanceDetailList = new ArrayList<>(); advanceDetailEntities.forEach(advanceDetailEntity -> { - advanceDetailEntity.setNowWarehouseId(warehouseId); - advanceDetailEntity.setNowWarehouseName(warehouseEntity.getName()); + TrunklineAdvanceDetailEntity updateAdvanceDetail = new TrunklineAdvanceDetailEntity(); + updateAdvanceDetail.setId(advanceDetailEntity.getId()); + updateAdvanceDetail.setNowWarehouseId(warehouseId); + updateAdvanceDetail.setNowWarehouseName(warehouseEntity.getName()); + updateAdvanceDetailList.add(updateAdvanceDetail); }); - advanceDetailService.updateBatchById(advanceDetailEntities); + advanceDetailService.updateBatchById(updateAdvanceDetailList); } } }