mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 02:55:07 +08:00
【新增】system user 和 role 接入新操作日志
This commit is contained in:
@ -79,23 +79,6 @@ public class RoleServiceImplTest extends BaseDbUnitTest {
|
||||
assertPojoEquals(reqVO, newRoleDO);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateRoleStatus() {
|
||||
// mock 数据
|
||||
RoleDO roleDO = randomPojo(RoleDO.class, o -> o.setStatus(CommonStatusEnum.ENABLE.getStatus())
|
||||
.setType(RoleTypeEnum.CUSTOM.getType()));
|
||||
roleMapper.insert(roleDO);
|
||||
|
||||
// 准备参数
|
||||
Long roleId = roleDO.getId();
|
||||
|
||||
// 调用
|
||||
roleService.updateRoleStatus(roleId, CommonStatusEnum.DISABLE.getStatus());
|
||||
// 断言
|
||||
RoleDO dbRoleDO = roleMapper.selectById(roleId);
|
||||
assertEquals(CommonStatusEnum.DISABLE.getStatus(), dbRoleDO.getStatus());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdateRoleDataScope() {
|
||||
// mock 数据
|
||||
|
Reference in New Issue
Block a user