Kaynağa Gözat

[用Enum跟踪status][修改]:couponChannel状态

release_toaliyun_real
Stormeye.Wu 7 yıl önce
ebeveyn
işleme
b91b8f42f0
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      mallinkCApi/src/main/java/com/simple/controller/WxCouponChannelController.java

+ 2
- 1
mallinkCApi/src/main/java/com/simple/controller/WxCouponChannelController.java Dosyayı Görüntüle

@@ -1,6 +1,7 @@
package com.simple.controller; package com.simple.controller;


import com.simple.domain.vo.WxCouponChannelVo; import com.simple.domain.vo.WxCouponChannelVo;
import com.simple.enums.EnumCouponChannelStatus;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@@ -37,7 +38,7 @@ public class WxCouponChannelController extends BaseController
public ResultData list(@ModelAttribute WxCouponChannel wxCouponChannel,Integer pageNum, Integer pageSize) { public ResultData list(@ModelAttribute WxCouponChannel wxCouponChannel,Integer pageNum, Integer pageSize) {
if (null == wxCouponChannel) wxCouponChannel = new WxCouponChannel(); if (null == wxCouponChannel) wxCouponChannel = new WxCouponChannel();
wxCouponChannel.setTenantId(getTenantId()); wxCouponChannel.setTenantId(getTenantId());
wxCouponChannel.setStatus(0);
wxCouponChannel.setStatus(EnumCouponChannelStatus.STATUS_THROW_IN.getCode());
wxCouponChannel.setSortColumns(WxCouponChannel.Field.CreateDate_DESC); wxCouponChannel.setSortColumns(WxCouponChannel.Field.CreateDate_DESC);
final PageInfo<WxCouponChannelVo> page = wxCouponChannelService.listPageCAPI(wxCouponChannel, pageNum, pageSize); final PageInfo<WxCouponChannelVo> page = wxCouponChannelService.listPageCAPI(wxCouponChannel, pageNum, pageSize);
return new ResultData(page); return new ResultData(page);


Yükleniyor…
İptal
Kaydet