<sql id="sql_id_org">
<if test="idOrg != null and idOrg != ''">
<choose>
<when test="idOrg == @com.common.constant.Constant@ID_ORG_PLATFORM">
and ID_ORG IS NULL
</when>
<otherwise>
and ID_ORG = #{idOrg,jdbcType=VARCHAR}
</otherwise>
</choose>
</if>
</sql>
<include refid="com.label.mapper.LabelMapper.sql_id_org" />
mybatis的mapper.xml引用其他xml的sql和类中的常量
最新推荐文章于 2024-05-24 14:41:02 发布