首页 > 数据库 > Oracle > Oracle 字符串函数
<select id="queryPage" parameterType="java.util.Map" resultMap="DoorPo">
SELECT
t.controllersn as CONTROLLERSN,
<include refid="join_columns"/>
FROM TB_DOOR_CONTROLLER t
LEFT JOIN TB_DOOR_DOOR d ON t.CONTROLLERSN=d.controllerid
<where>
instr(d.DOORENABLED, '1') > 0
<if test="@Ognl@isNotEmpty(controllerid)">
and t.CONTROLLERSN=#{controllerid}
</if>
<if test="@Ognl@isNotEmpty(zoneid)">
and t.zoneid=#{zoneid}
</if>
</where>
</select>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69949806/viewspace-2661576/ ,如需转载,请注明出处,否则将追究法律责任。