| | |
| | | select |
| | | b.id as id, |
| | | b.name as name, |
| | | b.target as target |
| | | b.target as target, |
| | | a.state as state, |
| | | a.CREATED_TIME as createdTime |
| | | from ai_member_answer a |
| | | left join ai_product b on a.product_id = b.id and b.state = 1 |
| | | <where> |
| | |
| | | group by a.product_id |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getAnswerPage" resultType="cc.mrbird.febs.ai.res.member.ApiMemberAnswerPageVo"> |
| | | select |
| | | a.id as id, |
| | | b.name as name, |
| | | b.target as target |
| | | from ai_member_answer a |
| | | left join ai_product b on a.product_id = b.id and b.state = 1 |
| | | where a.member_id = #{record.memberUuid} |
| | | and a.state = 1 |
| | | group by a.product_id |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | </mapper> |