Browse Source

投票

master
zhizhi wu 5 years ago
parent
commit
a81be73270
  1. 4
      mt/src/main/resources/application.yml
  2. 2
      mt/src/main/resources/mapper_dao/TopicDao.xml
  3. 4
      mt/src/main/resources/mapper_dao/VoteDao.xml

4
mt/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: test
include: common, util-test
active: dev
include: common, util-dev

2
mt/src/main/resources/mapper_dao/TopicDao.xml

@ -70,7 +70,7 @@
GROUP BY
p.id
ORDER BY
p.score
p.description
LIMIT ${nums}
</select>
<select id="queryOption" resultType="java.lang.String">

4
mt/src/main/resources/mapper_dao/VoteDao.xml

@ -7,7 +7,7 @@
SELECT
g.id as groupId,
g.name as groupName,
count(*) as voteNums
count(v.id) as voteNums
FROM
t_mt_group g
LEFT JOIN (select * from t_mt_vote where rec_status = 0) v ON g.id = v.group_id
@ -16,7 +16,7 @@
AND g.type = 1
AND g.rec_status = 0
GROUP BY g.id, g.name
order by count(*)
order by count(v.id) desc
</select>
<select id="countUserVoteNums" resultType="java.lang.Long">
SELECT

Loading…
Cancel
Save