fix:【pay 支付】单测报错的问题

This commit is contained in:
YunaiV
2025-08-29 22:59:39 +08:00
parent 66c8c970ee
commit 32a4a99e2f
3 changed files with 9 additions and 15 deletions

View File

@@ -148,7 +148,7 @@ public class RoleServiceImplTest extends BaseDbUnitTest {
@Test
public void testValidateUpdateRole_success() {
RoleDO roleDO = randomPojo(RoleDO.class);
RoleDO roleDO = randomPojo(RoleDO.class, o -> o.setType(RoleTypeEnum.CUSTOM.getType()));
roleMapper.insert(roleDO);
// 准备参数
Long id = roleDO.getId();