`id`,`tenant_id`,`parent_tenant_id`, `wqou_id`, `topic_id`, `topic_title`, `answer`, `answer_str`,
`create_date`,`update_date`
where 1 = 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `wqou_id` = #{wqouId}
and `topic_id` = #{topicId}
and `create_date` >= #{startDate}
and `create_date` <= #{endDate}
and id in
#{idItem}
order by ${sortColumns}
insert into wx_question_oneself_log
(`id`,`tenant_id`,`parent_tenant_id`, `wqou_id`, `topic_id`, `topic_title`, `answer`, `answer_str`,`create_date`,`update_date`)
values
(#{item.id,jdbcType=BIGINT},
#{item.tenantId,jdbcType=VARCHAR},
#{item.parentTenantId,jdbcType=VARCHAR},
#{item.wqouId,jdbcType=BIGINT},
#{item.topicId,jdbcType=BIGINT},
#{item.topicTitle,jdbcType=VARCHAR},
#{item.answer,jdbcType=VARCHAR},
#{item.answerStr,jdbcType=VARCHAR},
#{item.createDate,jdbcType=TIMESTAMP},
#{item.updateDate,jdbcType=TIMESTAMP})