| @@ -39,19 +39,7 @@ public class WxBusinessController extends BaseController { | |||||
| final PageInfo<WxBusiness> page = wxBusinessService.listAsPage(wxBusiness, pageNum, pageSize); | final PageInfo<WxBusiness> page = wxBusinessService.listAsPage(wxBusiness, pageNum, pageSize); | ||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("成长值业态列表接口") | |||||
| @GetMapping("busListForScore") | |||||
| @SystemControllerLog(description = "成长值-业态-列表") | |||||
| public ResultData getList() { | |||||
| logger.debug("[" + getIpAddr() + "] WxBusinessController::getList"); | |||||
| WxBusiness wxBusiness = new WxBusiness(); | |||||
| final List<WxBusiness> busList = wxBusinessService.getList(wxBusiness); | |||||
| // 业态 全部 不返回 | |||||
| List<WxBusiness> busList2 = busList.stream().filter(b -> !b.getId().equals(0L)).collect(Collectors.toList()); | |||||
| return new ResultData(busList2); | |||||
| } | |||||
| @ApiOperation("业态全列表接口") | @ApiOperation("业态全列表接口") | ||||
| @GetMapping("allist") | @GetMapping("allist") | ||||
| @SystemControllerLog(description = "业态-全列表") | @SystemControllerLog(description = "业态-全列表") | ||||
| @@ -40,15 +40,6 @@ public class WxBusinessController extends BaseController { | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("成长值业态列表接口") | |||||
| @GetMapping("busListForScore") | |||||
| public ResultData getList(@ModelAttribute WxBusiness wxBusiness) { | |||||
| if (null == wxBusiness) wxBusiness = new WxBusiness(); | |||||
| final List<WxBusiness> busList = wxBusinessService.getList(wxBusiness); | |||||
| // 业态 全部 不返回 | |||||
| List<WxBusiness> busList2 = busList.stream().filter(b -> !b.getId().equals(0L)).collect(Collectors.toList()); | |||||
| return new ResultData(busList2); | |||||
| } | |||||
| @ApiOperation("业态全列表接口") | @ApiOperation("业态全列表接口") | ||||
| @GetMapping("allist") | @GetMapping("allist") | ||||
| @@ -314,6 +314,7 @@ public class WxCouponServiceImpl implements WxCouponService { | |||||
| //下架所有投放频道 | //下架所有投放频道 | ||||
| wxCouponChannelService | wxCouponChannelService | ||||
| .updateStatusByCouponId(record.getId(), record.getTenantId(), EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode()); | .updateStatusByCouponId(record.getId(), record.getTenantId(), EnumCouponChannelStatus.STATUS_TAKE_OFFF.getCode()); | ||||
| //下架所有场景投放 | |||||
| wxCouponSendService | wxCouponSendService | ||||
| .updateStatusByCouponId(record.getId(), record.getTenantId(), EnumCouponSendStatus.INVALID.getCode()); | .updateStatusByCouponId(record.getId(), record.getTenantId(), EnumCouponSendStatus.INVALID.getCode()); | ||||
| //下架所有已砍价券 | //下架所有已砍价券 | ||||