fix 修复 自定义sql在pg数据库类型异常问题

This commit is contained in:
疯狂的狮子Li 2025-09-04 15:42:03 +08:00
parent b6b1b2de18
commit 341fc144a1
2 changed files with 5 additions and 5 deletions

View File

@ -32,7 +32,7 @@ public interface SysDeptMapper extends BaseMapperPlus<SysDept, SysDeptVo> {
return """
select srd.dept_id from sys_role_dept srd
left join sys_role sr on sr.role_id = srd.role_id
where srd.role_id = %d and sr.status = 0
where srd.role_id = %d and sr.status = '0'
""".formatted(roleId);
}
@ -51,7 +51,7 @@ public interface SysDeptMapper extends BaseMapperPlus<SysDept, SysDeptVo> {
select parent_id from sys_dept where dept_id in (
select srd.dept_id from sys_role_dept srd
left join sys_role sr on sr.role_id = srd.role_id
where srd.role_id = %d and sr.status = 0
where srd.role_id = %d and sr.status = '0'
)
""".formatted(roleId);
}

View File

@ -34,7 +34,7 @@ public interface SysMenuMapper extends BaseMapperPlus<SysMenu, SysMenuVo> {
select menu_id from sys_role_menu where role_id in (
select sur.role_id from sys_user_role sur
left join sys_role sr on sr.role_id = sur.role_id
where sur.user_id = %d and sr.status = 0
where sur.user_id = %d and sr.status = '0'
)
""".formatted(userId);
}
@ -54,7 +54,7 @@ public interface SysMenuMapper extends BaseMapperPlus<SysMenu, SysMenuVo> {
return """
select srm.menu_id from sys_role_menu srm
left join sys_role sr on sr.role_id = srm.role_id
where srm.role_id = %d and sr.status = 0
where srm.role_id = %d and sr.status = '0'
""".formatted(roleId);
}
@ -74,7 +74,7 @@ public interface SysMenuMapper extends BaseMapperPlus<SysMenu, SysMenuVo> {
select parent_id from sys_menu where menu_id in (
select srm.menu_id from sys_role_menu srm
left join sys_role sr on sr.role_id = srm.role_id
where srm.role_id = %d and sr.status = 0
where srm.role_id = %d and sr.status = '0'
)
""".formatted(roleId);
}