fix(征求意见): 权限
This commit is contained in:
+3
@@ -11,6 +11,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
@@ -45,6 +46,7 @@ public class ConsultationController {
|
||||
@ApiOperation(value="征求意见-分页查询", notes="征求意见-分页查询")
|
||||
@GetMapping(value = "/queryByPage")
|
||||
@Translation
|
||||
@RequiresPermissions("askForAdvice:search")
|
||||
public Result<IPage<ProcessFbStandardConsultation>> queryByPage(ProcessFbStandardConsultation processFbStandardConsultation,
|
||||
@ApiParam("当前页") @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@ApiParam("每页条数") @RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
@@ -73,6 +75,7 @@ public class ConsultationController {
|
||||
@AutoLog(value = "征求意见详情-导出")
|
||||
@ApiOperation(value = "征求意见详情-导出")
|
||||
@GetMapping("/exportExcel")
|
||||
@RequiresPermissions("askForAdvice:detail:export")
|
||||
public void exportExcel(String businessId, HttpServletRequest request, HttpServletResponse response) {
|
||||
consultationService.exportExcel(businessId, request, response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user