diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionAddvalueVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionAddvalueVO.java index 497bc719f..b8fe2ea6f 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionAddvalueVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionAddvalueVO.java @@ -51,5 +51,7 @@ public class DistributionAddvalueVO extends DistributionAddvalueEntity { private Double distance; + private Long addvalueDetailId; + } diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionReservationVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionReservationVO.java index 42878c3f3..d2da34338 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionReservationVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionReservationVO.java @@ -21,6 +21,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; +import java.math.BigDecimal; import java.util.List; /** @@ -83,6 +84,26 @@ public class DistributionReservationVO extends DistributionReservationEntity { private String signingStatusName; + /** + * 仓库地址 + */ + @ApiModelProperty(value = "签收状态") + private String warehouseAddress; + + + /** + * 仓库经度 + */ + @ApiModelProperty(value = "签收状态") + private BigDecimal jingdu; + + /** + * 仓库纬度 + */ + @ApiModelProperty(value = "签收状态") + private BigDecimal weidu; + + /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionAddvalueAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionAddvalueAppController.java index 65eadaccd..b7992e159 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionAddvalueAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionAddvalueAppController.java @@ -38,7 +38,7 @@ import java.util.Map; @RestController @AllArgsConstructor @RequestMapping("/app/addvalue") -@Api(value = "签收管理", tags = "签收管理App接口") +@Api(value = "配送管理", tags = "增值服务App接口") public class DistributionAddvalueAppController { private final DistributionAddvalueServiceImpl distributionAddvalueService; @@ -63,8 +63,8 @@ public class DistributionAddvalueAppController { * 扫描接口 */ @PostMapping("/scanAddvaluePackage") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "查询增值服务列表", notes = "DistributionAppDeliveryListDTO") + @ApiOperationSupport(order = 2) + @ApiOperation(value = "增值服务扫描、输入包件码", notes = "DistributionAppDeliveryListDTO") public R scanAddvaluePackage(@Valid @RequestBody DistributionAppAddvalueDTO distributionAppAddvalueDTO) { R r =distributionAddvalueService.scanAddvaluePackage(distributionAppAddvalueDTO); return r; @@ -76,8 +76,8 @@ public class DistributionAddvalueAppController { * 全部包件 */ @PostMapping("/getAllPackageList") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "查询增值服务列表", notes = "DistributionAppDeliveryListDTO") + @ApiOperationSupport(order = 3) + @ApiOperation(value = "查询该客户下的所有配送包件信息", notes = "DistributionAppDeliveryListDTO") public List getAllPackageList(@Valid @RequestBody DistributionAppAddvalueDTO distributionAppAddvalueDTO) { List allPackageList = distributionAddvalueService.getAllPackageList(distributionAppAddvalueDTO); return allPackageList; @@ -87,8 +87,8 @@ public class DistributionAddvalueAppController { * 保存增值服务 */ @PostMapping("/saveAddvalueInfo") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "查询增值服务列表", notes = "DistributionAppDeliveryListDTO") + @ApiOperationSupport(order = 4) + @ApiOperation(value = "保存增值服务项", notes = "DistributionAppDeliveryListDTO") public R saveAddvalueInfo(@Valid @RequestBody DistributionAppAddvalueDTO distributionAppAddvalueDTO) { R r =distributionAddvalueService.saveAddvalueInfo(distributionAppAddvalueDTO); return r; @@ -99,8 +99,8 @@ public class DistributionAddvalueAppController { * 编辑保存 */ @PostMapping("/updateAddvalueInfo") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "查询增值服务列表", notes = "DistributionAppDeliveryListDTO") + @ApiOperationSupport(order = 5) + @ApiOperation(value = "修改增值服务项保存", notes = "DistributionAppDeliveryListDTO") public R updateAddvalueInfo(@Valid @RequestBody DistributionAppAddvalueDTO distributionAppAddvalueDTO) { R r =distributionAddvalueService.updateAddvalueInfo(distributionAppAddvalueDTO); return r; @@ -112,8 +112,8 @@ public class DistributionAddvalueAppController { * 查询编辑增值服务数据 */ @PostMapping("/editAddvalueInfo") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "查询增值服务列表", notes = "DistributionAppDeliveryListDTO") + @ApiOperationSupport(order = 6) + @ApiOperation(value = "查询编辑增值服务列表数据", notes = "DistributionAppDeliveryListDTO") public R editAddvalueInfo(@Valid @RequestBody DistributionAppAddvalueDTO distributionAppAddvalueDTO) { R r =distributionAddvalueService.editAddvalueInfo(distributionAppAddvalueDTO); return r; diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionReservationController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionReservationController.java index a454e65be..e90cf42ef 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionReservationController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionReservationController.java @@ -221,9 +221,9 @@ public class DistributionReservationController extends BladeController { @GetMapping("/getReservationAddr") @ApiOperationSupport(order = 7) @ApiOperation(value = "查询指定预约信息地址") - public R> getReservationAddr(@ApiParam(value = "主键集合", required = true)@RequestParam String ids) { - IPage result = reservationService.getReservationAddr(ids); - return R.data(DistributionReservationWrapper.build().pageVO(result)); + public R> getReservationAddr(@ApiParam(value = "主键集合", required = true)@RequestParam String ids) { + List result = reservationService.getReservationAddr(ids); + return R.data(result); } /** diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/app/DistributionAppAddvalueDTO.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/app/DistributionAppAddvalueDTO.java index b5f844071..00edfdee3 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/app/DistributionAppAddvalueDTO.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/dto/app/DistributionAppAddvalueDTO.java @@ -46,6 +46,20 @@ public class DistributionAppAddvalueDTO extends TenantEntity { private String barcode; + /** + * 扫描码 + */ + @ApiModelProperty(value = "扫描码") + private List packageListIds; + + + /** + * 是否手动 1 - 否 2-是 + */ + @ApiModelProperty(value = "是否手动") + private Integer isManual; + + /** * 配送任务Id */ @@ -121,6 +135,14 @@ public class DistributionAppAddvalueDTO extends TenantEntity { private BigDecimal fee; + /** + * 公里数 + */ + @ApiModelProperty(value = "公里数") +// @NotEmpty(message = "客户Id不能为空") + private Long addvalueDetailId; + + 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 5e98bc8ed..7ab373283 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 @@ -29,6 +29,7 @@ lda.addvalue_id, group_concat(DISTINCT ldad.fee) AS fee, group_concat(DISTINCT ldad.num) AS num, + group_concat(DISTINCT ldad.id) AS addvalueDetailId, group_concat(DISTINCT ldad.flool_num) AS floolNum, group_concat(DISTINCT ldad.distance) AS distance, group_concat( ldap.id SEPARATOR ',' ) AS packageListIds @@ -60,6 +61,7 @@ ldad.num AS num, ldad.flool_num AS floolNum, ldad.distance AS distance, + ldad.id AS addvalueDetailId, GROUP_CONCAT(ldap.package_id) AS packageListIds FROM logpm_distribution_addvalue AS lda @@ -67,7 +69,7 @@ INNER JOIN logpm_distribution_addvalue_package AS ldap ON ldad.id = ldap.addvalue_detail_id WHERE lda.ref_id = #{reservationId} and lda.addvalue_id = #{addvalueType} - GROUP BY ldad.fee,ldad.num,ldad.flool_num,ldad.distance + 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/mapper/DistributionAddvaluePackageMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvaluePackageMapper.xml index d77e49548..a051f1bf8 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvaluePackageMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionAddvaluePackageMapper.xml @@ -32,10 +32,10 @@ - DELETE FROM logpm_diatribution_addvalue_package WHERE reservation_id = #{reservationId} and addvalue_detail_id = #{addvalueDetailId} + DELETE FROM logpm_distribution_addvalue_package WHERE reservation_id = #{reservationId} and addvalue_detail_id = #{addvalueDetailId} - DELETE FROM logpm_diatribution_addvalue_package WHERE reservation_id = #{reservationId} and package_id = #{packageId} + DELETE FROM logpm_distribution_addvalue_package WHERE reservation_id = #{reservationId} and package_id = #{packageId}