Oracle 字串函式

mcxiaoracle發表於2019-10-27

<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') &gt; 0

<if test="@Ognl@isNotEmpty(controllerid)">

                  and t.CONTROLLERSN=#{controllerid}

</if>

<if test="@Ognl@isNotEmpty(zoneid)">

                  and t.zoneid=#{zoneid}

</if>

</where>


</select>


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69949806/viewspace-2661576/,如需轉載,請註明出處,否則將追究法律責任。

相關文章