From 7de8bc2fc0e0b4f8512b1d1635ae8faea39d07ac Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 14 Feb 2023 16:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/web/controller/business/OrderCouponController.java | 5 ++++- .../src/main/java/com/hai/dao/order/OrderMapperExt.java | 4 +++- .../src/main/java/com/hai/order/model/OrderCouponModel.java | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java b/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java index 4122c717..0e4f38c3 100644 --- a/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java +++ b/hai-order/src/main/java/com/web/controller/business/OrderCouponController.java @@ -75,6 +75,7 @@ public class OrderCouponController { @RequestParam(name = "payTimeE", required = false) Long payTimeE, @RequestParam(name = "finishTimeS", required = false) Long finishTimeS, @RequestParam(name = "finishTimeE", required = false) Long finishTimeE, + @RequestParam(name = "exceptionStatus", required = false) Boolean exceptionStatus, @RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageSize", required = true) Integer pageSize, HttpServletRequest request) { @@ -109,6 +110,7 @@ public class OrderCouponController { map.put("payTimeE", payTimeE); map.put("finishTimeS", finishTimeS); map.put("finishTimeE", finishTimeE); + map.put("exceptionStatus", exceptionStatus); PageHelper.startPage(pageNum,pageSize); return ResponseMsgUtil.success(new PageInfo<>(orderServiceExt.getOrderCouponList(map))); @@ -120,7 +122,6 @@ public class OrderCouponController { } - @RequestMapping(value = "/exportOrderCouponExcel", method = RequestMethod.GET) @ResponseBody @ApiOperation(value = "导出卡券订单") @@ -138,6 +139,7 @@ public class OrderCouponController { @RequestParam(name = "payTimeE", required = false) Long payTimeE, @RequestParam(name = "finishTimeS", required = false) Long finishTimeS, @RequestParam(name = "finishTimeE", required = false) Long finishTimeE, + @RequestParam(name = "exceptionStatus", required = false) Integer exceptionStatus, HttpServletRequest request) { try { @@ -169,6 +171,7 @@ public class OrderCouponController { map.put("payTimeE", payTimeE); map.put("finishTimeS", finishTimeS); map.put("finishTimeE", finishTimeE); + map.put("exceptionStatus", exceptionStatus); List list = orderServiceExt.getOrderCouponList(map); diff --git a/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java b/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java index a0d47fcf..22aaf27e 100644 --- a/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java +++ b/hai-service/src/main/java/com/hai/dao/order/OrderMapperExt.java @@ -60,7 +60,8 @@ public interface OrderMapperExt { " ELSE '未知' END orderStatus," + " b.create_time createTime," + " b.pay_time payTime," + - " b.finish_time finishTime" + + " b.finish_time finishTime," + + " case b.exception_status when 1 then '异常' when 0 then '正常' else '未知' end exceptionStatus" + " from high_child_order a" + " LEFT JOIN high_order b on b.id = a.order_id" + " LEFT JOIN high_coupon d on d.id = a.goods_id" + @@ -80,6 +81,7 @@ public interface OrderMapperExt { " " + " = #{param.finishTimeS} ]]> " + " " + + " and b.exception_status = #{param.exceptionStatus} " + " ORDER BY b.create_time desc" + ""}) List queryOrderCoupon(@Param("param") Map param); diff --git a/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java b/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java index ed44c4c0..6d3b2f3f 100644 --- a/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java +++ b/hai-service/src/main/java/com/hai/order/model/OrderCouponModel.java @@ -95,4 +95,8 @@ public class OrderCouponModel { @ColumnWidth(20) @ExcelProperty(value = "完成时间") private Date finishTime; + + @ColumnWidth(10) + @ExcelProperty(value = "异常状态") + private String exceptionStatus; }