You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
697 B
23 lines
697 B
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ccsens.mt.persist.dao.GroupDao">
|
|
|
|
|
|
<select id="getResponder" resultType="com.ccsens.mt.bean.vo.TopicVo$GroupInfo">
|
|
SELECT
|
|
g.id as groupId,
|
|
g.NAME as groupName
|
|
FROM
|
|
t_mt_responder r,
|
|
t_mt_group g
|
|
WHERE
|
|
r.group_id = g.id
|
|
AND g.project_id = 1
|
|
AND r.topic_id = 1
|
|
AND r.rec_status = 0
|
|
AND g.rec_status = 0
|
|
ORDER BY
|
|
r.created_at DESC
|
|
LIMIT 1
|
|
</select>
|
|
</mapper>
|