【7.0.4】sql更新转义符号

pull/20/head
fengshuonan 2021-05-21 17:27:34 +08:00
parent 0af326480f
commit 7caffa4eb9
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
and suser.status_flag like concat('%',#{sysUserRequest.statusFlag},'%')
</if>
<if test="sysUserRequest.orgId != null and sysUserRequest.orgId != ''">
and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%[',#{sysUserRequest.orgId},']%') or org_id=#{sysUserRequest.orgId})
and suorg.org_id in(select org_id from hr_organization where org_pids like CONCAT('%$[',#{sysUserRequest.orgId},'$]%') or org_id=#{sysUserRequest.orgId}) escape '$'
</if>
and suser.del_flag = 'N'
order by suser.create_time desc