diff --git a/mallinkService/src/main/resources/mapper/WxQuestionOneselfLogMapper.xml b/mallinkService/src/main/resources/mapper/WxQuestionOneselfLogMapper.xml index 8d1ebc6dd..92e558bf1 100644 --- a/mallinkService/src/main/resources/mapper/WxQuestionOneselfLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxQuestionOneselfLogMapper.xml @@ -71,10 +71,10 @@ left join wx_question_oneself_topic wqot on wqot.id = wqol.topic_id where wqol.wqou_id = #{wqouId} - and `tenant_id` = #{tenantId} + and wqol.`tenant_id` = #{tenantId} - and `parent_tenant_id` = #{parentTenantId} + and wqol.`parent_tenant_id` = #{parentTenantId} order by wqot.sort