Java Code Examples for com.macro.mall.model.SmsCouponHistoryExample#Criteria

The following examples show how to use com.macro.mall.model.SmsCouponHistoryExample#Criteria . 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 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 2
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 3
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 4
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);
}