fix: 角色编辑

V0.5.x
jay 2023-06-12 17:32:53 +08:00
parent 2e43719aa5
commit e3f4f815b9
1 changed files with 8 additions and 0 deletions

View File

@ -128,6 +128,14 @@ public class SysRoleDataImpl implements ISysRoleData, IJPACommData<SysRole, Long
@Override
public int updateById(SysRole role) {
long execute = jpaQueryFactory.update(tbSysRole)
.set(tbSysRole.roleName, role.getRoleName())
.set(tbSysRole.roleKey, role.getRoleKey())
.set(tbSysRole.roleSort, role.getRoleSort())
.set(tbSysRole.dataScope, role.getDataScope())
.set(tbSysRole.status, role.getStatus())
.set(tbSysRole.menuCheckStrictly, role.getMenuCheckStrictly())
.set(tbSysRole.deptCheckStrictly, role.getDeptCheckStrictly())
.set(tbSysRole.remark, role.getRemark())
.where(PredicateBuilder.instance().and(tbSysRole.id.eq(role.getId())).build()).execute();
return Integer.parseInt(execute + "");
}