src/main/resources/mapper/modules/AiMemberAnswerMapper.xml
@@ -15,6 +15,7 @@ left join ai_product b on a.product_id = b.id and b.state = 1 <where> and a.member_id = #{record.memberUuid} and b.state = 1 <if test="record != null"> <if test="record.state != null"> and a.state = #{record.state} @@ -38,6 +39,7 @@ 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 b.state = 1 and a.product_id = #{record.productId} and a.company_id = #{record.companyId} order by a.CREATED_TIME desc