com.macro.mall.model.SmsCoupon Java Examples
The following examples show how to use
com.macro.mall.model.SmsCoupon.
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 with Apache License 2.0 | 5 votes |
@ApiOperation("获取用户优惠券列表") @ApiImplicitParam(name = "useStatus", value = "优惠券筛选类型:0->未使用;1->已使用;2->已过期", allowableValues = "0,1,2", paramType = "query", dataType = "integer") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<List<SmsCoupon>> list(@RequestParam(value = "useStatus", required = false) Integer useStatus) { List<SmsCoupon> couponList = memberCouponService.list(useStatus); return CommonResult.success(couponList); }
Example #2
Source File: SmsCouponController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsCoupon>> list( @RequestParam(value = "name",required = false) String name, @RequestParam(value = "type",required = false) Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsCoupon> couponList = couponService.list(name,type,pageSize,pageNum); return CommonResult.success(CommonPage.restPage(couponList)); }
Example #3
Source File: SmsCouponController.java From macrozheng with Apache License 2.0 | 5 votes |
@ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsCoupon>> list( @RequestParam(value = "name",required = false) String name, @RequestParam(value = "type",required = false) Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsCoupon> couponList = couponService.list(name,type,pageSize,pageNum); return CommonResult.success(CommonPage.restPage(couponList)); }
Example #4
Source File: SmsCouponController.java From mall-swarm with Apache License 2.0 | 5 votes |
@ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public CommonResult<CommonPage<SmsCoupon>> list( @RequestParam(value = "name",required = false) String name, @RequestParam(value = "type",required = false) Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsCoupon> couponList = couponService.list(name,type,pageSize,pageNum); return CommonResult.success(CommonPage.restPage(couponList)); }
Example #5
Source File: UmsMemberCouponController.java From mall with Apache License 2.0 | 5 votes |
@ApiOperation("获取当前商品相关优惠券") @RequestMapping(value = "/listByProduct/{productId}", method = RequestMethod.GET) @ResponseBody public CommonResult<List<SmsCoupon>> listByProduct(@PathVariable Long productId) { List<SmsCoupon> couponHistoryList = memberCouponService.listByProduct(productId); return CommonResult.success(couponHistoryList); }
Example #6
Source File: SmsCouponController.java From macrozheng-mall with MIT License | 5 votes |
@ApiOperation("根据优惠券名称和类型分页获取优惠券列表") @RequestMapping(value = "/list", method = RequestMethod.GET) @ResponseBody public Object list( @RequestParam(value = "name",required = false) String name, @RequestParam(value = "type",required = false) Integer type, @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize, @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) { List<SmsCoupon> couponList = couponService.list(name,type,pageSize,pageNum); return new CommonResult().pageSuccess(couponList); }
Example #7
Source File: SmsCouponHistoryDetail.java From macrozheng-mall with MIT License | 4 votes |
public SmsCoupon getCoupon() { return coupon; }
Example #8
Source File: SmsCouponHistoryDetail.java From mall-swarm with Apache License 2.0 | 4 votes |
public SmsCoupon getCoupon() { return coupon; }
Example #9
Source File: SmsCouponHistoryDetail.java From mall-swarm with Apache License 2.0 | 4 votes |
public void setCoupon(SmsCoupon coupon) { this.coupon = coupon; }
Example #10
Source File: SmsCouponHistoryDetail.java From macrozheng-mall with MIT License | 4 votes |
public void setCoupon(SmsCoupon coupon) { this.coupon = coupon; }
Example #11
Source File: SmsCouponHistoryDetail.java From mall with Apache License 2.0 | 4 votes |
public SmsCoupon getCoupon() { return coupon; }
Example #12
Source File: SmsCouponHistoryDetail.java From macrozheng with Apache License 2.0 | 4 votes |
public void setCoupon(SmsCoupon coupon) { this.coupon = coupon; }
Example #13
Source File: SmsCouponHistoryDetail.java From macrozheng with Apache License 2.0 | 4 votes |
public SmsCoupon getCoupon() { return coupon; }
Example #14
Source File: SmsCouponHistoryDetail.java From mall with Apache License 2.0 | 4 votes |
public void setCoupon(SmsCoupon coupon) { this.coupon = coupon; }
Example #15
Source File: UmsMemberCouponService.java From mall with Apache License 2.0 | 2 votes |
/** * 获取当前商品相关优惠券 */ List<SmsCoupon> listByProduct(Long productId);
Example #16
Source File: UmsMemberCouponService.java From mall with Apache License 2.0 | 2 votes |
/** * 获取用户优惠券列表 */ List<SmsCoupon> list(Integer useStatus);
Example #17
Source File: SmsCouponService.java From macrozheng with Apache License 2.0 | 2 votes |
/** * 分页获取优惠券列表 */ List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);
Example #18
Source File: SmsCouponService.java From macrozheng-mall with MIT License | 2 votes |
/** * 分页获取优惠券列表 */ List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);
Example #19
Source File: SmsCouponService.java From mall with Apache License 2.0 | 2 votes |
/** * 分页获取优惠券列表 */ List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);
Example #20
Source File: SmsCouponService.java From mall-swarm with Apache License 2.0 | 2 votes |
/** * 分页获取优惠券列表 */ List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);
Example #21
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int insert(SmsCoupon record);
Example #22
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int insertSelective(SmsCoupon record);
Example #23
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
List<SmsCoupon> selectByExample(SmsCouponExample example);
Example #24
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
SmsCoupon selectByPrimaryKey(Long id);
Example #25
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int updateByExampleSelective(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example);
Example #26
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int updateByExample(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example);
Example #27
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKeySelective(SmsCoupon record);
Example #28
Source File: PortalProductDao.java From mall with Apache License 2.0 | votes |
List<SmsCoupon> getAvailableCouponList(@Param("productId") Long productId,@Param("productCategoryId")Long productCategoryId);
Example #29
Source File: SmsCouponHistoryDao.java From mall with Apache License 2.0 | votes |
List<SmsCoupon> getCouponList(@Param("memberId") Long memberId, @Param("useStatus")Integer useStatus);
Example #30
Source File: SmsCouponMapper.java From macrozheng-mall with MIT License | votes |
int updateByPrimaryKey(SmsCoupon record);