feat: 新增动态数据源单元测试

This commit is contained in:
haoxr
2023-04-23 23:09:13 +08:00
parent fe4809c256
commit cb9d90f3d6
4 changed files with 45 additions and 36 deletions

View File

@@ -100,7 +100,6 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
* @return
*/
@Override
//@DS("slave")
public boolean saveRole(RoleForm roleForm) {
Long roleId = roleForm.getId();

View File

@@ -154,9 +154,6 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
boolean result = this.updateById(entity);
if (result) {
/* RoleForm roleForm = roleService.getRoleForm(12l);
roleForm.setName("测试角色_" + RandomUtil.randomString(RandomUtil.BASE_CHAR, 1));
roleService.saveRole(roleForm);*/
// 保存用户角色
userRoleService.saveUserRoles(entity.getId(), userForm.getRoleIds());
}