|
@@ -179,6 +179,7 @@ public class ReportTableController {
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping("/tableExchangeTypeById")
|
|
|
+ @WebLog(ServerEnum = ServerEnum.CLIENT, ModelEnum = ModelEnum.REPORTTABLE, OperationEnum = OperationEnum.UPDATE)
|
|
|
public Result tableExchangeTypeById(Integer id, Integer isAutoReport, String cron) {
|
|
|
if (Blank.isEmpty(id, isAutoReport)) {
|
|
|
return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "id和报表类型不能为空");
|
|
@@ -212,6 +213,21 @@ public class ReportTableController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 根据id修改报表名称
|
|
|
+ * @param id
|
|
|
+ * @param reportTableName
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/updateTableNameById")
|
|
|
+ @WebLog(ServerEnum = ServerEnum.CLIENT, ModelEnum = ModelEnum.REPORTTABLE, OperationEnum = OperationEnum.UPDATE)
|
|
|
+ public Result updateTableNameById(Integer id, String reportTableName) {
|
|
|
+ if (Blank.isEmpty(id)) {
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "报表id不能为空");
|
|
|
+ }
|
|
|
+ return reportTableService.updateTableNameById(id, reportTableName);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 获取当前登录人的能查看的所有报表(包括自己创建的)
|
|
|
*
|
|
|
* @param page
|