com.macro.mall.dto.SmsFlashPromotionSessionDetail Java Examples

The following examples show how to use com.macro.mall.dto.SmsFlashPromotionSessionDetail. 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: SmsFlashPromotionSessionController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #2
Source File: SmsFlashPromotionSessionServiceImpl.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #3
Source File: SmsFlashPromotionSessionController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #4
Source File: SmsFlashPromotionSessionServiceImpl.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #5
Source File: SmsFlashPromotionSessionController.java    From mall with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #6
Source File: SmsFlashPromotionSessionServiceImpl.java    From mall with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #7
Source File: SmsFlashPromotionSessionController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取全部可选场次及其数量")
@RequestMapping(value = "/selectList", method = RequestMethod.GET)
@ResponseBody
public Object selectList(Long flashPromotionId) {
    List<SmsFlashPromotionSessionDetail> promotionSessionList = flashPromotionSessionService.selectList(flashPromotionId);
    return new CommonResult().success(promotionSessionList);
}
 
Example #8
Source File: SmsFlashPromotionSessionServiceImpl.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@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;
}
 
Example #9
Source File: SmsFlashPromotionSessionService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
Example #10
Source File: SmsFlashPromotionSessionService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
Example #11
Source File: SmsFlashPromotionSessionService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
 
Example #12
Source File: SmsFlashPromotionSessionService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取全部可选场次及其数量
 */
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);