当前使用版本(必填,否则不予处理)

3.4.0

详细描述

  1. ${ew.customSqlSegment} 没有别名 t,多表关联时,如果字段重名,就会报错;

  2. 我想在自定义SQL中,即使用【${ew.customSqlSegment}】,又使用 map 扩展的字段,缺少可扩展的SQL,参照这段扩展代码:

<!-- wapper中的条件 -->
<sql id="sqlWhere">
    <where>
        <include refid="sqlWhereExtendable"/>
        <if test="id !=null ">
             and t.id = #{id}
        </if>
        <if test="creatorId !=null ">
             and t.creator_id = #{creatorId}
        </if>
    </where>
</sql>

<!-- 可扩展的条件 -->
<sql id="sqlWhereExtendable">
</sql>

Comment From: miemieYaho

不支持

Comment From: gyf6067

😭😭😭