ソースを参照

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

release_toaliyun_real
Stormeye Wu 7年前
コミット
f962189c31
3個のファイルの変更24行の追加0行の削除
  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 ファイルの表示

@@ -38,4 +38,16 @@ public class WxCouponChannelController extends BaseController {
return new ResultData(wxCouponChannelService.listPageCVo(wxCouponChannel, pageNum, pageSize)); 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 ファイルの表示

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


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

WxCouponCVo findDetailVo(Long id); WxCouponCVo findDetailVo(Long id);


/** /**


+ 5
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxCouponChannelServiceImpl.java ファイルの表示

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


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

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


読み込み中…
キャンセル
保存