<![CDATA[ function matchwo(a,b) { if (a < b && a < 0) then { return 1; } else { return 0; } } ]]>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!-- 校验中文名和英文名是否存在 返回长度为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
>
|