| | |
| | | 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, |
| | | a.score as score, |
| | | a.CREATED_TIME as createdTime, |
| | | 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 |
| | | and a.product_id = #{record.productId} |
| | | and a.company_id = #{record.companyId} |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | </mapper> |