diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java index 5a7b18122..f008f3534 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java @@ -244,12 +244,7 @@ public class DistributionDeliveryListController extends BladeController { @ApiOperationSupport(order = 9) @ApiOperation(value = "导出数据", notes = "传入distributionDeliveryList") public void exportDistributionDeliveryList(@ApiIgnore @RequestParam Map distributionDeliveryList, BladeUser bladeUser, HttpServletResponse response) { - QueryWrapper queryWrapper = Condition.getQueryWrapper(distributionDeliveryList, DistributionDeliveryListEntity.class); - //if (!AuthUtil.isAdministrator()) { - // queryWrapper.lambda().eq(DistributionDeliveryList::getTenantId, bladeUser.getTenantId()); - //} - queryWrapper.lambda().eq(DistributionDeliveryListEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); - List list = distributionDeliveryListService.exportDistributionDeliveryList(queryWrapper); + List list = distributionDeliveryListService.exportDistributionDeliveryList(distributionDeliveryList); ExcelUtil.export(response, "配送管理数据" + DateUtil.time(), "配送管理数据表", list, DistributionDeliveryListExcel.class); } 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 837dae2b5..4b4578a50 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 @@ -183,12 +183,8 @@ public class DistributionReservationController extends BladeController { @ApiOperationSupport(order = 9) @ApiOperation(value = "导出数据", notes = "传入distrbutionReservation") public void exportDistrbutionReservation(@ApiIgnore @RequestParam Map distrbutionReservation, BladeUser bladeUser, HttpServletResponse response) { - QueryWrapper queryWrapper = Condition.getQueryWrapper(distrbutionReservation, DistributionReservationEntity.class); - //if (!AuthUtil.isAdministrator()) { - // queryWrapper.lambda().eq(DistrbutionReservation::getTenantId, bladeUser.getTenantId()); - //} - queryWrapper.lambda().eq(DistributionReservationEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED); - List list = reservationService.exportDistrbutionReservation(queryWrapper); + + List list = reservationService.exportDistrbutionReservation(distrbutionReservation); ExcelUtil.export(response, "预约列表数据" + DateUtil.time(), "预约列表数据表", list, DistributionReservationExcel.class); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionDeliveryListExcel.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionDeliveryListExcel.java index 3f03bdb3f..8c7ee8cdc 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionDeliveryListExcel.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionDeliveryListExcel.java @@ -41,71 +41,37 @@ public class DistributionDeliveryListExcel implements Serializable { private static final long serialVersionUID = 1L; + /** - * 租户号 - */ - @ColumnWidth(20) - @ExcelProperty("租户号") - private String tenantId; - /** - * 是否已删除 - */ - @ColumnWidth(20) - @ExcelProperty("是否已删除") - private Integer isDeleted; - /** - * 预留1 - */ - @ColumnWidth(20) - @ExcelProperty("预留1") - private String reserve1; - /** - * 预留2 - */ - @ColumnWidth(20) - @ExcelProperty("预留2") - private String reserve2; - /** - * 预留3 - */ - @ColumnWidth(20) - @ExcelProperty("预留3") - private String reserve3; - /** - * 预留4 - */ - @ColumnWidth(20) - @ExcelProperty("预留4") - private String reserve4; - /** - * 预留5 + * 车次 */ @ColumnWidth(20) - @ExcelProperty("预留5") - private String reserve5; + @ExcelProperty("车次") + private String trainNumber; /** * 车次 */ @ColumnWidth(20) - @ExcelProperty("车次") - private String trainNumber; + @ExcelProperty("配送日期") + private String taskTime; + /** * 仓库 */ @ColumnWidth(20) @ExcelProperty("仓库") - private String warehouse; + private String warehouseName; /** * 配送类型;1-自主配送,2-三方配送 */ @ColumnWidth(20) - @ExcelProperty("配送类型;1-自主配送,2-三方配送") + @ExcelProperty("配送类型") private String type; /** * 配送种类;1-市配,2-商配 */ @ColumnWidth(20) - @ExcelProperty("配送种类;1-市配,2-商配") + @ExcelProperty("配送种类") private String kind; /** * 配送车辆 @@ -123,13 +89,13 @@ public class DistributionDeliveryListExcel implements Serializable { * 配送公司;1-货拉拉,2-京东 */ @ColumnWidth(20) - @ExcelProperty("配送公司;1-货拉拉,2-京东") + @ExcelProperty("配送公司") private String distributionCompany; /** * 配送状态;1-配送中,2-已完成 */ @ColumnWidth(20) - @ExcelProperty("配送状态;1-配送中,2-已完成") + @ExcelProperty("配送状态") private String state; /** * 配送客户数 @@ -143,12 +109,12 @@ public class DistributionDeliveryListExcel implements Serializable { @ColumnWidth(20) @ExcelProperty("配送价格") private BigDecimal price; - /** - * 增值服务表id - */ - @ColumnWidth(20) - @ExcelProperty("增值服务表id") - private Integer addedServicesId; +// /** +// * 增值服务表id +// */ +// @ColumnWidth(20) +// @ExcelProperty("增值服务表id") +// private Integer addedServicesId; /** * 订单总数 */ @@ -159,8 +125,14 @@ public class DistributionDeliveryListExcel implements Serializable { * 配送件数 */ @ColumnWidth(20) - @ExcelProperty("配送件数") + @ExcelProperty("配送包件数") private Integer deliveryNumber; + /** + * 配送件数 + */ + @ColumnWidth(20) + @ExcelProperty("配送库存品数") + private Integer inventoryNub; /** * 扫描件数 */ @@ -173,11 +145,11 @@ public class DistributionDeliveryListExcel implements Serializable { @ColumnWidth(20) @ExcelProperty("装卸班组") private String loadingTeam; - /** - * 预约表id - */ - @ColumnWidth(20) - @ExcelProperty("预约表id") - private String reservationId; +// /** +// * 预约表id +// */ +// @ColumnWidth(20) +// @ExcelProperty("预约表id") +// private String reservationId; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationExcel.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationExcel.java index 813edddaa..94227f448 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationExcel.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionReservationExcel.java @@ -42,24 +42,44 @@ public class DistributionReservationExcel implements Serializable { private static final long serialVersionUID = 1L; + + /** + * 订单自编号;订单自编号,关联订单表 + */ + @ColumnWidth(20) + @ExcelProperty("预约单编号") + private String reservationCode; + /** + * 订单自编号;订单自编号,关联订单表 + */ + @ColumnWidth(20) + @ExcelProperty("订单号") + private String orderCode; /** - * 租户号 + * 订单自编号;订单自编号,关联订单表 */ @ColumnWidth(20) - @ExcelProperty("租户号") - private String tenantId; + @ExcelProperty("服务号") + private String serviceNumber; /** - * 是否已删除 + * 订单自编号;订单自编号,关联订单表 */ @ColumnWidth(20) - @ExcelProperty("是否已删除") - private Integer isDeleted; + @ExcelProperty("仓库") + private String warehouseName; /** * 订单自编号;订单自编号,关联订单表 */ @ColumnWidth(20) - @ExcelProperty("订单自编号;订单自编号,关联订单表") - private String orderId; + @ExcelProperty("商场") + private String mallName; + /** + * 订单自编号;订单自编号,关联订单表 + */ + @ColumnWidth(20) + @ExcelProperty("门店") + private String storeName; + /** * 收货人 */ @@ -78,18 +98,43 @@ public class DistributionReservationExcel implements Serializable { @ColumnWidth(20) @ExcelProperty("预约时间") private Date reservationData; + /** + * 预约时间 + */ + @ColumnWidth(20) + @ExcelProperty("预约包件数") + private Integer reservationNumber; + /** + * 预约时间 + */ + @ColumnWidth(20) + @ExcelProperty("预约库存品数") + private Integer stockListNumber; + /** + * 预约时间 + */ + @ColumnWidth(20) + @ExcelProperty("待收货款") + private BigDecimal dueSincere; + + /** + * 预约时间 + */ + @ColumnWidth(20) + @ExcelProperty("时段") + private String periodTimeName; /** * 服务类型;预约服务类型;1-上楼、2-超区、3-拆样、4-平移、5-分拣、6-搬运、7-返货; */ @ColumnWidth(20) - @ExcelProperty("服务类型;预约服务类型;1-上楼、2-超区、3-拆样、4-平移、5-分拣、6-搬运、7-返货;") - private String serveType; + @ExcelProperty("服务类型") + private String serveTypeName; /** * 配送方式;预约添加送货方式;1-送货(商配的唯一方式)、2-送货上楼、3-送装一体、4-装 */ @ColumnWidth(20) - @ExcelProperty("配送方式;预约添加送货方式;1-送货(商配的唯一方式)、2-送货上楼、3-送装一体、4-装") - private String deliveryType; + @ExcelProperty("配送方式") + private String deliveryTypeName; /** * 到付运费 */ @@ -107,66 +152,48 @@ public class DistributionReservationExcel implements Serializable { */ @ColumnWidth(20) @ExcelProperty("代付运费") - private String replaceFee; + private BigDecimal replaceFee; /** * 收件人电话 */ @ColumnWidth(20) @ExcelProperty("收件人电话") private String deliveryPhone; +// /** +// * 预约信息状态;预约列表信息状态;1-待确认、2-已确认 +// */ +// @ColumnWidth(20) +// @ExcelProperty("预约信息状态;预约列表信息状态;1-待确认、2-已确认") +// private String resvervationStatus; /** * 预约信息状态;预约列表信息状态;1-待确认、2-已确认 */ @ColumnWidth(20) - @ExcelProperty("预约信息状态;预约列表信息状态;1-待确认、2-已确认") - private String resvervationStatus; - /** - * 订单来源 - */ - @ColumnWidth(20) - @ExcelProperty("订单来源") - private String orderSource; + @ExcelProperty("预约信息状态") + private String resvervationStatusName; +// /** +// * 订单来源 +// */ +// @ColumnWidth(20) +// @ExcelProperty("订单来源") +// private String orderSource; +// /** +// * 备货状态;备货状态;1-未备货、2-待备货、3-已备货 +// */ +// @ColumnWidth(20) +// @ExcelProperty("备货状态") +// private String stockupStatus; /** * 备货状态;备货状态;1-未备货、2-待备货、3-已备货 */ @ColumnWidth(20) - @ExcelProperty("备货状态;备货状态;1-未备货、2-待备货、3-已备货") - private String stockupStatus; - /** - * 备货区编号 - */ - @ColumnWidth(20) - @ExcelProperty("备货区编号") - private String goodsShelfId; - /** - * 预留1 - */ - @ColumnWidth(20) - @ExcelProperty("预留1") - private String reserve1; - /** - * 预留2 - */ - @ColumnWidth(20) - @ExcelProperty("预留2") - private String reserve2; - /** - * 预留3 - */ - @ColumnWidth(20) - @ExcelProperty("预留3") - private String reserve3; - /** - * 预留4 - */ - @ColumnWidth(20) - @ExcelProperty("预留4") - private String reserve4; - /** - * 预留5 - */ - @ColumnWidth(20) - @ExcelProperty("预留5") - private String reserve5; + @ExcelProperty("备货状态") + private String stockupStatusName; +// /** +// * 备货区编号 +// */ +// @ColumnWidth(20) +// @ExcelProperty("备货区编号") +// private String goodsShelfId; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.java index d82d96d15..25423c17f 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.java @@ -57,7 +57,7 @@ public interface DistributionDeliveryListMapper extends BaseMapper exportDistributionDeliveryList(@Param("ew") Wrapper queryWrapper); + List exportDistributionDeliveryList(@Param("ew") Wrapper queryWrapper); /** * 商配车次 * diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml index 45e9d0c85..61b5fad6e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryListMapper.xml @@ -260,7 +260,7 @@ - SELECT * FROM logpm_distribution_delivery_list ${ew.customSqlSegment} - + SELECT * FROM logpm_distribution_reservation ${ew.customSqlSegment}