Browse Source

[fix] 销售管理

修改销售出货箱单excel模板2的表格,修复去掉多余的一列,导致填充的数据格式不正确
修改导出销售出货箱单模板2接口:新增导出销售出货箱单模板2的同时,新增销售出货资料信息
dev
liuxiaoxu 3 months ago
parent
commit
fc2eb6cc1a
  1. 10
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java
  2. BIN
      ruoyi-admin/src/main/resources/static/attachments/销售出货箱单2.xlsx

10
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java

@ -575,6 +575,7 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode);
String shippingInformationType = "0";
//生成出货资料
insertShippingInformation(outOrderCode,shippingInformationType,sysSalesShippingInform);
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode();
@ -640,9 +641,18 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils();
try {
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName);
if (StringUtils.isEmpty(outOrderCode)){
log.warn("出库单号为空:{}",outOrderCode);
throw new RuntimeException("出库单号为空,请检查");
}
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode);
String shippingInformationType = "0";
//生成出货资料
insertShippingInformation(outOrderCode,shippingInformationType,sysSalesShippingInform);
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode();
if (StringUtils.isEmpty(salesOrderCode)){
log.warn("销售订单号为空,请检查:{}", salesOrderCode);

BIN
ruoyi-admin/src/main/resources/static/attachments/销售出货箱单2.xlsx

Binary file not shown.
Loading…
Cancel
Save