Browse Source

[砍价][修改]:查找couponChannel信息

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
f962189c31
3 changed files with 24 additions and 0 deletions
  1. +12
    -0
      mallinkCApi/src/main/java/com/iformall/controller/WxCouponChannelController.java
  2. +7
    -0
      mallinkService/src/main/java/com/iformall/service/WxCouponChannelService.java
  3. +5
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java

+ 12
- 0
mallinkCApi/src/main/java/com/iformall/controller/WxCouponChannelController.java View File

@@ -38,4 +38,16 @@ public class WxCouponChannelController extends BaseController {
return new ResultData(wxCouponChannelService.listPageCVo(wxCouponChannel, pageNum, pageSize));
}

@ApiOperation("分页列表接口")
@GetMapping("getCouponChannel")
public ResultData getCouponChannel(@ModelAttribute WxCouponChannel wxCouponChannel) {
if (null == wxCouponChannel) wxCouponChannel = new WxCouponChannel();
wxCouponChannel.setTenantId(getTenantId());
wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
wxCouponChannel.setIsCRequest(0);//标记为C端调用
return new ResultData(wxCouponChannelService.findCouponChannelVo(wxCouponChannel));
}



}

+ 7
- 0
mallinkService/src/main/java/com/iformall/service/WxCouponChannelService.java View File

@@ -31,6 +31,13 @@ public interface WxCouponChannelService {
*/
PageInfo<WxCouponChannelVo> listPageCVo(WxCouponChannel record, Integer pageIndex, Integer pageSize);

/**
* 根据实体查询couponChannelVo列表
* @param record
* @return
*/
List<WxCouponChannelVo> findCouponChannelVo(WxCouponChannel record);

WxCouponCVo findDetailVo(Long id);

/**


+ 5
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java View File

@@ -196,6 +196,11 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService {
return new PageInfo<>(wxCouponChannelMapper.findVoList(record));
}

@Override
public List<WxCouponChannelVo> findCouponChannelVo(WxCouponChannel record) {
return wxCouponChannelMapper.findVoList(record);
}

@Override
public WxCouponCVo findDetailVo(Long id) {
return wxCouponChannelMapper.findVoDetail(id);


Loading…
Cancel
Save