From f2f6530dc76f3a103df0a4a13410524dbd34093b Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Mon, 5 Apr 2021 21:45:02 +0800 Subject: [PATCH] 1 --- .../main/java/com/bweb/controller/HighCouponController.java | 6 ++++-- .../java/com/hai/service/impl/HighCouponServiceImpl.java | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java b/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java index 78fa78b3..6a7948b5 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighCouponController.java @@ -82,7 +82,7 @@ public class HighCouponController { || StringUtils.isBlank(highCoupon.getCouponDesc()) || highCoupon.getCouponType() == null || highCoupon.getPayType() == null - || highCoupon.getDisplayArea() == null +// || highCoupon.getDisplayArea() == null || highCoupon.getSalesEndTime() == null || highCoupon.getRecycleDay() == null || highCoupon.getLimitNumber()== null @@ -174,7 +174,7 @@ public class HighCouponController { || StringUtils.isBlank(highCoupon.getCouponDesc()) || highCoupon.getCouponType() == null || highCoupon.getPayType() == null - || highCoupon.getDisplayArea() == null +// || highCoupon.getDisplayArea() == null || highCoupon.getSalesEndTime() == null || highCoupon.getRecycleDay() == null || highCoupon.getLimitNumber()== null @@ -359,6 +359,7 @@ public class HighCouponController { @RequestParam(name = "couponName", required = false) String couponName, @RequestParam(name = "couponType", required = false) Integer couponType, @RequestParam(name = "displayArea", required = false) Integer displayArea, + @RequestParam(name = "couponSource", required = false) Integer couponSource, @RequestParam(name = "status", required = false) Integer status, @RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageSize", required = true) Integer pageSize, HttpServletRequest request) { @@ -376,6 +377,7 @@ public class HighCouponController { map.put("couponName", couponName); map.put("couponType", couponType); map.put("displayArea", displayArea); + map.put("couponSource", couponSource); map.put("status", status); diff --git a/hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java index 1ed1cdb4..5c023bbd 100644 --- a/hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java +++ b/hai-service/src/main/java/com/hai/service/impl/HighCouponServiceImpl.java @@ -345,6 +345,10 @@ public class HighCouponServiceImpl implements HighCouponService { criteria.andDisplayAreaEqualTo(MapUtils.getInteger(map, "displayArea")); } + if (MapUtils.getInteger(map, "couponSource") != null) { + criteria.andCouponSourceEqualTo(MapUtils.getInteger(map, "couponSource")); + } + if (MapUtils.getInteger(map, "status") != null) { criteria.andStatusEqualTo(MapUtils.getInteger(map, "status")); }