修复角色管理问题
This commit is contained in:
@@ -625,7 +625,4 @@ public class BaseMapperImpl implements BaseMapper {
|
||||
}
|
||||
return Long.parseLong(id.toString())+1L;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo;
|
||||
import com.hcframe.base.common.ResultVO;
|
||||
import com.hcframe.base.common.WebPageInfo;
|
||||
import com.hcframe.user.module.auth.service.RoleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -17,6 +18,8 @@ import java.util.Map;
|
||||
* @description 角色管理
|
||||
*/
|
||||
@RestController
|
||||
@Api(tags = "角色管理")
|
||||
@RequestMapping("role")
|
||||
public class RoleController {
|
||||
|
||||
final RoleService roleService;
|
||||
|
||||
@@ -24,9 +24,8 @@ import java.util.Map;
|
||||
@Service
|
||||
public class RoleServiceImpl implements RoleService {
|
||||
|
||||
private static final String PK_ID = "ORG_ID";
|
||||
private static final String TABLE_NAME = "OS_SYS_ORG";
|
||||
private static final String OS_SYS_POSITION = "OS_SYS_POSITION";
|
||||
private static final String PK_ID = "ROLE_ID";
|
||||
private static final String TABLE_NAME = "OS_SYS_ROLE";
|
||||
private static final OsSysTable TABLE_INFO = OsSysTable.builder().tableName(TABLE_NAME).tablePk(PK_ID).build();
|
||||
|
||||
final BaseMapper baseMapper;
|
||||
@@ -41,7 +40,7 @@ public class RoleServiceImpl implements RoleService {
|
||||
|
||||
@Override
|
||||
public ResultVO<Object> addRole(Map<String, Object> role) {
|
||||
baseMapper.save(TABLE_NAME,PK_ID,role);
|
||||
tableService.saveWithDate(TABLE_INFO,role);
|
||||
return ResultVO.getSuccess();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user