feat(自定义对比): 权限完善
This commit is contained in:
+17
@@ -21,6 +21,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -60,6 +61,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-分页列表查询")
|
||||
@ApiOperation(value="自定义对比-分页列表查询", notes="自定义对比-分页列表查询")
|
||||
@GetMapping(value = "/queryByPage")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<IPage<LawsCustomCompareInfoVO>> queryByPage(LawsCustomCompareInfoVO lawsCustomCompareInfoVO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@@ -73,6 +75,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-标准检索分页列表查询")
|
||||
@ApiOperation(value="自定义对比-标准检索分页列表查询", notes="自定义对比-标准检索分页列表查询")
|
||||
@GetMapping(value = "/queryStandard")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<IPage<StandardVO>> queryStandard(StandardVO standardVO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@@ -86,6 +89,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-标准检索列表查询")
|
||||
@ApiOperation(value="自定义对比-标准检索列表查询", notes="自定义对比-标准检索列表查询")
|
||||
@GetMapping(value = "/queryStandardList")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<List<StandardVO>> queryStandardList(StandardVO standardVO) {
|
||||
return Result.OK(lawsCustomCompareInfoService.queryStandardList(standardVO));
|
||||
}
|
||||
@@ -97,6 +101,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-删除标准列表")
|
||||
@ApiOperation(value="自定义对比-删除标准列表", notes="自定义对比-删除标准列表")
|
||||
@GetMapping(value = "/delStandard")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<T> delStandard(String infoId, String standardId) {
|
||||
lawsCustomCompareInfoService.delStandard(infoId, standardId);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -109,6 +114,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-标准列表分页查询")
|
||||
@ApiOperation(value="自定义对比-标准列表分页查询", notes="自定义对比-标准列表分页查询")
|
||||
@GetMapping(value = "/queryStandardByInfoId")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<IPage<StandardVO>> queryStandardList(String infoId,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@@ -122,6 +128,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-表格详情")
|
||||
@ApiOperation(value="自定义对比-表格详情", notes="自定义对比-表格详情")
|
||||
@GetMapping(value = "/queryTableDetail")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<TableDetailVO> queryTableDetail(String infoId) {
|
||||
return Result.OK(lawsCustomCompareInfoService.queryTableDetail(infoId));
|
||||
}
|
||||
@@ -133,6 +140,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-清单维护列表查询")
|
||||
@ApiOperation(value="自定义对比-清单维护列表查询", notes="自定义对比-清单维护列表查询")
|
||||
@GetMapping(value = "/queryInventory")
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<Map<String, Object>> queryInventoryByInfoId(String infoId) {
|
||||
return Result.OK(lawsCustomCompareInfoService.queryInventory(infoId));
|
||||
}
|
||||
@@ -144,6 +152,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-清单维护编辑")
|
||||
@ApiOperation(value="自定义对比-清单维护编辑", notes="自定义对比-清单维护编辑")
|
||||
@PostMapping(value = "/editInventory")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<T> editInventory(@RequestBody Map<String, Object> map) {
|
||||
lawsCustomCompareInfoService.editInventory(map);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -156,6 +165,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-标准检索保存")
|
||||
@ApiOperation(value="自定义对比-标准检索保存", notes="自定义对比-标准检索保存")
|
||||
@PostMapping(value = "/saveStandard")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<String> saveStandard(@RequestBody StandardSaveVO standardSaveVO) {
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK), lawsCustomCompareInfoService.saveStandard(standardSaveVO));
|
||||
}
|
||||
@@ -167,6 +177,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-单元格内容保存")
|
||||
@ApiOperation(value="自定义对比-单元格内容保存", notes="自定义对比-单元格内容保存")
|
||||
@PostMapping(value = "/saveCell")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<IPage<StandardVO>> saveCell(@RequestBody LawsCustomCompareCell lawsCustomCompareCell) {
|
||||
lawsCustomCompareCellService.saveOrUpdate(lawsCustomCompareCell);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -179,6 +190,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-单元格对比分析结果保存")
|
||||
@ApiOperation(value="自定义对比-单元格对比分析结果保存", notes="自定义对比-单元格对比分析结果保存")
|
||||
@PostMapping(value = "/saveCellCompareResult")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<IPage<StandardVO>> saveCellCompareResult(@RequestBody LawsCustomCompareInventory lawsCustomCompareCell) {
|
||||
lawsCustomCompareInventoryService.saveOrUpdate(lawsCustomCompareCell);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -192,6 +204,7 @@ public class LawsCustomCompareInfoController {
|
||||
@ApiOperation(value="自定义对比-通过id查询", notes="自定义对比-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
@Translation
|
||||
@RequiresPermissions("customComparison:search")
|
||||
public Result<LawsCustomCompareInfoVO> queryById(String id) {
|
||||
return Result.OK(lawsCustomCompareInfoService.queryById(id));
|
||||
}
|
||||
@@ -203,6 +216,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-保存")
|
||||
@ApiOperation(value="自定义对比-保存", notes="自定义对比-保存")
|
||||
@PostMapping(value = "/save")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<T> save(@RequestBody LawsCustomCompareInfo lawsCustomCompareInfo) {
|
||||
lawsCustomCompareInfoService.saveOrUpdate(lawsCustomCompareInfo);
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
@@ -215,6 +229,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-根据id删除")
|
||||
@ApiOperation(value="自定义对比-根据id删除", notes="自定义对比-根据id删除")
|
||||
@PostMapping(value = "/delById")
|
||||
@RequiresPermissions("customComparison:delete")
|
||||
public Result<T> delById(@RequestBody Map<String, Object> map) {
|
||||
if (map.containsKey("id")){
|
||||
lawsCustomCompareInfoService.delById((String) map.get("id"));
|
||||
@@ -229,6 +244,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-根据id删除特点/对比项")
|
||||
@ApiOperation(value="自定义对比-根据id删除特点/对比项", notes="自定义对比-根据id删除特点/对比项")
|
||||
@PostMapping(value = "/delInventoryById")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public Result<T> delInventoryById(@RequestBody Map<String, Object> map) {
|
||||
if (map.containsKey("id")){
|
||||
lawsCustomCompareInventoryService.removeById((String) map.get("id"));
|
||||
@@ -244,6 +260,7 @@ public class LawsCustomCompareInfoController {
|
||||
@AutoLog(value = "自定义对比-导出")
|
||||
@ApiOperation(value = "自定义对比-导出")
|
||||
@GetMapping("/exportExcel")
|
||||
@RequiresPermissions("customComparison:edit")
|
||||
public void exportExcel(String infoId, HttpServletRequest request, HttpServletResponse response) {
|
||||
lawsCustomCompareInfoService.exportExcel(infoId, request, response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user