|
@@ -1,7 +1,7 @@
|
|
|
package com.sckw.transport.controller;
|
|
package com.sckw.transport.controller;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.sckw.core.exception.BusinessException;
|
|
|
|
|
|
|
+import com.sckw.core.exception.CustomPromptException;
|
|
|
import com.sckw.core.model.enums.OrderRuleEnum;
|
|
import com.sckw.core.model.enums.OrderRuleEnum;
|
|
|
import com.sckw.core.model.enums.RedisOrderGenerateEnum;
|
|
import com.sckw.core.model.enums.RedisOrderGenerateEnum;
|
|
|
import com.sckw.core.model.vo.BaseList;
|
|
import com.sckw.core.model.vo.BaseList;
|
|
@@ -312,7 +312,7 @@ public class LogisticsConsignmentController {
|
|
|
public void logisticOrderByPurchaseOrderIdExport(@RequestParam("ids") @NotBlank(message = "单据id不能为空") String ids, HttpServletResponse response) {
|
|
public void logisticOrderByPurchaseOrderIdExport(@RequestParam("ids") @NotBlank(message = "单据id不能为空") String ids, HttpServletResponse response) {
|
|
|
List<PurchaseLogisticOrderExcelVo> list = logisticsConsignmentService.logisticOrderByPurchaseOrderIdExport(ids);
|
|
List<PurchaseLogisticOrderExcelVo> list = logisticsConsignmentService.logisticOrderByPurchaseOrderIdExport(ids);
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
- throw new BusinessException("暂无数据,请确认");
|
|
|
|
|
|
|
+ throw new CustomPromptException(HttpStatus.SUCCESS_CODE, "暂无数据,请确认");
|
|
|
}
|
|
}
|
|
|
ExcelUtil.downData(response, PurchaseLogisticOrderExcelVo.class, list);
|
|
ExcelUtil.downData(response, PurchaseLogisticOrderExcelVo.class, list);
|
|
|
}
|
|
}
|
|
@@ -328,7 +328,7 @@ public class LogisticsConsignmentController {
|
|
|
public void logisticOrderBySellOrderIdExport(@RequestParam("ids") @NotBlank(message = "单据id不能为空") String ids, HttpServletResponse response) {
|
|
public void logisticOrderBySellOrderIdExport(@RequestParam("ids") @NotBlank(message = "单据id不能为空") String ids, HttpServletResponse response) {
|
|
|
List<SellLogisticOrderExcelVo> list = logisticsConsignmentService.logisticOrderBySellOrderIdExport(ids);
|
|
List<SellLogisticOrderExcelVo> list = logisticsConsignmentService.logisticOrderBySellOrderIdExport(ids);
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
- throw new BusinessException("暂无数据,请确认");
|
|
|
|
|
|
|
+ throw new CustomPromptException(HttpStatus.SUCCESS_CODE, "暂无数据,请确认");
|
|
|
}
|
|
}
|
|
|
ExcelUtil.downData(response, SellLogisticOrderExcelVo.class, list);
|
|
ExcelUtil.downData(response, SellLogisticOrderExcelVo.class, list);
|
|
|
}
|
|
}
|