Optimize function name

This commit is contained in:
2023-11-29 11:34:21 +08:00
parent 7cf6b5cea2
commit 3d178aa8fe
6 changed files with 12 additions and 12 deletions

View File

@@ -36,14 +36,14 @@ class GroupServiceImpl(
baseMapper.selectPage(groupIdsPage, groupGetParam?.searchName, groupGetParam?.searchRegex ?: false)
val groupPage = Page<Group>(groupIdsPage.current, groupIdsIPage.size, groupIdsIPage.total)
if (groupIdsIPage.total > 0) {
groupPage.setRecords(baseMapper.getWithRoleByList(groupIdsIPage.records))
groupPage.setRecords(baseMapper.selectListWithRoleByIds(groupIdsIPage.records))
}
return GroupConverter.groupPageToGroupWithRolePageVo(groupPage)
}
override fun getOne(id: Long): GroupWithRoleVo? {
return baseMapper.selectOne(id)?.let { GroupConverter.groupToGroupWithRoleVo(it) } ?: let { null }
return baseMapper.selectOneById(id)?.let { GroupConverter.groupToGroupWithRoleVo(it) } ?: let { null }
}
override fun listAll(): List<GroupVo> {

View File

@@ -41,7 +41,7 @@ class RoleServiceImpl(
val rolePage = Page<Role>(roleIdsPage.current, roleIdsIPage.size, roleIdsIPage.total)
if (roleIdsIPage.total > 0) {
rolePage.setRecords(baseMapper.getWithPowerByList(roleIdsIPage.records))
rolePage.setRecords(baseMapper.selectListWithPowerByIds(roleIdsIPage.records))
}
@@ -49,7 +49,7 @@ class RoleServiceImpl(
}
override fun getOne(id: Long): RoleWithPowerVo? {
return baseMapper.selectOne(id)?.let { RoleConverter.roleToRoleWithPowerVo(it) } ?: let { null }
return baseMapper.selectOneById(id)?.let { RoleConverter.roleToRoleWithPowerVo(it) } ?: let { null }
}
override fun listAll(): List<RoleVo> {