仓库信息sql$修改为#

This commit is contained in:
qiankunpingtai
2019-05-14 16:22:26 +08:00
parent 7a34d84e32
commit ebf5792042
13 changed files with 177 additions and 127 deletions

View File

@@ -9,14 +9,16 @@
select * select *
FROM jsh_depot FROM jsh_depot
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type=${type} and type=#{type}
</if> </if>
<if test="remark != null"> <if test="remark != null and remark != ''">
and remark like '%${remark}%' <bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
order by sort asc order by sort asc
@@ -29,14 +31,16 @@
COUNT(id) COUNT(id)
FROM jsh_depot FROM jsh_depot
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type=${type} and type=#{type}
</if> </if>
<if test="remark != null"> <if test="remark != null and remark != ''">
and remark like '%${remark}%' <bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -5,11 +5,12 @@
select * select *
FROM jsh_functions FROM jsh_functions
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
order by sort asc order by sort asc
@@ -22,11 +23,12 @@
COUNT(id) COUNT(id)
FROM jsh_functions FROM jsh_functions
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -5,14 +5,16 @@
select * select *
FROM jsh_inoutitem FROM jsh_inoutitem
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
<if test="remark != null"> <if test="remark != null and remark != ''">
and remark like '%${remark}%' <bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -24,14 +26,16 @@
COUNT(id) COUNT(id)
FROM jsh_inoutitem FROM jsh_inoutitem
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
<if test="remark != null"> <if test="remark != null and remark != ''">
and remark like '%${remark}%' <bind name="remark" value="'%' + _parameter.remark + '%'"/>
and remark like #{remark}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -10,26 +10,29 @@
FROM jsh_log l FROM jsh_log l
left join jsh_user u on l.userID = u.id and ifnull(u.status,'0') not in('1','2') left join jsh_user u on l.userID = u.id and ifnull(u.status,'0') not in('1','2')
where 1=1 where 1=1
<if test="operation != null"> <if test="operation != null and operation != ''">
and l.operation like '%${operation}%' <bind name="operation" value="'%' + _parameter.operation + '%'"/>
and l.operation like #{operation}
</if> </if>
<if test="usernameID != null"> <if test="usernameID != null">
and l.userID=${usernameID} and l.userID=#{usernameID}
</if> </if>
<if test="clientIp != null"> <if test="clientIp != null and clientIp != ''">
and l.clientIp like '%${clientIp}%' <bind name="clientIp" value="'%' + _parameter.clientIp + '%'"/>
and l.clientIp like #{clientIp}
</if> </if>
<if test="status != null"> <if test="status != null">
and l.status=${status} and l.status=#{status}
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">
and l.createtime &gt;= '%${beginTime}%' and l.createtime &gt;= #{beginTime}
</if> </if>
<if test="endTime != null"> <if test="endTime != null">
and l.createtime &lt;= '%${endTime}%' and l.createtime &lt;= #{endTime}
</if> </if>
<if test="contentdetails != null"> <if test="contentdetails != null and contentdetails != ''">
and l.contentdetails like '%${contentdetails}%' <bind name="contentdetails" value="'%' + _parameter.contentdetails + '%'"/>
and l.contentdetails like #{contentdetails}
</if> </if>
order by l.createtime desc order by l.createtime desc
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -41,26 +44,29 @@
COUNT(id) COUNT(id)
FROM jsh_log FROM jsh_log
WHERE 1=1 WHERE 1=1
<if test="operation != null"> <if test="operation != null and operation != ''">
and operation like '%${operation}%' <bind name="operation" value="'%' + _parameter.operation + '%'"/>
and operation like #{operation}
</if> </if>
<if test="usernameID != null"> <if test="usernameID != null">
and userID=${usernameID} and userID=#{usernameID}
</if> </if>
<if test="clientIp != null"> <if test="clientIp != null and clientIp != ''">
and clientIp like '%${clientIp}%' <bind name="clientIp" value="'%' + _parameter.clientIp + '%'"/>
and clientIp like #{clientIp}
</if> </if>
<if test="status != null"> <if test="status != null">
and status = ${status} and status = #{status}
</if> </if>
<if test="beginTime != null"><![CDATA[ <if test="beginTime != null"><![CDATA[
and createtime >= '${beginTime}' and createtime >= #{beginTime}
]]></if> ]]></if>
<if test="endTime != null"><![CDATA[ <if test="endTime != null"><![CDATA[
and createtime <= '${endTime}' and createtime <= #{endTime}
]]></if> ]]></if>
<if test="contentdetails != null"> <if test="contentdetails != null and contentdetails != ''">
and contentdetails like '%${contentdetails}%' <bind name="contentdetails" value="'%' + _parameter.contentdetails + '%'"/>
and contentdetails like #{contentdetails}
</if> </if>
</select> </select>
</mapper> </mapper>

View File

@@ -6,11 +6,12 @@
FROM jsh_materialcategory FROM jsh_materialcategory
where 1=1 where 1=1
and ifnull(status,'0') !='2' and ifnull(status,'0') !='2'
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="parentId != null"> <if test="parentId != null">
and parentId = ${parentId} and parentId = #{parentId}
</if> </if>
and Id !=1 and Id !=1
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -23,11 +24,12 @@
FROM jsh_materialcategory FROM jsh_materialcategory
WHERE 1=1 WHERE 1=1
and ifnull(status,'0') !='2' and ifnull(status,'0') !='2'
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="parentId != null"> <if test="parentId != null">
and parentId = ${parentId} and parentId = #{parentId}
</if> </if>
and Id !=1 and Id !=1
</select> </select>

View File

@@ -16,14 +16,16 @@
left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1' left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1'
left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2' left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2'
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and m.name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and m.name like #{name}
</if> </if>
<if test="model != null"> <if test="model != null and model != ''">
and m.model like '%${model}%' <bind name="model" value="'%' + _parameter.model + '%'"/>
and m.model like #{model}
</if> </if>
<if test="categoryId != 1"> <if test="categoryId != 1">
and m.CategoryId in (${categoryIds}) and m.CategoryId in (#{categoryIds})
</if> </if>
and ifnull(m.delete_Flag,'0') !='1' and ifnull(m.delete_Flag,'0') !='1'
order by m.id asc order by m.id asc
@@ -39,14 +41,16 @@
left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1' left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1'
left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2' left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2'
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and m.name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and m.name like #{name}
</if> </if>
<if test="model != null"> <if test="model != null and model != ''">
and m.model like '%${model}%' <bind name="model" value="'%' + _parameter.model + '%'"/>
and m.model like #{model}
</if> </if>
<if test="categoryId != 1"> <if test="categoryId != 1">
and m.CategoryId in (${categoryIds}) and m.CategoryId in (#{categoryIds})
</if> </if>
and ifnull(m.delete_Flag,'0') !='1' and ifnull(m.delete_Flag,'0') !='1'
</select> </select>
@@ -54,14 +58,14 @@
<select id="findUnitName" resultType="java.lang.String"> <select id="findUnitName" resultType="java.lang.String">
select u.UName from jsh_unit u select u.UName from jsh_unit u
left join jsh_material m on m.UnitId=u.id and ifnull(m.delete_Flag,'0') !='1' left join jsh_material m on m.UnitId=u.id and ifnull(m.delete_Flag,'0') !='1'
where m.id = ${mId} where m.id = #{mId}
and ifnull(u.delete_Flag,'0') !='1' and ifnull(u.delete_Flag,'0') !='1'
</select> </select>
<select id="findById" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultAndUnitMap"> <select id="findById" parameterType="com.jsh.erp.datasource.entities.MaterialExample" resultMap="ResultAndUnitMap">
select m.*,u.UName from jsh_material m select m.*,u.UName from jsh_material m
left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1' left join jsh_unit u on m.UnitId=u.id and ifnull(u.delete_Flag,'0') !='1'
where m.id = ${id} where m.id = #{id}
and ifnull(m.delete_Flag,'0') !='1' and ifnull(m.delete_Flag,'0') !='1'
</select> </select>
@@ -96,14 +100,16 @@
left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1' left JOIN jsh_unit u on m.UnitId = u.id and ifnull(u.delete_Flag,'0') !='1'
left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2' left JOIN jsh_materialcategory mc on m.CategoryId = mc.id and ifnull(mc.status,'0') !='2'
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and m.name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and m.name like #{name}
</if> </if>
<if test="model != null"> <if test="model != null and model != ''">
and m.model like '%${model}%' <bind name="model" value="'%' + _parameter.model + '%'"/>
and m.model like #{model}
</if> </if>
<if test="categoryId != 1"> <if test="categoryId != 1">
and m.CategoryId in (${categoryIds}) and m.CategoryId in (#{categoryIds})
</if> </if>
and ifnull(m.delete_Flag,'0') !='1' and ifnull(m.delete_Flag,'0') !='1'
order by m.id asc order by m.id asc

View File

@@ -5,8 +5,9 @@
select * select *
FROM jsh_materialproperty FROM jsh_materialproperty
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and nativeName like '%${name}%' <bind name="nativeName" value="'%' + _parameter.name + '%'"/>
and nativeName like #{nativeName}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -18,8 +19,9 @@
COUNT(id) COUNT(id)
FROM jsh_materialproperty FROM jsh_materialproperty
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and nativeName like '%${name}%' <bind name="nativeName" value="'%' + _parameter.name + '%'"/>
and nativeName like #{nativeName}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -5,11 +5,12 @@
select * select *
FROM jsh_person FROM jsh_person
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -21,11 +22,12 @@
COUNT(id) COUNT(id)
FROM jsh_person FROM jsh_person
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -6,8 +6,9 @@
FROM jsh_role FROM jsh_role
WHERE 1=1 WHERE 1=1
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
limit #{offset},#{rows} limit #{offset},#{rows}
@@ -19,8 +20,9 @@
FROM jsh_role FROM jsh_role
WHERE 1=1 WHERE 1=1
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="name != null"> <if test="name != null and name != ''">
and name like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and name like #{name}
</if> </if>
</select> </select>
<update id="batchDeleteRoleByIds"> <update id="batchDeleteRoleByIds">

View File

@@ -5,20 +5,24 @@
select * select *
FROM jsh_supplier FROM jsh_supplier
where 1=1 where 1=1
<if test="supplier != null"> <if test="supplier != null and supplier != ''">
and supplier like '%${supplier}%' <bind name="supplier" value="'%' + _parameter.supplier + '%'"/>
and supplier like #{supplier}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
<if test="phonenum != null"> <if test="phonenum != null and phonenum != ''">
and phonenum like '%${phonenum}%' <bind name="phonenum" value="'%' + _parameter.phonenum + '%'"/>
and phonenum like #{phonenum}
</if> </if>
<if test="telephone != null"> <if test="telephone != null and telephone != ''">
and telephone like '%${telephone}%' <bind name="telephone" value="'%' + _parameter.telephone + '%'"/>
and telephone like #{telephone}
</if> </if>
<if test="description != null"> <if test="description != null and description != ''">
and description like '%${description}%' <bind name="description" value="'%' + _parameter.description + '%'"/>
and description like #{description}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -30,20 +34,24 @@
COUNT(id) COUNT(id)
FROM jsh_supplier FROM jsh_supplier
WHERE 1=1 WHERE 1=1
<if test="supplier != null"> <if test="supplier != null and supplier != ''">
and supplier like '%${supplier}%' <bind name="supplier" value="'%' + _parameter.supplier + '%'"/>
and supplier like #{supplier}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
<if test="phonenum != null"> <if test="phonenum != null and phonenum != ''">
and phonenum like '%${phonenum}%' <bind name="phonenum" value="'%' + _parameter.phonenum + '%'"/>
and phonenum like #{phonenum}
</if> </if>
<if test="telephone != null"> <if test="telephone != null and telephone != ''">
and telephone like '%${telephone}%' <bind name="telephone" value="'%' + _parameter.telephone + '%'"/>
and telephone like #{telephone}
</if> </if>
<if test="description != null"> <if test="description != null and description != ''">
and description like '%${description}%' <bind name="description" value="'%' + _parameter.description + '%'"/>
and description like #{description}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>
@@ -52,20 +60,24 @@
select * select *
FROM jsh_supplier FROM jsh_supplier
where 1=1 where 1=1
<if test="supplier != null"> <if test="supplier != null and supplier != ''">
and supplier like '%${supplier}%' <bind name="supplier" value="'%' + _parameter.supplier + '%'"/>
and supplier like #{supplier}
</if> </if>
<if test="type != null"> <if test="type != null">
and type='${type}' and type=#{type}
</if> </if>
<if test="phonenum != null"> <if test="phonenum != null and phonenum != ''">
and phonenum like '%${phonenum}%' <bind name="phonenum" value="'%' + _parameter.phonenum + '%'"/>
and phonenum like #{phonenum}
</if> </if>
<if test="telephone != null"> <if test="telephone != null and telephone != ''">
and telephone like '%${telephone}%' <bind name="telephone" value="'%' + _parameter.telephone + '%'"/>
and telephone like #{telephone}
</if> </if>
<if test="description != null"> <if test="description != null and description != ''">
and description like '%${description}%' <bind name="description" value="'%' + _parameter.description + '%'"/>
and description like #{description}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -5,8 +5,9 @@
select * select *
FROM jsh_systemconfig FROM jsh_systemconfig
where 1=1 where 1=1
<if test="companyName != null"> <if test="companyName != null and companyName != ''">
and company_name like '%${companyName}%' <bind name="companyName" value="'%' + _parameter.companyName + '%'"/>
and company_name like #{companyName}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -18,8 +19,9 @@
COUNT(id) COUNT(id)
FROM jsh_systemconfig FROM jsh_systemconfig
WHERE 1=1 WHERE 1=1
<if test="companyName != null"> <if test="companyName != null and companyName != ''">
and company_name like '%${companyName}%' <bind name="companyName" value="'%' + _parameter.companyName + '%'"/>
and company_name like #{companyName}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -5,8 +5,9 @@
select * select *
FROM jsh_unit FROM jsh_unit
where 1=1 where 1=1
<if test="name != null"> <if test="name != null and name != ''">
and UName like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and UName like #{name}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
@@ -18,8 +19,9 @@
COUNT(id) COUNT(id)
FROM jsh_unit FROM jsh_unit
WHERE 1=1 WHERE 1=1
<if test="name != null"> <if test="name != null and name != ''">
and UName like '%${name}%' <bind name="name" value="'%' + _parameter.name + '%'"/>
and UName like #{name}
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>

View File

@@ -14,11 +14,13 @@
FROM jsh_user FROM jsh_user
where 1=1 where 1=1
and ifnull(status,'0') not in('1','2') and ifnull(status,'0') not in('1','2')
<if test="userName != null"> <if test="userName != null and userName != ''">
and username like '%${userName}%' <bind name="userName" value="'%' + _parameter.userName + '%'"/>
and username like #{userName}
</if> </if>
<if test="loginName != null"> <if test="loginName != null and loginName != ''">
and loginame like '%${loginName}%' <bind name="loginName" value="'%' + _parameter.loginName + '%'"/>
and loginame like #{loginName}
</if> </if>
<if test="offset != null and rows != null"> <if test="offset != null and rows != null">
limit #{offset},#{rows} limit #{offset},#{rows}
@@ -30,11 +32,13 @@
FROM jsh_user FROM jsh_user
WHERE 1=1 WHERE 1=1
and ifnull(status,'0') not in('1','2') and ifnull(status,'0') not in('1','2')
<if test="userName != null"> <if test="userName != null and userName != ''">
and username like '%${userName}%' <bind name="userName" value="'%' + _parameter.userName + '%'"/>
and username like #{userName}
</if> </if>
<if test="loginName != null"> <if test="loginName != null and loginName != ''">
and loginame like '%${loginName}%' <bind name="loginName" value="'%' + _parameter.loginName + '%'"/>
and loginame like #{loginName}
</if> </if>
</select> </select>
<select id="getUserList" parameterType="java.util.Map" resultMap="ResultMapEx"> <select id="getUserList" parameterType="java.util.Map" resultMap="ResultMapEx">
@@ -206,7 +210,7 @@
</choose> </choose>
order by user.id desc order by user.id desc
</select> </select>
<select id="addRegisterUserNotInclueUser" resultType="String"> <select id="addRegisterUserNotInclueUser" resultType="java.lang.String">
select registerUserTemplate(#{userId},#{tenantId},#{roleId}) from dual; select registerUserTemplate(#{userId},#{tenantId},#{roleId}) from dual;
</select> </select>