com.macro.mall.model.SmsCouponHistory Java Examples

The following examples show how to use com.macro.mall.model.SmsCouponHistory. 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: SmsCouponHistoryServiceImpl.java    From macrozheng-mall with MIT License 6 votes vote down vote up
@Override
public List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsCouponHistoryExample example = new SmsCouponHistoryExample();
    SmsCouponHistoryExample.Criteria criteria = example.createCriteria();
    if(couponId!=null){
        criteria.andCouponIdEqualTo(couponId);
    }
    if(useStatus!=null){
        criteria.andUseStatusEqualTo(useStatus);
    }
    if(!StringUtils.isEmpty(orderSn)){
        criteria.andOrderSnEqualTo(orderSn);
    }
    return historyMapper.selectByExample(example);
}
 
Example #2
Source File: SmsCouponHistoryServiceImpl.java    From mall with Apache License 2.0 6 votes vote down vote up
@Override
public List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsCouponHistoryExample example = new SmsCouponHistoryExample();
    SmsCouponHistoryExample.Criteria criteria = example.createCriteria();
    if(couponId!=null){
        criteria.andCouponIdEqualTo(couponId);
    }
    if(useStatus!=null){
        criteria.andUseStatusEqualTo(useStatus);
    }
    if(!StringUtils.isEmpty(orderSn)){
        criteria.andOrderSnEqualTo(orderSn);
    }
    return historyMapper.selectByExample(example);
}
 
Example #3
Source File: SmsCouponHistoryServiceImpl.java    From macrozheng with Apache License 2.0 6 votes vote down vote up
@Override
public List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsCouponHistoryExample example = new SmsCouponHistoryExample();
    SmsCouponHistoryExample.Criteria criteria = example.createCriteria();
    if(couponId!=null){
        criteria.andCouponIdEqualTo(couponId);
    }
    if(useStatus!=null){
        criteria.andUseStatusEqualTo(useStatus);
    }
    if(!StringUtils.isEmpty(orderSn)){
        criteria.andOrderSnEqualTo(orderSn);
    }
    return historyMapper.selectByExample(example);
}
 
Example #4
Source File: SmsCouponHistoryServiceImpl.java    From mall-swarm with Apache License 2.0 6 votes vote down vote up
@Override
public List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum) {
    PageHelper.startPage(pageNum,pageSize);
    SmsCouponHistoryExample example = new SmsCouponHistoryExample();
    SmsCouponHistoryExample.Criteria criteria = example.createCriteria();
    if(couponId!=null){
        criteria.andCouponIdEqualTo(couponId);
    }
    if(useStatus!=null){
        criteria.andUseStatusEqualTo(useStatus);
    }
    if(!StringUtils.isEmpty(orderSn)){
        criteria.andOrderSnEqualTo(orderSn);
    }
    return historyMapper.selectByExample(example);
}
 
Example #5
Source File: UmsMemberCouponController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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<SmsCouponHistory>> list(@RequestParam(value = "useStatus", required = false) Integer useStatus) {
    List<SmsCouponHistory> couponHistoryList = memberCouponService.list(useStatus);
    return CommonResult.success(couponHistoryList);
}
 
Example #6
Source File: SmsCouponHistoryController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("根据优惠券id,使用状态,订单编号分页获取领取记录")
@RequestMapping(value = "/list",method = RequestMethod.GET)
@ResponseBody
public Object list(@RequestParam(value = "couponId",required = false) Long couponId,
                   @RequestParam(value = "useStatus",required = false) Integer useStatus,
                   @RequestParam(value = "orderSn",required = false) String orderSn,
                   @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                   @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum){
    List<SmsCouponHistory> historyList = historyService.list(couponId,useStatus,orderSn,pageSize,pageNum);
    return new CommonResult().pageSuccess(historyList);
}
 
Example #7
Source File: UmsMemberCouponController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取用户优惠券列表")
@ApiImplicitParam(name = "useStatus", value = "优惠券筛选类型:0->未使用;1->已使用;2->已过期",
        allowableValues = "0,1,2", paramType = "query", dataType = "integer")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public Object list(@RequestParam(value = "useStatus", required = false) Integer useStatus) {
    List<SmsCouponHistory> couponHistoryList = memberCouponService.list(useStatus);
    return new CommonResult().success(couponHistoryList);
}
 
Example #8
Source File: SmsCouponHistoryController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据优惠券id,使用状态,订单编号分页获取领取记录")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<SmsCouponHistory>> list(@RequestParam(value = "couponId", required = false) Long couponId,
                                                       @RequestParam(value = "useStatus", required = false) Integer useStatus,
                                                       @RequestParam(value = "orderSn", required = false) String orderSn,
                                                       @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                       @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<SmsCouponHistory> historyList = historyService.list(couponId, useStatus, orderSn, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(historyList));
}
 
Example #9
Source File: UmsMemberCouponController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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<SmsCouponHistory>> list(@RequestParam(value = "useStatus", required = false) Integer useStatus) {
    List<SmsCouponHistory> couponHistoryList = memberCouponService.list(useStatus);
    return CommonResult.success(couponHistoryList);
}
 
Example #10
Source File: SmsCouponHistoryController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据优惠券id,使用状态,订单编号分页获取领取记录")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<SmsCouponHistory>> list(@RequestParam(value = "couponId", required = false) Long couponId,
                                                       @RequestParam(value = "useStatus", required = false) Integer useStatus,
                                                       @RequestParam(value = "orderSn", required = false) String orderSn,
                                                       @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                       @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<SmsCouponHistory> historyList = historyService.list(couponId, useStatus, orderSn, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(historyList));
}
 
Example #11
Source File: UmsMemberCouponController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取用户优惠券历史列表")
@ApiImplicitParam(name = "useStatus", value = "优惠券筛选类型:0->未使用;1->已使用;2->已过期",
        allowableValues = "0,1,2", paramType = "query", dataType = "integer")
@RequestMapping(value = "/listHistory", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsCouponHistory>> listHistory(@RequestParam(value = "useStatus", required = false) Integer useStatus) {
    List<SmsCouponHistory> couponHistoryList = memberCouponService.listHistory(useStatus);
    return CommonResult.success(couponHistoryList);
}
 
Example #12
Source File: SmsCouponHistoryController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("根据优惠券id,使用状态,订单编号分页获取领取记录")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<SmsCouponHistory>> list(@RequestParam(value = "couponId", required = false) Long couponId,
                                                       @RequestParam(value = "useStatus", required = false) Integer useStatus,
                                                       @RequestParam(value = "orderSn", required = false) String orderSn,
                                                       @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                       @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum) {
    List<SmsCouponHistory> historyList = historyService.list(couponId, useStatus, orderSn, pageSize, pageNum);
    return CommonResult.success(CommonPage.restPage(historyList));
}
 
Example #13
Source File: UmsMemberCouponService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取优惠券列表
 * @param useStatus 优惠券的使用状态
 */
List<SmsCouponHistory> list(Integer useStatus);
 
Example #14
Source File: SmsCouponHistoryService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询优惠券领取记录
 * @param couponId 优惠券id
 * @param useStatus 使用状态
 * @param orderSn 使用订单号码
 */
List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum);
 
Example #15
Source File: SmsCouponHistoryService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询优惠券领取记录
 * @param couponId 优惠券id
 * @param useStatus 使用状态
 * @param orderSn 使用订单号码
 */
List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum);
 
Example #16
Source File: UmsMemberCouponService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取优惠券历史列表
 */
List<SmsCouponHistory> listHistory(Integer useStatus);
 
Example #17
Source File: SmsCouponHistoryService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 分页查询优惠券领取记录
 * @param couponId 优惠券id
 * @param useStatus 使用状态
 * @param orderSn 使用订单号码
 */
List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum);
 
Example #18
Source File: UmsMemberCouponService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取优惠券列表
 * @param useStatus 优惠券的使用状态
 */
List<SmsCouponHistory> list(Integer useStatus);
 
Example #19
Source File: UmsMemberCouponService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取优惠券列表
 * @param useStatus 优惠券的使用状态
 */
List<SmsCouponHistory> list(Integer useStatus);
 
Example #20
Source File: SmsCouponHistoryService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 分页查询优惠券领取记录
 * @param couponId 优惠券id
 * @param useStatus 使用状态
 * @param orderSn 使用订单号码
 */
List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum);
 
Example #21
Source File: SmsCouponHistoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKey(SmsCouponHistory record); 
Example #22
Source File: SmsCouponHistoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int insert(SmsCouponHistory record); 
Example #23
Source File: SmsCouponHistoryMapper.java    From mall with Apache License 2.0 votes vote down vote up
int updateByPrimaryKeySelective(SmsCouponHistory record); 
Example #24
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int insert(SmsCouponHistory record); 
Example #25
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int insertSelective(SmsCouponHistory record); 
Example #26
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
List<SmsCouponHistory> selectByExample(SmsCouponHistoryExample example); 
Example #27
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
SmsCouponHistory selectByPrimaryKey(Long id); 
Example #28
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExampleSelective(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); 
Example #29
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByExample(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); 
Example #30
Source File: SmsCouponHistoryMapper.java    From macrozheng-mall with MIT License votes vote down vote up
int updateByPrimaryKeySelective(SmsCouponHistory record);