...
|
...
|
@@ -33,13 +33,13 @@ import static org.thingsboard.server.common.data.yunteng.constant.QueryConstant. |
33
|
33
|
@RequestMapping("api/yt/report_form/config")
|
34
|
34
|
@Api(tags = "报表配置信息")
|
35
|
35
|
@RequiredArgsConstructor
|
36
|
|
-@PreAuthorize("@check.checkPermissions({'TENANT_ADMIN','CUSTOMER_USER'},{})")
|
37
|
36
|
public class TkReportFormConfigController extends BaseController {
|
38
|
37
|
|
39
|
38
|
private final TkReportFormConfigService reportFormConfigService;
|
40
|
39
|
|
41
|
40
|
@GetMapping(params = {PAGE_SIZE, PAGE})
|
42
|
41
|
@ApiOperation("分页")
|
|
42
|
+ @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{})")
|
43
|
43
|
public TkPageData<ReportFormConfigDTO> page(
|
44
|
44
|
@RequestParam(PAGE_SIZE) int pageSize,
|
45
|
45
|
@RequestParam(PAGE) int page,
|
...
|
...
|
@@ -77,7 +77,7 @@ public class TkReportFormConfigController extends BaseController { |
77
|
77
|
|
78
|
78
|
@PostMapping
|
79
|
79
|
@ApiOperation("新增")
|
80
|
|
- @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN','CUSTOMER_USER'},{'api:yt:report_form:config:post'})")
|
|
80
|
+ @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{'api:yt:report_form:config:post'})")
|
81
|
81
|
public ResponseResult<ReportFormConfigDTO> saveReportFromConfig(
|
82
|
82
|
@Validated({AddGroup.class}) @RequestBody ReportFormConfigDTO configDTO)
|
83
|
83
|
throws ThingsboardException, SchedulerException {
|
...
|
...
|
@@ -89,7 +89,7 @@ public class TkReportFormConfigController extends BaseController { |
89
|
89
|
|
90
|
90
|
@PutMapping
|
91
|
91
|
@ApiOperation("编辑")
|
92
|
|
- @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN','CUSTOMER_USER'},{'api:yt:report_form:config:update'})")
|
|
92
|
+ @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{'api:yt:report_form:config:update'})")
|
93
|
93
|
public ResponseResult<ReportFormConfigDTO> updateReportFromConfig(
|
94
|
94
|
@Validated({UpdateGroup.class}) @RequestBody ReportFormConfigDTO configDTO)
|
95
|
95
|
throws ThingsboardException, SchedulerException {
|
...
|
...
|
@@ -108,7 +108,7 @@ public class TkReportFormConfigController extends BaseController { |
108
|
108
|
|
109
|
109
|
@DeleteMapping
|
110
|
110
|
@ApiOperation("删除")
|
111
|
|
- @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN','CUSTOMER_USER'},{'api:yt:report_form:config:delete'})")
|
|
111
|
+ @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{'api:yt:report_form:config:delete'})")
|
112
|
112
|
public ResponseResult<Boolean> deleteReportFormConfig(
|
113
|
113
|
@Validated({DeleteGroup.class}) @RequestBody DeleteDTO deleteDTO) throws SchedulerException {
|
114
|
114
|
return reportFormConfigService.deleteReportFormConfig(deleteDTO)
|
...
|
...
|
|