| @@ -91,7 +91,7 @@ public class CouponInjectController extends BaseController { | |||||
| CouponInject couponInject = couponInjectService.getById(id); | CouponInject couponInject = couponInjectService.getById(id); | ||||
| if (couponInject != null) { | if (couponInject != null) { | ||||
| List<Long> tagids = JSON.parseArray(couponInject.getTags(), Long.class); | List<Long> tagids = JSON.parseArray(couponInject.getTags(), Long.class); | ||||
| if (tagids.size() > 0) { | |||||
| if (!tagids.isEmpty()) { | |||||
| couponInject.setWxChooseTagVo(wxCUserTagsService.findChooseTag(getTenantId(), tagids)); | couponInject.setWxChooseTagVo(wxCUserTagsService.findChooseTag(getTenantId(), tagids)); | ||||
| } | } | ||||
| } | } | ||||
| @@ -143,7 +143,7 @@ public class WxCUserBasicInfoController extends BaseController { | |||||
| WxCUserTags uTag = wxCUserTagsService.getById(info.getTagId()); | WxCUserTags uTag = wxCUserTagsService.getById(info.getTagId()); | ||||
| if (StringUtils.isNotBlank(uTag.getTags())) { | if (StringUtils.isNotBlank(uTag.getTags())) { | ||||
| List<Long> ids = JSONObject.parseArray(uTag.getTags(), Long.class); | List<Long> ids = JSONObject.parseArray(uTag.getTags(), Long.class); | ||||
| if (ids.size() > 0) { | |||||
| if (!ids.isEmpty()) { | |||||
| WxTags wxTags = new WxTags(); | WxTags wxTags = new WxTags(); | ||||
| wxTags.setIds(ids); | wxTags.setIds(ids); | ||||
| PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, 1, 5000); | PageInfo<WxTags> page = wxTagsService.listAsPage(wxTags, 1, 5000); | ||||
| @@ -62,10 +62,7 @@ public class WxCampaignServiceImpl implements WxCampaignService { | |||||
| } | } | ||||
| record = wxCampaignMapper.selectByPrimaryKey(record); | record = wxCampaignMapper.selectByPrimaryKey(record); | ||||
| if (record.getStatus() == 0) { | if (record.getStatus() == 0) { | ||||
| List<String> ids= JSONArray.parseArray(record.getCouponIds(),String.class); | |||||
| if (ids.size() > 0) { | |||||
| addOrUpdateBatch(ids, record); | |||||
| } | |||||
| addOrUpdateBatch(JSONArray.parseArray(record.getCouponIds(),String.class), record); | |||||
| } else { | } else { | ||||
| delBatch(record); | delBatch(record); | ||||
| } | } | ||||