Browse Source

兼容mssql

mssql
Yen 3 years ago
parent
commit
bc37ef77bc
  1. 2
      src/main/resources/mapper/sys/SysMenuMapper.xml
  2. 2
      src/main/resources/mapper/sys/SysNoticeUsermapper.xml
  3. 2
      src/main/resources/mapper/sys/SysOperationLogMapper.xml
  4. 2
      src/main/resources/mapper/sys/SysUserMapper.xml

2
src/main/resources/mapper/sys/SysMenuMapper.xml

@ -23,7 +23,7 @@
sys_menu.`hide_flag`,
sys_menu.`del_flag` </sql>
<select id="searchDefaultMenuIds" resultType="java.lang.String">
SELECT menu_id FROM `sys_role_menu` srm where srm.`del_flag`=b'0' and srm.role_id in
SELECT menu_id FROM `sys_role_menu` srm where srm.`del_flag`='0' and srm.role_id in
<foreach collection="roleIds" item ="roleId" index="i" open="(" close=")" separator=",">
#{roleId}
</foreach>

2
src/main/resources/mapper/sys/SysNoticeUsermapper.xml

@ -42,7 +42,7 @@
LEFT JOIN `sys_notice` `sys_notice`
ON `sys_notice_user`.`notice_id` = `sys_notice`.`id`
<where>
and `sys_notice_user`.`del_flag` = b'0' and `sys_notice`.`del_flag` = b'0'
and `sys_notice_user`.`del_flag` = '0' and `sys_notice`.`del_flag` = '0'
<if test="query.id != null and query.id != ''"> and `sys_notice_user`.`id` = #{query.id}</if>
<if test="query.noticeId != null and query.noticeId != ''"> and `sys_notice_user`.`notice_id` = #{query.noticeId}</if>
<if test="query.userId != null and query.userId != ''"> and `sys_notice_user`.`user_id` = #{query.userId}</if>

2
src/main/resources/mapper/sys/SysOperationLogMapper.xml

@ -66,7 +66,7 @@
<include refid="sysOperationLogSql"/>
FROM sys_operation_log
<where>
and sys_operation_log.del_flag = b'0'
and sys_operation_log.del_flag = '0'
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="bizType != null and bizType != ''"> and biz_type = #{bizType}</if>
<if test="interType != null and interType != ''"> and inter_type = #{interType}</if>

2
src/main/resources/mapper/sys/SysUserMapper.xml

@ -150,7 +150,7 @@
</foreach>
</if>
<if test="query.roleIds!=null and query.roleIds.size > 0">
and sys_user_role.del_flag = b'0' and sys_user_role.role_id in
and sys_user_role.del_flag = '0' and sys_user_role.role_id in
<foreach collection="query.roleIds" item ="roleId" index="i" open="(" close=")" separator=",">
#{roleId}
</foreach>

Loading…
Cancel
Save