From 0bc18e0e933bead828eac23ea2986233db4f35aa Mon Sep 17 00:00:00 2001 From: kilo Date: Wed, 20 Sep 2023 17:57:31 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=BE=85=E7=AD=BE=E6=94=B6=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=A2=9E=E5=80=BC=E6=9C=8D=E5=8A=A1=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistributionAddvalueController.java | 16 +++++++++++++- .../DistributionSignforController.java | 14 +++++++++++++ .../dto/DistributionAddvalueDTO.java | 5 +++++ .../mapper/DistributionAddvalueMapper.java | 8 +++++++ .../mapper/DistributionAddvalueMapper.xml | 18 ++++++++++++++++ .../service/IDistributionAddvalueService.java | 9 ++++++++ .../service/IDistributionSignforService.java | 8 +++++++ .../impl/DistributionAddvalueServiceImpl.java | 15 +++++++++++++ .../DistributionDeliveryListServiceImpl.java | 10 ++++++++- .../DistributionReservationServiceImpl.java | 5 +++-- .../impl/DistributionSignforServiceImpl.java | 21 +++++++++++++++++++ 11 files changed, 125 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java index 48a46921c..caa7cbafa 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionAddvalueController.java @@ -16,6 +16,7 @@ */ package com.logpm.distribution.controller; +import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO; import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.excel.DistributionAddvalueExcel; import com.logpm.distribution.service.IDistributionAddvalueService; @@ -52,7 +53,7 @@ import javax.servlet.http.HttpServletResponse; */ @RestController @AllArgsConstructor -@RequestMapping("addvalue/distributionAddvalue") +@RequestMapping("/addvalue") @Api(value = "配送增值服务表", tags = "配送增值服务表接口") public class DistributionAddvalueController extends BladeController { @@ -147,4 +148,17 @@ public class DistributionAddvalueController extends BladeController { ExcelUtil.export(response, "配送增值服务表数据" + DateUtil.time(), "配送增值服务表数据表", list, DistributionAddvalueExcel.class); } + +// /** +// * 查询 +// */ +// @PostMapping("/addvalueInfoList") +// @ApiOperationSupport(order = 2) +// @ApiOperation(value = "分页", notes = "传入distributionAddvalue") +// public R addvalueInfoList(@ApiIgnore @RequestBody DistributionAppAddvalueDTO distributionAddvalue) { +// R r = distributionAddvalueService.editAddvalueInfo(distributionAddvalue); +// return r; +// } + + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java index ad8edb991..8d28b8cf5 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionSignforController.java @@ -19,6 +19,7 @@ package com.logpm.distribution.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.logpm.distribution.dto.DistributionAddvalueDTO; import com.logpm.distribution.dto.DistributionReservationStocklistDTO; import com.logpm.distribution.dto.DistributionSignforDTO; import com.logpm.distribution.entity.DistributionSignforEntity; @@ -233,4 +234,17 @@ public class DistributionSignforController extends BladeController { ExcelUtil.export(response, "签收管理数据" + DateUtil.time(), "签收管理数据表", list, DistributionSignforExcel.class); } + + /** + * 签收管理 删除 + */ + @PostMapping("/addvalueInfoList") + @ApiOperationSupport(order = 7) + @ApiOperation(value = "逻辑删除", notes = "传入ids") + public R addvalueInfoList(@RequestBody DistributionAddvalueDTO distributionAddvalueDTO) { + R r = distributionSignforService.getAddvalueInfoList(distributionAddvalueDTO); + return r; + } + + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java index cfd7fcecb..bd7fb5f92 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/DistributionAddvalueDTO.java @@ -31,4 +31,9 @@ import lombok.EqualsAndHashCode; public class DistributionAddvalueDTO extends DistributionAddvalueEntity { private static final long serialVersionUID = 1L; + /** + * 签收ID + */ + private Long signforId; + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java index 7784277ce..5aaaab958 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.java @@ -19,6 +19,7 @@ package com.logpm.distribution.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.logpm.distribution.dto.DistributionAddvalueDTO; import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.entity.DistributionAddvaluePackageEntity; import com.logpm.distribution.excel.DistributionAddvalueExcel; @@ -73,6 +74,13 @@ public interface DistributionAddvalueMapper extends BaseMapper addvalueInfo(@Param("reservationId")Long reservationId); + /** + * 查询签收列表客户的增值服务项 + * @param distributionAddvalueDTO + * @return + */ + DistributionAddvalueVO getAddvalueBySignfor(@Param("par")DistributionAddvalueDTO distributionAddvalueDTO); + // /** // * 删除增值服务 // * @param reservationId diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml index 7ab373283..88c63d76c 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvalueMapper.xml @@ -72,5 +72,23 @@ GROUP BY ldad.fee,ldad.num,ldad.flool_num,ldad.distance,ldad.id + diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java index 3868f1013..fa17d1529 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionAddvalueService.java @@ -19,6 +19,7 @@ package com.logpm.distribution.service; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; +import com.logpm.distribution.dto.DistributionAddvalueDTO; import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO; import com.logpm.distribution.entity.DistributionAddvalueEntity; import com.logpm.distribution.entity.DistributionAddvaluePackageEntity; @@ -103,4 +104,12 @@ public interface IDistributionAddvalueService extends IService getAddvalueBySignfor(DistributionAddvalueDTO distributionAddvalueDTO); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java index 907148f06..88fc06078 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionSignforService.java @@ -19,6 +19,7 @@ package com.logpm.distribution.service; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.logpm.distribution.bean.Resp; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.logpm.distribution.dto.DistributionAddvalueDTO; import com.logpm.distribution.dto.DistributionReservationStocklistDTO; import com.logpm.distribution.dto.DistributionSignforDTO; import com.logpm.distribution.dto.DistrilbutionAppsignforDTO; @@ -143,4 +144,11 @@ public interface IDistributionSignforService extends BaseService signforInventoryList(Long signforId); + + /** + * 查询签收对应的增值服务类型 + * @param distributionAddvalueDTO + * @return + */ + R getAddvalueInfoList(DistributionAddvalueDTO distributionAddvalueDTO); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java index 45ca5d504..dd248fe70 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAddvalueServiceImpl.java @@ -21,6 +21,7 @@ import com.alibaba.druid.sql.visitor.functions.If; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.logpm.distribution.bean.Res; import com.logpm.distribution.bean.Resp; +import com.logpm.distribution.dto.DistributionAddvalueDTO; import com.logpm.distribution.dto.app.DistributionAppAddvalueDTO; import com.logpm.distribution.entity.*; import com.logpm.distribution.excel.DistributionAddvalueExcel; @@ -411,4 +412,18 @@ public class DistributionAddvalueServiceImpl extends BaseServiceImpl getAddvalueBySignfor(DistributionAddvalueDTO distributionAddvalueDTO) { +// DistributionAddvalueVO addvalueVO = distributionAddvalueMapper.getAddvalueBySignfor(distributionAddvalueDTO); +// if (Func.isNotEmpty(addvalueVO)){ +// String packageListIds = addvalueVO.getPackageListIds(); +// if (Func.isNotEmpty(packageListIds)){ +// List longs = Func.toLongList(packageListIds); +// List distributionAddvaluePackageEntities = distributionAddvaluePackageService.list(Wrappers.query().lambda().in(DistributionAddvaluePackageEntity::getPackageId,longs).eq(DistributionAddvaluePackageEntity::getAddvalueDetailId,addvalueVO.getAddvalueDetailId())); +// addvalueVO.setPackageEntityList(distributionAddvaluePackageEntities); +// } +// } +// return R.data(addvalueVO); +// } + } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index 523db457b..8c40bc968 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -1934,11 +1934,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl consigneeAddress = new HashSet<>(); //运单客户收货单位 HashSet consignee = new HashSet<>(); + //运单号 + HashSet waybillNo = new HashSet<>(); clientTotal.getAndIncrement(); if (Func.isEmpty(oldClient.get(k))) { DistributionReservationEntity reservationEntity = new DistributionReservationEntity(); - reservationEntity.setWaybillNo(k); +// reservationEntity.setWaybillNo(k); reservationEntity.setReservationDate(reservationDate); reservationEntity.setReservationStatus(ReservationStatusConstant.daipeisong.getValue()); reservationEntity.setDeliveryType(DistributionTypeConstant.shangpei.getValue()); @@ -1988,6 +1990,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl packageListInfo = s.getPackageListInfo(); @@ -2101,6 +2106,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl selectDistributionSignforPage(IPage page, DistributionSignforVO distributionSignfor) { @@ -1384,5 +1387,23 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl addvaluePackageEntities = distributionAddvalueService.getAddvalueBySignfor(distributionAddvalueDTO); + DistributionAddvalueVO addvalueBySignfor = distributionAddvalueMapper.getAddvalueBySignfor(distributionAddvalueDTO); + if (Func.isNotEmpty(addvalueBySignfor)){ + String packageListIds = addvalueBySignfor.getPackageListIds(); + if (Func.isNotEmpty(packageListIds)){ + List longs = Func.toLongList(packageListIds); + List distributionAddvaluePackageEntities = distributionAddvaluePackageService.list(Wrappers.query().lambda() + .in(DistributionAddvaluePackageEntity::getPackageId,longs) + .eq(DistributionAddvaluePackageEntity::getAddvalueDetailId,addvalueBySignfor.getAddvalueDetailId())); + + addvalueBySignfor.setPackageEntityList(distributionAddvaluePackageEntities); + } + } + return R.data(addvalueBySignfor); + } + } From 24d6e7f10c8a676a75e78902d23cb76b1d130c3b Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Wed, 20 Sep 2023 18:19:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=87=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=87=AA=E6=8F=90=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/distribution/vo/PackageStockupVO.java | 1 + .../mapper/DistributionParcelListMapper.xml | 15 ++++++--------- .../impl/DistributionStockupServiceImpl.java | 3 ++- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java index ab5ad4865..25d9be4dd 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/PackageStockupVO.java @@ -28,6 +28,7 @@ public class PackageStockupVO implements Serializable { private String materialName;//物料名称 private String trayCode;//托盘名称 private String allocationTitle;//货位名称 + private String allocationTitles;//货位名称 private Long scanId;//扫码记录id private Long allocationId;//货位id diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml index ac4172d1d..211bd4408 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml @@ -138,17 +138,12 @@