@@ -67,7 +67,6 @@ public class WxTopicServiceImpl implements WxTopicService {
if(record.getStatus().equals(EnumWxTopicStatus.VAILD.getCode())) {
WxTopic query = new WxTopic();
query.setTenantId(record.getTenantId());
query.setStatus(EnumWxTopicStatus.VAILD.getCode());
if(record.getId() != null){
WxTopic wt = wxTopicMapper.selectByPrimaryKey(record.getId());
query.setBeginTime(wt.getBeginTime());
@@ -76,7 +75,7 @@ public class WxTopicServiceImpl implements WxTopicService {
query.setBeginTime(record.getBeginTime());
query.setEndTime(record.getEndTime());
}
List<WxTopic> topicList = wxTopicMapper.findList(record );
List<WxTopic> topicList = wxTopicMapper.findExist(query );
if (CollectionUtils.isNotEmpty(topicList)) {
return new ResultData(ErrorCode.SYS_REPEAT_SUBMIT_EXCEPTION.getCode(), "["+topicList.get(0).getName()+"]正在活动中,截止至"+ DateUtils.date2String(topicList.get(0).getEndTime(),"yyyy-MM-dd"));
}