mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-09 14:09:10 +00:00
【#4127】sql漏洞写法修复
This commit is contained in:
@@ -159,7 +159,13 @@
|
||||
|
||||
<!-- 更新空字符串为null -->
|
||||
<update id="updateNullByEmptyString">
|
||||
UPDATE sys_user SET ${fieldName} = NULL WHERE ${fieldName} = ''
|
||||
UPDATE sys_user
|
||||
<if test="fieldName == 'email'">
|
||||
SET email = NULL WHERE email = ''
|
||||
</if>
|
||||
<if test="fieldName == 'phone'">
|
||||
SET phone = NULL WHERE phone = ''
|
||||
</if>
|
||||
</update>
|
||||
|
||||
<!-- 通过多个部门IDS,查询部门下的用户信息 -->
|
||||
|
Reference in New Issue
Block a user