|
|
|
@@ -8,6 +8,7 @@ import com.iformall.common.IdWorker; |
|
|
|
import com.iformall.common.Result; |
|
|
|
import com.iformall.domain.po.WxCouponTopic; |
|
|
|
import com.iformall.domain.po.WxTopic; |
|
|
|
import com.iformall.enums.EnumWxTopicStatus; |
|
|
|
import com.iformall.mapper.WxCouponMapper; |
|
|
|
import com.iformall.mapper.WxCouponTopicMapper; |
|
|
|
import com.iformall.mapper.WxTopicMapper; |
|
|
|
@@ -35,8 +36,26 @@ public class WxTopicServiceImpl implements WxTopicService { |
|
|
|
@Autowired |
|
|
|
private WxCouponMapper wxCouponMapper; |
|
|
|
|
|
|
|
// public void isQueryDownLineStatus(WxTopic record){ |
|
|
|
// record.setQueryDownLineStatus(false); |
|
|
|
// if(record.getStatus().equals(EnumWxTopicStatus.INVAILD.getCode())){ |
|
|
|
// record.setQueryDownLineStatus(true); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// if(StringUtils.isNotBlank(record.getStatusStr())){ |
|
|
|
// String[] array = record.getStatusStr().split(","); |
|
|
|
// for (String status:array) { |
|
|
|
// if(status.equals(EnumWxTopicStatus.INVAILD.getCode().toString())){ |
|
|
|
// record.setQueryDownLineStatus(true); |
|
|
|
// break; |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageInfo<WxTopic> listAsPage(WxTopic record, Integer pageIndex, Integer pageSize) { |
|
|
|
wxTopicMapper.updateStatus(); |
|
|
|
if(StringUtils.isNotBlank(record.getStatusStr())){ |
|
|
|
String[] array = record.getStatusStr().split(","); |
|
|
|
List<Integer> integerList = new ArrayList<>(); |
|
|
|
|