Java源码示例:com.macro.mall.dto.SmsFlashPromotionSessionDetail

示例1
@ApiOperation("获取全部可选场次及其数量")
@RequestMapping(value = "/selectList", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsFlashPromotionSessionDetail>> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId);
    return CommonResult.success(promotionSessionList);
}
 
示例2
@Override
public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> result = new ArrayList<>();
    SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample();
    example.createCriteria().andStatusEqualTo(1);
    List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example);
    for (SmsFlashPromotionSession promotionSession : list) {
        SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail();
        BeanUtils.copyProperties(promotionSession, detail);
        long count = relationService.getCount(flashPromotionId, promotionSession.getId());
        detail.setProductCount(count);
        result.add(detail);
    }
    return result;
}
 
示例3
@ApiOperation("获取全部可选场次及其数量")
@RequestMapping(value = "/selectList", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsFlashPromotionSessionDetail>> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId);
    return CommonResult.success(promotionSessionList);
}
 
示例4
@Override
public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> result = new ArrayList<>();
    SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample();
    example.createCriteria().andStatusEqualTo(1);
    List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example);
    for (SmsFlashPromotionSession promotionSession : list) {
        SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail();
        BeanUtils.copyProperties(promotionSession, detail);
        int count = relationService.getCount(flashPromotionId, promotionSession.getId());
        detail.setProductCount(count);
        result.add(detail);
    }
    return result;
}
 
示例5
@ApiOperation("获取全部可选场次及其数量")
@RequestMapping(value = "/selectList", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsFlashPromotionSessionDetail>> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId);
    return CommonResult.success(promotionSessionList);
}
 
示例6
@Override
public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> result = new ArrayList<>();
    SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample();
    example.createCriteria().andStatusEqualTo(1);
    List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example);
    for (SmsFlashPromotionSession promotionSession : list) {
        SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail();
        BeanUtils.copyProperties(promotionSession, detail);
        long count = relationService.getCount(flashPromotionId, promotionSession.getId());
        detail.setProductCount(count);
        result.add(detail);
    }
    return result;
}
 
示例7
@ApiOperation("获取全部可选场次及其数量")
@RequestMapping(value = "/selectList", method = RequestMethod.GET)
@ResponseBody
public Object selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId);
    return new CommonResult().success(promotionSessionList);
}
 
示例8
@Override
public List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> result = new ArrayList<>();
    SmsFlashPromotionSessionExample example = new SmsFlashPromotionSessionExample();
    example.createCriteria().andStatusEqualTo(1);
    List<SmsFlashPromotionSession> list = promotionSessionMapper.selectByExample(example);
    for (SmsFlashPromotionSession promotionSession : list) {
        SmsFlashPromotionSessionDetail detail = new SmsFlashPromotionSessionDetail();
        BeanUtils.copyProperties(promotionSession, detail);
        int count = relationService.getCount(flashPromotionId, promotionSession.getId());
        detail.setProductCount(count);
        result.add(detail);
    }
    return result;
}
 
示例9
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
示例10
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
示例11
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
示例12
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);