日期和sql优化
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
WHERE 1=1
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
<if test="name != null">
|
||||
and name like '%${name}%'
|
||||
<bind name="bindName" value="'%'+name+'%'"/>
|
||||
and name like #{bindName}
|
||||
</if>
|
||||
<if test="offset != null and rows != null">
|
||||
limit #{offset},#{rows}
|
||||
@@ -20,7 +21,8 @@
|
||||
WHERE 1=1
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
<if test="name != null">
|
||||
and name like '%${name}%'
|
||||
<bind name="bindName" value="'%'+name+'%'"/>
|
||||
and name like #{bindName}
|
||||
</if>
|
||||
</select>
|
||||
<update id="batchDeleteRoleByIds">
|
||||
|
||||
Reference in New Issue
Block a user