|
|
|
@@ -236,6 +236,17 @@ public class PosServiceImpl implements PosService { |
|
|
|
/// coQ.put("posIndepVerify", "1"); |
|
|
|
List<Map> couponOrderList = couponOrderService.findAvailCouponOrder(coQ); |
|
|
|
if (couponOrderList.size() > 0) { |
|
|
|
couponOrderList.stream().forEach( co -> { |
|
|
|
if(co.get("type").equals(EnumCouponType.COUPON_MANJIAN.getCode())) { |
|
|
|
co.put("type_title", EnumCouponType.COUPON_MANJIAN.getMessage()); |
|
|
|
} |
|
|
|
if(co.get("type").equals(EnumCouponType.COUPON_DAIJIN.getCode())) { |
|
|
|
co.put("type_title", EnumCouponType.COUPON_DAIJIN.getMessage()); |
|
|
|
} |
|
|
|
if(co.get("type").equals(EnumCouponType.COUPON_MULTIMCH.getCode())) { |
|
|
|
co.put("type_title", EnumCouponType.COUPON_MULTIMCH.getMessage()); |
|
|
|
} |
|
|
|
}); |
|
|
|
retMap.put(WxPayConstant.AVAIL_CO_LIST, |
|
|
|
JSONArray.toJSONString(couponOrderList)); |
|
|
|
} else { |
|
|
|
|