<![CDATA[ function matchwo(a,b) { if (a < b && a < 0) then { return 1; } else { return 0; } } ]]>ip
<!-- 校驗中文名和英文名是否存在 返回長度爲2的list --> <select id="getMenuCnameAndEnameCount" parameterType="com.ebon.platform.menu.vo.SysMenu" resultType="Integer"> SELECT COUNT(ID) FROM SYS_MENU M WHERE M.CNAME = #{cname} AND M.PARENT_ID = #{parentId} AND M.DELETE_FLAG = 0 <if test="null!=id and id!=''"> AND M.ID <![CDATA[<]]> <![CDATA[>]]> #{id} </if> UNION ALL SELECT COUNT(ID) FROM SYS_MENU M WHERE M.ENAME = #{ename} AND M.PARENT_ID = #{parentId} AND M.DELETE_FLAG = 0 <if test="null!=id and id!=''"> AND M.ID <![CDATA[<]]> <![CDATA[>]]> #{id} </if> </select>