Commit 499b730d by 段启岩

更新问题回答量

parent 98f0fad4
......@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.io.Serializable;
import java.util.List;
/**
* @author meteor
......@@ -195,7 +196,7 @@ public class UserStatisticsListener implements DataItemChangeListener {
// 更新问题回答量
QueryWrapper<QuestionReply> questionReplyQueryWrapper = new QueryWrapper<>();
questionReplyQueryWrapper.eq("user_id", operatorId);
questionReplyQueryWrapper.eq("status", 0);
questionReplyQueryWrapper.in("status", List.of(0, 1));
updateUserStatisticValue(operatorId, "question_reply_num", questionReplyService.count(questionReplyQueryWrapper));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment