From 723314a19922787bd5a00b46e70c61203b752669 Mon Sep 17 00:00:00 2001 From: shuishangtang <836181219@qq.com> Date: Fri, 10 Nov 2023 11:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E8=B4=A7=E7=AE=A1=E7=90=86=EF=BC=9A?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E9=85=8D=E3=80=81=E5=B8=82=E9=85=8D?= =?UTF-8?q?=E5=92=8C=E8=87=AA=E6=8F=90=E5=A4=87=E8=B4=A7=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=8A=9F=E8=83=BD=E4=B8=AD=E5=A4=87=E8=B4=A7=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=BF=BB=E8=AF=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../excel/DistributionMarketExcel.java | 6 ++- .../impl/DistributionStockupServiceImpl.java | 45 +++++++++++++++++-- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionMarketExcel.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionMarketExcel.java index 103c30973..d633b0446 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionMarketExcel.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionMarketExcel.java @@ -21,7 +21,9 @@ import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.write.style.ColumnWidth; import com.alibaba.excel.annotation.write.style.ContentRowHeight; import com.alibaba.excel.annotation.write.style.HeadRowHeight; +import lombok.AllArgsConstructor; import lombok.Data; +import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.Date; @@ -37,6 +39,8 @@ import java.util.Date; @ColumnWidth(25) @HeadRowHeight(20) @ContentRowHeight(18) +@NoArgsConstructor +@AllArgsConstructor public class DistributionMarketExcel implements Serializable { private static final long serialVersionUID = 1L; @@ -71,7 +75,7 @@ public class DistributionMarketExcel implements Serializable { @ColumnWidth(20) @ExcelProperty("备货人员") - private Long forklift; + private String forkliftName; @ColumnWidth(20) @ExcelProperty("所在托盘") diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java index 8c3e0d416..fb55de772 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java @@ -2555,7 +2555,20 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl list = baseMapper.exportMarket(paramMap, idArr); list.forEach(li -> { - li.setStockupStatus(DictCache.getValue(DictBizConstant.STOCKUP_STATUS, li.getStockupStatus())); + switch (li.getStockupStatus()) { + case "10": + li.setStockupStatus("待分配"); + break; + case "20": + li.setStockupStatus("待备货"); + break; + case "30": + li.setStockupStatus("备货中"); + break; + case "40": + li.setStockupStatus("已备货"); + break; + } li.setAssignStatus("1".equals(li.getAssignStatus()) ? "未指派" : "已指派"); }); return list; @@ -2581,7 +2594,20 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl list = baseMapper.exportCity(paramMap, idArr); list.forEach(li -> { - li.setStockupStatus(DictCache.getValue(DictBizConstant.STOCKUP_STATUS, li.getStockupStatus())); + switch (li.getStockupStatus()) { + case "10": + li.setStockupStatus("待分配"); + break; + case "20": + li.setStockupStatus("待备货"); + break; + case "30": + li.setStockupStatus("备货中"); + break; + case "40": + li.setStockupStatus("已备货"); + break; + } li.setAssignStatus("1".equals(li.getAssignStatus()) ? "未指派" : "已指派"); }); return list; @@ -2608,7 +2634,20 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl list = baseMapper.exportSelf(paramMap, idArr); list.forEach(li -> { - li.setStockupStatus(DictCache.getValue(DictBizConstant.STOCKUP_STATUS, li.getStockupStatus())); + switch (li.getStockupStatus()) { + case "10": + li.setStockupStatus("待分配"); + break; + case "20": + li.setStockupStatus("待备货"); + break; + case "30": + li.setStockupStatus("备货中"); + break; + case "40": + li.setStockupStatus("已备货"); + break; + } li.setAssignStatus("1".equals(li.getAssignStatus()) ? "未指派" : "已指派"); }); return list;