update 86978 功能安全中心--角色授权--不勾选查询权限--没有弹出提示
This commit is contained in:
+13
@@ -21,6 +21,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
@@ -52,6 +53,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
* 分页列表查询
|
||||
*/
|
||||
@ApiOperation(value = "功能安全中心-分页列表查询", notes = "功能安全中心-分页列表查询")
|
||||
@RequiresPermissions("safetyCenter:search")
|
||||
@GetMapping(value = "/page")
|
||||
public Result<IPage<SafetyCenter>> queryPageList(SafetyCenter safetyCenter,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@@ -72,6 +74,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
* 分页列表查询
|
||||
*/
|
||||
@ApiOperation(value = "功能安全中心-项目组分页列表查询", notes = "功能安全中心-分页列表查询")
|
||||
@RequiresPermissions("safetyCenter:search")
|
||||
@GetMapping(value = "/projectGroupPage")
|
||||
public Result<IPage<SafetyCenter>> queryProjectGroupPageList(SafetyCenter safetyCenter,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@@ -124,6 +127,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
* 列表查询
|
||||
*/
|
||||
@ApiOperation(value = "功能安全中心-列表查询", notes = "功能安全中心-列表查询")
|
||||
@RequiresPermissions("safetyCenter:search")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<List<SafetyCenter>> queryList(SafetyCenter safetyCenter,
|
||||
HttpServletRequest req) {
|
||||
@@ -137,6 +141,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-添加研究组")
|
||||
@ApiOperation(value = "功能安全中心-添加研究组", notes = "功能安全中心-添加")
|
||||
@RequiresPermissions("safetyCenter:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@Validated @RequestBody SafetyCenter safetyCenter) {
|
||||
safetyCenter.setProjectType(SafetyCenterCommon.PROJECT_TYPE_2);
|
||||
@@ -148,6 +153,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-添加项目组")
|
||||
@ApiOperation(value = "功能安全中心-添加项目组", notes = "功能安全中心-添加项目组")
|
||||
@RequiresPermissions("safetyCenter:add")
|
||||
@PostMapping(value = "/addProjectGroup")
|
||||
public Result<String> addProjectGroup(@Validated @RequestBody SafetyCenter safetyCenter) {
|
||||
safetyCenter.setProjectType(SafetyCenterCommon.PROJECT_TYPE_3);
|
||||
@@ -161,6 +167,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-编辑研究组")
|
||||
@ApiOperation(value = "功能安全中心-编辑研究组", notes = "功能安全中心-编辑")
|
||||
@RequiresPermissions("safetyCenter:edit")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<String> edit(@Validated @RequestBody SafetyCenterEditVO safetyCenter) {
|
||||
safetyCenterService.editById(safetyCenter);
|
||||
@@ -171,6 +178,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-编辑项目组")
|
||||
@ApiOperation(value = "功能安全中心-编辑项目组", notes = "功能安全中心-编辑")
|
||||
@RequiresPermissions("safetyCenter:edit")
|
||||
@PostMapping(value = "/editProjectGroup")
|
||||
public Result<String> editProjectGroup(@Validated @RequestBody SafetyCenterEditVO safetyCenter) {
|
||||
safetyCenterService.editById(safetyCenter);
|
||||
@@ -182,6 +190,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-通过id删除")
|
||||
@ApiOperation(value = "功能安全中心-通过id删除", notes = "功能安全中心-通过id删除")
|
||||
@RequiresPermissions("safetyCenter:delete")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<Object> delete(@RequestBody IdsMapBody map) {
|
||||
String id = map.getId();
|
||||
@@ -197,6 +206,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-批量删除")
|
||||
@ApiOperation(value = "功能安全中心-批量删除", notes = "功能安全中心-批量删除")
|
||||
@RequiresPermissions("safetyCenter:batchDel")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
public Result<Object> deleteBatch(@RequestBody IdsMapBody map) {
|
||||
String ids = map.getIds();
|
||||
@@ -213,6 +223,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
*/
|
||||
@AutoLog(value = "功能安全中心-通过id查询")
|
||||
@ApiOperation(value = "功能安全中心-通过id查询", notes = "功能安全中心-通过id查询")
|
||||
@RequiresPermissions("safetyCenter:search")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<SafetyCenter> queryById(@RequestParam(name = "id") String id) {
|
||||
SafetyCenter safetyCenter = safetyCenterService.queryById(id);
|
||||
@@ -226,6 +237,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
* 导出excel
|
||||
*/
|
||||
@ApiOperation(value = "功能安全中心-导出excel")
|
||||
@RequiresPermissions("safetyCenter:export")
|
||||
@GetMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, SafetyCenter safetyCenter) {
|
||||
QueryWrapper<SafetyCenter> queryWrapper = QueryGenerator.initQueryWrapper(safetyCenter, request.getParameterMap());
|
||||
@@ -257,6 +269,7 @@ public class SafetyCenterController extends JeroController<SafetyCenter, SafetyC
|
||||
* 导出excel
|
||||
*/
|
||||
@ApiOperation(value = "功能安全中心-导出项目组excel")
|
||||
@RequiresPermissions("safetyCenter:export")
|
||||
@GetMapping(value = "/exportProjectGroupXls")
|
||||
public ModelAndView exportProjectGroupXls(HttpServletRequest request, SafetyCenter safetyCenter) {
|
||||
QueryWrapper<SafetyCenter> queryWrapper = QueryGenerator.initQueryWrapper(safetyCenter, request.getParameterMap());
|
||||
|
||||
Reference in New Issue
Block a user