|
@@ -107,7 +107,7 @@
|
|
|
RC.SSO_CODE "ssoCode",
|
|
RC.SSO_CODE "ssoCode",
|
|
|
RC.COMPANY_ID "id",
|
|
RC.COMPANY_ID "id",
|
|
|
RC.COMPANY_ID "value",
|
|
RC.COMPANY_ID "value",
|
|
|
- RC.COMPANY_NAME "label"
|
|
|
|
|
|
|
+ RC.COMPANY_TYPE || '-' || RC.COMPANY_NAME "label"
|
|
|
from RMS_COMPANY RC
|
|
from RMS_COMPANY RC
|
|
|
where DELETED = 0 )
|
|
where DELETED = 0 )
|
|
|
<where>
|
|
<where>
|
|
@@ -117,7 +117,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
@@ -141,7 +141,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
@@ -165,7 +165,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
@@ -193,7 +193,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
@@ -217,7 +217,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|
|
@@ -241,7 +241,7 @@
|
|
|
<if test="index!=null and index!=''">
|
|
<if test="index!=null and index!=''">
|
|
|
AND REGEXP_LIKE("label", #{index})
|
|
AND REGEXP_LIKE("label", #{index})
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="id!=null and !(index!=null and index!='')">
|
|
|
|
|
|
|
+ <if test="id!=null and id.size>0">
|
|
|
AND "id" in
|
|
AND "id" in
|
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
<foreach collection="id" item="item" open="(" close=")" separator="," >
|
|
|
#{item}
|
|
#{item}
|