|
@ -404,12 +404,14 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor |
|
|
try { |
|
|
try { |
|
|
String fileAbsolutePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
String fileAbsolutePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
|
|
|
|
|
SysSalesShippingInform salesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
if (StringUtils.isEmpty(outOrderCode)){ |
|
|
if (StringUtils.isEmpty(outOrderCode)){ |
|
|
log.warn("出库单号为空:{}",outOrderCode); |
|
|
log.warn("出库单号为空:{}",outOrderCode); |
|
|
throw new RuntimeException("出库单号为空,请检查"); |
|
|
throw new RuntimeException("出库单号为空,请检查"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SysSalesShippingInform salesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//销售出货单
|
|
|
//销售出货单
|
|
|
String shippingInformationType = "2"; |
|
|
String shippingInformationType = "2"; |
|
|
|
|
|
|
|
@ -485,13 +487,15 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor |
|
|
try { |
|
|
try { |
|
|
String fileAbsolutePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
String fileAbsolutePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
|
|
|
|
|
SysSalesShippingInform salesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isEmpty(outOrderCode)){ |
|
|
if (StringUtils.isEmpty(outOrderCode)){ |
|
|
log.warn("出库单号为空:{}",outOrderCode); |
|
|
log.warn("出库单号为空:{}",outOrderCode); |
|
|
throw new RuntimeException("出库单号为空,请检查"); |
|
|
throw new RuntimeException("出库单号为空,请检查"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SysSalesShippingInform salesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//销售出货单
|
|
|
//销售出货单
|
|
|
String shippingInformationType = "2"; |
|
|
String shippingInformationType = "2"; |
|
|
|
|
|
|
|
@ -563,14 +567,16 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor |
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
FileDownloadUtils fileDownloadUtils = new FileDownloadUtils(); |
|
|
try { |
|
|
try { |
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
String fileRelativePath = fileDownloadUtils.getFileRelativePath(fileName); |
|
|
|
|
|
if (StringUtils.isEmpty(outOrderCode)){ |
|
|
|
|
|
log.warn("出库单号为空:{}",outOrderCode); |
|
|
|
|
|
throw new RuntimeException("出库单号为空,请检查"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
String shippingInformationType = "0"; |
|
|
|
|
|
insertShippingInformation(outOrderCode,shippingInformationType,sysSalesShippingInform); |
|
|
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode(); |
|
|
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode(); |
|
|
if (StringUtils.isEmpty(salesOrderCode)){ |
|
|
|
|
|
log.warn("销售订单号为空,请检查:{}", salesOrderCode); |
|
|
|
|
|
throw new RuntimeException("销售订单号为空,请检查"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String realFileName = salesOrderCode + "-" + fileName.substring(0, fileName.lastIndexOf(".")) + ".xlsx"; |
|
|
String realFileName = salesOrderCode + "-" + fileName.substring(0, fileName.lastIndexOf(".")) + ".xlsx"; |
|
|
|
|
|
|
|
@ -716,6 +722,7 @@ public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInfor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformMapper.selectSysSalesShippingInformByCode(outOrderCode); |
|
|
|
|
|
|
|
|
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode(); |
|
|
String salesOrderCode = sysSalesShippingInform.getSalesOrderCode(); |
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderMapper.selectMakeOrderBySaleNo(salesOrderCode); |
|
|
SysMakeOrder sysMakeOrder = sysMakeOrderMapper.selectMakeOrderBySaleNo(salesOrderCode); |
|
|
|
|
|
|
|
|