Authored by min.ling

fix

... ... @@ -61,7 +61,7 @@ public class TopicServiceImpl implements ITopicService {
String groupName = req.getGroupName();
Integer startTime = req.getStartTime();
Integer endTime = req.getEndTime();
req.setHasArticleTop(req.getHasArticleTop() == -1 ? null : req.getHasArticleTop());
req.setHasArticleTop((req.getHasArticleTop() != null && req.getHasArticleTop() == -1) ? null : req.getHasArticleTop());
int total = grassTopicDAO.countByCondition(status,isOfficial,topicName,groupName,isHot,startTime,endTime,req.getHasArticleTop());
List<TopicRespBo> pageData = new ArrayList<>();
if(total > 0){
... ...