com.macro.mall.portal.domain.SmsCouponHistoryDetail Java Examples

The following examples show how to use com.macro.mall.portal.domain.SmsCouponHistoryDetail. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UmsMemberCouponController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取登录会员购物车的相关优惠券")
@ApiImplicitParam(name = "type", value = "使用可用:0->不可用;1->可用",
        defaultValue = "1", allowableValues = "0,1", paramType = "query", dataType = "integer")
@RequestMapping(value = "/list/cart/{type}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsCouponHistoryDetail>> listCart(@PathVariable Integer type) {
    List<CartPromotionItem> cartPromotionItemList = cartItemService.listPromotion(memberService.getCurrentMember().getId());
    List<SmsCouponHistoryDetail> couponHistoryList = memberCouponService.listCart(cartPromotionItemList, type);
    return CommonResult.success(couponHistoryList);
}
 
Example #2
Source File: UmsMemberCouponController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取登录会员购物车的相关优惠券")
@ApiImplicitParam(name = "type", value = "使用可用:0->不可用;1->可用",
        defaultValue = "1", allowableValues = "0,1", paramType = "query", dataType = "integer")
@RequestMapping(value = "/list/cart/{type}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsCouponHistoryDetail>> listCart(@PathVariable Integer type) {
    List<CartPromotionItem> cartPromotionItemList = cartItemService.listPromotion(memberService.getCurrentMember().getId());
    List<SmsCouponHistoryDetail> couponHistoryList = memberCouponService.listCart(cartPromotionItemList, type);
    return CommonResult.success(couponHistoryList);
}
 
Example #3
Source File: UmsMemberCouponController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取登录会员购物车的相关优惠券")
@ApiImplicitParam(name = "type", value = "使用可用:0->不可用;1->可用",
        defaultValue = "1", allowableValues = "0,1", paramType = "query", dataType = "integer")
@RequestMapping(value = "/list/cart/{type}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsCouponHistoryDetail>> listCart(@PathVariable Integer type) {
    List<CartPromotionItem> cartPromotionItemList = cartItemService.listPromotion(memberService.getCurrentMember().getId(), null);
    List<SmsCouponHistoryDetail> couponHistoryList = memberCouponService.listCart(cartPromotionItemList, type);
    return CommonResult.success(couponHistoryList);
}
 
Example #4
Source File: UmsMemberCouponController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取登录会员购物车的相关优惠券")
@ApiImplicitParam(name = "type", value = "使用可用:0->不可用;1->可用",
        defaultValue = "1", allowableValues = "0,1", paramType = "query", dataType = "integer")
@RequestMapping(value = "/list/cart/{type}", method = RequestMethod.GET)
@ResponseBody
public Object listCart(@PathVariable Integer type) {
    List<CartPromotionItem> cartPromotionItemList = cartItemService.listPromotion(memberService.getCurrentMember().getId());
    List<SmsCouponHistoryDetail> couponHistoryList = memberCouponService.listCart(cartPromotionItemList, type);
    return new CommonResult().success(couponHistoryList);
}
 
Example #5
Source File: UmsMemberCouponService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 根据购物车信息获取可用优惠券
 */
List<SmsCouponHistoryDetail> listCart(List<CartPromotionItem> cartItemList, Integer type);
 
Example #6
Source File: UmsMemberCouponService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 根据购物车信息获取可用优惠券
 */
List<SmsCouponHistoryDetail> listCart(List<CartPromotionItem> cartItemList, Integer type);
 
Example #7
Source File: UmsMemberCouponService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 根据购物车信息获取可用优惠券
 */
List<SmsCouponHistoryDetail> listCart(List<CartPromotionItem> cartItemList, Integer type);
 
Example #8
Source File: UmsMemberCouponService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 根据购物车信息获取可用优惠券
 */
List<SmsCouponHistoryDetail> listCart(List<CartPromotionItem> cartItemList, Integer type);
 
Example #9
Source File: SmsCouponHistoryDao.java    From mall-swarm with Apache License 2.0 votes vote down vote up
List<SmsCouponHistoryDetail> getDetailList(@Param("memberId") Long memberId); 
Example #10
Source File: SmsCouponHistoryDao.java    From macrozheng with Apache License 2.0 votes vote down vote up
List<SmsCouponHistoryDetail> getDetailList(@Param("memberId") Long memberId); 
Example #11
Source File: SmsCouponHistoryDao.java    From mall with Apache License 2.0 votes vote down vote up
List<SmsCouponHistoryDetail> getDetailList(@Param("memberId") Long memberId); 
Example #12
Source File: SmsCouponHistoryDao.java    From macrozheng-mall with MIT License votes vote down vote up
List<SmsCouponHistoryDetail> getDetailList(@Param("memberId") Long memberId);