|
@@ -135,7 +135,7 @@ public class SaleOrderController {
|
|
|
//@AutoLog(value = "销售订单-分页列表查询")
|
|
|
@ApiOperation(value = "销售订单-分页列表查询", notes = "销售订单-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
- @PermissionData(pageComponent="saleCode/salesOrder/SaleOrderFormList")
|
|
|
+ @PermissionData(pageComponent = "saleCode/salesOrder/SaleOrderFormList")
|
|
|
public Result<IPage<SaleOrder>> queryPageList(SaleOrder saleOrder,
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
@@ -146,9 +146,30 @@ public class SaleOrderController {
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 销售订单弹框明细-佣金付款使用
|
|
|
+ * @param saleOrder
|
|
|
+ * @param pageNo
|
|
|
+ * @param pageSize
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "销售订单弹框明细-佣金付款使用", notes = "销售订单弹框明细-佣金付款使用")
|
|
|
+ @GetMapping(value = "/selectSaleOrderDetailCommissionPay")
|
|
|
+ @PermissionData(pageComponent = "saleCode/salesOrder/SaleOrderFormList")
|
|
|
+ public Result<IPage<SaleOrder>> selectSaleOrderDetailCommissionPay(SaleOrder saleOrder,
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
+ QueryWrapper<SaleOrder> queryWrapper = QueryGenerator.initQueryWrapper(saleOrder, req.getParameterMap());
|
|
|
+ Page<SaleOrder> page = new Page<SaleOrder>(pageNo, pageSize);
|
|
|
+ IPage<SaleOrder> pageList = saleOrderService.page(page, queryWrapper);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
- * 销售订单弹框明细
|
|
|
+ * 销售订单弹框明细 通用
|
|
|
*
|
|
|
* @param saleInquiryForm
|
|
|
* @param pageNo
|
|
@@ -158,11 +179,11 @@ public class SaleOrderController {
|
|
|
*/
|
|
|
@ApiOperation(value = "销售订单弹框明细", notes = "销售订单弹框明细")
|
|
|
@GetMapping(value = "/selectSaleOrderDetailAlert")
|
|
|
- @PermissionData(pageComponent="saleCode/salesOrder/SaleOrderFormList")
|
|
|
+ @PermissionData(pageComponent = "saleCode/salesOrder/SaleOrderFormList")
|
|
|
public Result<IPage<SaleOrderAlert>> selectContractDetailAlert(SaleOrderAlert saleInquiryForm,
|
|
|
- @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
- @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
- HttpServletRequest req) {
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
|
|
|
QueryWrapper<SaleOrderAlert> queryWrapper = QueryGenerator.initQueryWrapper(saleInquiryForm, req.getParameterMap());
|
|
|
Page<SaleOrderAlert> page = new Page<SaleOrderAlert>(pageNo, pageSize);
|
|
@@ -171,7 +192,7 @@ public class SaleOrderController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 销售订单弹框明细
|
|
|
+ * 销售订单弹框明细-采购订单使用
|
|
|
*
|
|
|
* @param saleInquiryForm
|
|
|
* @param pageNo
|
|
@@ -179,17 +200,42 @@ public class SaleOrderController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
- @ApiOperation(value = "销售订单弹框明细", notes = "销售订单弹框明细")
|
|
|
+ @ApiOperation(value = "销售订单弹框明细-采购订单使用", notes = "销售订单弹框明细-采购订单使用")
|
|
|
@GetMapping(value = "/selectSaleOrderDetailAlertExistSup")
|
|
|
- @PermissionData(pageComponent="saleCode/salesOrder/SaleOrderFormList")
|
|
|
+ @PermissionData(pageComponent = "saleCode/salesOrder/SaleOrderFormList")
|
|
|
public Result<IPage<SaleOrderAlert>> selectSaleOrderDetailAlertExistSup(SaleOrderAlert saleInquiryForm,
|
|
|
- @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
- @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
- HttpServletRequest req) {
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
|
|
|
QueryWrapper<SaleOrderAlert> queryWrapper = QueryGenerator.initQueryWrapper(saleInquiryForm, req.getParameterMap());
|
|
|
Page<SaleOrderAlert> page = new Page<SaleOrderAlert>(pageNo, pageSize);
|
|
|
queryWrapper.isNotNull("supplier_id");
|
|
|
+ queryWrapper.apply("quantity > IFNULL(purchase_quantity, 0)");
|
|
|
+ IPage<SaleOrderAlert> pageList = saleOrderProductService.selectSaleOrderDetailAlert(page, queryWrapper);
|
|
|
+ return Result.OK(pageList);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 销售订单弹框明细-发货通知单使用
|
|
|
+ *
|
|
|
+ * @param saleInquiryForm
|
|
|
+ * @param pageNo
|
|
|
+ * @param pageSize
|
|
|
+ * @param req
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "销售订单弹框明细-发货通知单使用", notes = "销售订单弹框明细-发货通知单使用")
|
|
|
+ @GetMapping(value = "/selectSaleOrderDetailAlertDelivery")
|
|
|
+ @PermissionData(pageComponent = "saleCode/salesOrder/SaleOrderFormList")
|
|
|
+ public Result<IPage<SaleOrderAlert>> selectSaleOrderDetailAlertDelivery(SaleOrderAlert saleInquiryForm,
|
|
|
+ @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
+ HttpServletRequest req) {
|
|
|
+
|
|
|
+ QueryWrapper<SaleOrderAlert> queryWrapper = QueryGenerator.initQueryWrapper(saleInquiryForm, req.getParameterMap());
|
|
|
+ Page<SaleOrderAlert> page = new Page<SaleOrderAlert>(pageNo, pageSize);
|
|
|
+ queryWrapper.apply("quantity > IFNULL(delivery_quantity, 0)");
|
|
|
IPage<SaleOrderAlert> pageList = saleOrderProductService.selectSaleOrderDetailAlert(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
@@ -213,7 +259,7 @@ public class SaleOrderController {
|
|
|
String getSourceCode = saleOrder.getSourceCode();
|
|
|
String getSourceCode2 = saleOrder.getSourceCode2();
|
|
|
|
|
|
- if(StringUtils.isBlank(getSourceCode) && StringUtils.isBlank(getSourceCode2)){
|
|
|
+ if (StringUtils.isBlank(getSourceCode) && StringUtils.isBlank(getSourceCode2)) {
|
|
|
return Result.error("网络异常,请刷新后重试 !");
|
|
|
}
|
|
|
|
|
@@ -236,7 +282,7 @@ public class SaleOrderController {
|
|
|
saleOrder.setBillCode(result.getMessage());
|
|
|
}
|
|
|
|
|
|
- saleOrder.setVersion("1");
|
|
|
+ saleOrder.setVersion("1");
|
|
|
saleOrderService.saveMain(saleOrder, saleOrderPage.getSaleOrderShipList(), saleOrderPage.getSaleOrderProductList());
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
@@ -258,7 +304,7 @@ public class SaleOrderController {
|
|
|
String getSourceCode = saleOrder.getSourceCode();
|
|
|
String getSourceCode2 = saleOrder.getSourceCode2();
|
|
|
|
|
|
- if(StringUtils.isBlank(getSourceCode) && StringUtils.isBlank(getSourceCode2)){
|
|
|
+ if (StringUtils.isBlank(getSourceCode) && StringUtils.isBlank(getSourceCode2)) {
|
|
|
return Result.error("网络异常,请刷新后重试 !");
|
|
|
}
|
|
|
|
|
@@ -300,7 +346,7 @@ public class SaleOrderController {
|
|
|
int newV = Integer.valueOf(version) + 1;
|
|
|
|
|
|
List<SaleOrderShipHis> saleOrderShipHisList = new ArrayList<>();
|
|
|
- if (saleOrderPage.getSaleOrderShipList().size() > 0) {
|
|
|
+ if (saleOrderPage.getSaleOrderShipList() !=null && saleOrderPage.getSaleOrderShipList().size() > 0) {
|
|
|
for (SaleOrderShip o : saleOrderPage.getSaleOrderShipList()) {
|
|
|
SaleOrderShipHis his = new SaleOrderShipHis();
|
|
|
BeanUtils.copyProperties(o, his);
|
|
@@ -312,7 +358,7 @@ public class SaleOrderController {
|
|
|
}
|
|
|
|
|
|
List<SaleOrderProductHis> saleOrderProductList = new ArrayList<>();
|
|
|
- if (saleOrderPage.getSaleOrderProductList().size() > 0) {
|
|
|
+ if (saleOrderPage.getSaleOrderProductList() !=null && saleOrderPage.getSaleOrderProductList().size() > 0) {
|
|
|
|
|
|
for (SaleOrderProduct o : saleOrderPage.getSaleOrderProductList()) {
|
|
|
SaleOrderProductHis his = new SaleOrderProductHis();
|
|
@@ -495,10 +541,10 @@ public class SaleOrderController {
|
|
|
querySaleDelivery.eq("del_flag", "0");
|
|
|
|
|
|
List<SaleDelivery> listSaleDelivery = saleDeliveryService.list(querySaleDelivery);
|
|
|
- if(listSaleDelivery.size() > 0){
|
|
|
+ if (listSaleDelivery.size() > 0) {
|
|
|
List<String> codeList = listSaleDelivery.stream().map(SaleDelivery::getBillCode).collect(Collectors.toList());
|
|
|
String codes = StringUtils.join(codeList.toArray(), ",");
|
|
|
- sb.append("单号" + code).append("已被发货通知单使用,请勿取消提交"+codes+";");
|
|
|
+ sb.append("单号" + code).append("已被发货通知单使用,请勿取消提交" + codes + ";");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -507,10 +553,10 @@ public class SaleOrderController {
|
|
|
querySaleAdvancePayment.eq("del_flag", "0");
|
|
|
|
|
|
List<SaleAdvancePayment> listSaleAdvancePayment = saleAdvancePaymentService.list(querySaleAdvancePayment);
|
|
|
- if(listSaleAdvancePayment.size() > 0){
|
|
|
+ if (listSaleAdvancePayment.size() > 0) {
|
|
|
List<String> codeList = listSaleAdvancePayment.stream().map(SaleAdvancePayment::getBillCode).collect(Collectors.toList());
|
|
|
String codes = StringUtils.join(codeList.toArray(), ",");
|
|
|
- sb.append("单号" + code).append("已被预收款使用,请勿取消提交"+codes+";");
|
|
|
+ sb.append("单号" + code).append("已被预收款使用,请勿取消提交" + codes + ";");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -519,10 +565,10 @@ public class SaleOrderController {
|
|
|
querySaleReceipt.eq("del_flag", "0");
|
|
|
|
|
|
List<SaleReceipt> listSaleReceipt = saleReceiptService.list(querySaleReceipt);
|
|
|
- if(listSaleReceipt.size() > 0){
|
|
|
+ if (listSaleReceipt.size() > 0) {
|
|
|
List<String> codeList = listSaleReceipt.stream().map(SaleReceipt::getBillCode).collect(Collectors.toList());
|
|
|
String codes = StringUtils.join(codeList.toArray(), ",");
|
|
|
- sb.append("单号" + code).append("已被收款单使用,请勿取消提交"+codes+";");
|
|
|
+ sb.append("单号" + code).append("已被收款单使用,请勿取消提交" + codes + ";");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -531,10 +577,10 @@ public class SaleOrderController {
|
|
|
queryPurOrder.eq("del_flag", "0");
|
|
|
|
|
|
List<PurOrder> listPurOrder = purOrderService.list(queryPurOrder);
|
|
|
- if(listPurOrder.size() > 0){
|
|
|
+ if (listPurOrder.size() > 0) {
|
|
|
List<String> codeList = listPurOrder.stream().map(PurOrder::getBillCode).collect(Collectors.toList());
|
|
|
String codes = StringUtils.join(codeList.toArray(), ",");
|
|
|
- sb.append("单号" + code).append("已被采购订单使用,请勿取消提交"+codes+";");
|
|
|
+ sb.append("单号" + code).append("已被采购订单使用,请勿取消提交" + codes + ";");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -543,10 +589,10 @@ public class SaleOrderController {
|
|
|
queryPurCommissionRequest.eq("del_flag", "0");
|
|
|
|
|
|
List<PurCommissionRequest> listPurCommissionRequest = purCommissionRequestService.list(queryPurCommissionRequest);
|
|
|
- if(listPurCommissionRequest.size() > 0){
|
|
|
+ if (listPurCommissionRequest.size() > 0) {
|
|
|
List<String> codeList = listPurCommissionRequest.stream().map(PurCommissionRequest::getBillCode).collect(Collectors.toList());
|
|
|
String codes = StringUtils.join(codeList.toArray(), ",");
|
|
|
- sb.append("单号" + code).append("已被佣金付款申请使用,请勿取消提交"+codes+";");
|
|
|
+ sb.append("单号" + code).append("已被佣金付款申请使用,请勿取消提交" + codes + ";");
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -616,7 +662,7 @@ public class SaleOrderController {
|
|
|
|
|
|
SaleOrder ent = new SaleOrder();
|
|
|
ent.setStatus(1);
|
|
|
- LoginUser sysUser = (LoginUser)SecurityUtils.getSubject().getPrincipal();
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
ent.setConfirmBy(sysUser.getUsername());
|
|
|
ent.setConfirmTime(new Date());
|
|
|
saleOrderService.update(ent, queryWrapper);
|
|
@@ -904,7 +950,6 @@ public class SaleOrderController {
|
|
|
|
|
|
/**
|
|
|
* 导出excel
|
|
|
- *
|
|
|
*/
|
|
|
@RequestMapping(value = "/exportBillXls")
|
|
|
public void exportBillXls(HttpServletResponse response, SaleOrder saleOrder1) throws Exception {
|
|
@@ -915,9 +960,9 @@ public class SaleOrderController {
|
|
|
List<SaleOrderProduct> productList = saleOrderProductService.selectByMainId(saleOrder.getId());
|
|
|
List<SaleOrderShip> saleOrderShipList = saleOrderShipService.selectByMainId(saleOrder.getId());
|
|
|
BaseTemplates templates = null;
|
|
|
- if (saleOrder.getDoubleDiscount() == null){
|
|
|
+ if (saleOrder.getDoubleDiscount() == null) {
|
|
|
templates = templatesN;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
templates = templatesZ;
|
|
|
}
|
|
|
if (templates != null) {
|
|
@@ -943,7 +988,7 @@ public class SaleOrderController {
|
|
|
}
|
|
|
// 获取计产品档案
|
|
|
List<BaseProductArchive> productArchiveList = new ArrayList<>();
|
|
|
- if (oConvertUtils.listIsNotEmpty(productList)){
|
|
|
+ if (oConvertUtils.listIsNotEmpty(productList)) {
|
|
|
LambdaQueryWrapper<BaseProductArchive> productWrapper = new LambdaQueryWrapper<>();
|
|
|
productWrapper.in(BaseProductArchive::getId, productList.stream().map(SaleOrderProduct::getProductId).collect(Collectors.toList()));
|
|
|
productArchiveList = baseProductArchiveService.list(productWrapper);
|
|
@@ -958,22 +1003,22 @@ public class SaleOrderController {
|
|
|
// 产品设置
|
|
|
int rowNum = 1;
|
|
|
BigDecimal orderMoney = BigDecimal.ZERO;
|
|
|
- for(SaleOrderProduct o:productList){
|
|
|
- BigDecimal amount = o.getTaxAmount() == null ? BigDecimal.ZERO: o.getTaxAmount();
|
|
|
+ for (SaleOrderProduct o : productList) {
|
|
|
+ BigDecimal amount = o.getTaxAmount() == null ? BigDecimal.ZERO : o.getTaxAmount();
|
|
|
orderMoney = orderMoney.add(amount);
|
|
|
o.setRowNumber(rowNum++);
|
|
|
- if (o.getDeliveryTime() != null){
|
|
|
+ if (o.getDeliveryTime() != null) {
|
|
|
o.setDeliverDateText(DateUtils.date2Str(o.getDeliveryTime(), DateUtils.date_sdf.get()));
|
|
|
}
|
|
|
- if (oConvertUtils.isNotEmpty(o.getDiscount()) && o.getDiscount().intValue() != 0){
|
|
|
- o.setDiscountText(o.getDiscount().intValue()+"%");
|
|
|
+ if (oConvertUtils.isNotEmpty(o.getDiscount()) && o.getDiscount().intValue() != 0) {
|
|
|
+ o.setDiscountText(o.getDiscount().intValue() + "%");
|
|
|
}
|
|
|
- BaseProductArchive findProduct = productArchiveList.stream().filter(e->e.getId().equals(o.getProductId())).findFirst().orElse(null);
|
|
|
- if (findProduct != null){
|
|
|
+ BaseProductArchive findProduct = productArchiveList.stream().filter(e -> e.getId().equals(o.getProductId())).findFirst().orElse(null);
|
|
|
+ if (findProduct != null) {
|
|
|
o.setUnit(findProduct.getMeasurementUnit());
|
|
|
- if (findProduct.getMeasurementUnit() != null){
|
|
|
- DictModel findDict = unitDictList.stream().filter(d->d.getValue().equals(findProduct.getMeasurementUnit())).findFirst().orElse(null);
|
|
|
- if (findDict != null){
|
|
|
+ if (findProduct.getMeasurementUnit() != null) {
|
|
|
+ DictModel findDict = unitDictList.stream().filter(d -> d.getValue().equals(findProduct.getMeasurementUnit())).findFirst().orElse(null);
|
|
|
+ if (findDict != null) {
|
|
|
o.setUnit(findDict.getText());
|
|
|
}
|
|
|
}
|
|
@@ -985,37 +1030,37 @@ public class SaleOrderController {
|
|
|
String shipname = "";
|
|
|
String imo = "";
|
|
|
|
|
|
- if(oConvertUtils.listIsNotEmpty(saleOrderShipList)){
|
|
|
+ if (oConvertUtils.listIsNotEmpty(saleOrderShipList)) {
|
|
|
|
|
|
shipname = saleOrderShipList.stream().map(SaleOrderShip::getShipName).distinct().collect(Collectors.joining());
|
|
|
|
|
|
LambdaQueryWrapper<BaseShipArchive> shipArchiveLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
- shipArchiveLambdaQueryWrapper.in(BaseShipArchive::getId,saleOrderShipList.stream().map(SaleOrderShip::getShipId).collect(Collectors.joining()));
|
|
|
+ shipArchiveLambdaQueryWrapper.in(BaseShipArchive::getId, saleOrderShipList.stream().map(SaleOrderShip::getShipId).collect(Collectors.joining()));
|
|
|
List<BaseShipArchive> baseShipArchiveList = baseShipArchiveService.list(shipArchiveLambdaQueryWrapper);
|
|
|
|
|
|
- if(oConvertUtils.listIsNotEmpty(baseShipArchiveList)){
|
|
|
+ if (oConvertUtils.listIsNotEmpty(baseShipArchiveList)) {
|
|
|
imo = baseShipArchiveList.stream().map(BaseShipArchive::getImo).distinct().collect(Collectors.joining());
|
|
|
}
|
|
|
}
|
|
|
saleOrder.setShipName(shipname);
|
|
|
saleOrder.setImo(imo);
|
|
|
// 项目名称
|
|
|
- if (saleOrder.getProject() != null){
|
|
|
+ if (saleOrder.getProject() != null) {
|
|
|
BaseProjectArchive projectArchive = baseProjectArchiveService.getById(saleOrder.getProject());
|
|
|
- if (projectArchive != null){
|
|
|
+ if (projectArchive != null) {
|
|
|
saleOrder.setContactsNo(projectArchive.getName());
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- if(productList.size() > 0){
|
|
|
+ if (productList.size() > 0) {
|
|
|
|
|
|
saleOrder.setQualityGrade(productList.get(0).getQualityGrade());
|
|
|
}
|
|
|
//
|
|
|
saleOrder.setBillDateText(DateUtils.date2Str(saleOrder.getBillDate(), DateUtils.date_sdf.get()));
|
|
|
- if (oConvertUtils.isNotEmpty(saleOrder.getDoubleDiscount())){
|
|
|
- saleOrder.setDiscountText(saleOrder.getDoubleDiscount().intValue()+"%");
|
|
|
+ if (oConvertUtils.isNotEmpty(saleOrder.getDoubleDiscount())) {
|
|
|
+ saleOrder.setDiscountText(saleOrder.getDoubleDiscount().intValue() + "%");
|
|
|
saleOrder.setDiscountMoney(orderMoney.subtract(new BigDecimal(saleOrder.getConvertedAmount())).setScale(2));
|
|
|
}
|
|
|
|
|
@@ -1026,7 +1071,7 @@ public class SaleOrderController {
|
|
|
|
|
|
|
|
|
String templateFilePath = uploadpath + templates.getTemplateFile();
|
|
|
- String tempFilePath = uploadpath + "/"+ UUIDGenerator.generate()+".xlsx";
|
|
|
+ String tempFilePath = uploadpath + "/" + UUIDGenerator.generate() + ".xlsx";
|
|
|
|
|
|
try (ExcelWriter excelWriter = EasyExcel.write(tempFilePath).withTemplate(templateFilePath).build()) {
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet().build();
|
|
@@ -1035,9 +1080,9 @@ public class SaleOrderController {
|
|
|
excelWriter.fill(saleOrder, writeSheet);
|
|
|
}
|
|
|
List<String> noteList = new ArrayList<>();
|
|
|
- productList.forEach(p->noteList.add(p.getNotes()));
|
|
|
+ productList.forEach(p -> noteList.add(p.getNotes()));
|
|
|
|
|
|
- ExcelExportUtils.excelInsertRowNotes(getOutputStream(saleOrder.getBillCode()+".xlsx", response),
|
|
|
+ ExcelExportUtils.excelInsertRowNotes(getOutputStream(saleOrder.getBillCode() + ".xlsx", response),
|
|
|
tempFilePath, 17, noteList, 1, 3);
|
|
|
|
|
|
|
|
@@ -1047,6 +1092,7 @@ public class SaleOrderController {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 这是ExcelUtil.getOutputStream
|
|
|
* 这里就是将文件下载交给了浏览器
|