Commit 4640e7ae by 阳浪

消息优化

parent f1ba8767
......@@ -162,8 +162,8 @@ public class EventTrackServiceImpl extends ServiceImpl<EventTrackMapper, EventTr
if(Objects.equals(types.get(0),8)){
String year = DateUtil.toShortYear(new Date());
DayNumVo dayNumVo = new DayNumVo();
dayNumVo.setNum(this.baseMapper.getResearchTotal(year));
dayNumVo.setPreNum(this.baseMapper.getResearchJoinTotal(year));
dayNumVo.setPreNum(this.baseMapper.getResearchTotal(year));
dayNumVo.setNum(this.baseMapper.getResearchJoinTotal(year));
return dayNumVo;
}
return this.baseMapper.getNumByType(date,dateString,types);
......
......@@ -184,7 +184,7 @@
</select>
<select id="getResearchJoinTotal" resultType="java.lang.Integer">
select
count(1)
count(distinct research_id)
from
cloud_research.tr_research_answer
where
......
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