Commit 9439cba9 authored by lisong's avatar lisong

更新

parent 4a054b34
...@@ -25,12 +25,12 @@ import java.util.List; ...@@ -25,12 +25,12 @@ import java.util.List;
public class EnterpriseStatisticController extends BaseController { public class EnterpriseStatisticController extends BaseController {
@Autowired @Autowired
CylinderDateInfoServiceImpl cylinderDateInfoService; CylinderDateInfoServiceImpl cylinderDateInfoService;
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "根据搜索信息获取表格数据") @ApiOperation(value = "根据搜索信息获取表格数据")
@GetMapping(value = "/getTableInfo") @GetMapping(value = "/getTableInfo")
public ResponseModel<List<CylinderTableDto>> cylinderTableInfo() { public ResponseModel<List<CylinderTableDto>> cylinderTableInfo() {
List<CylinderTableDto> result = cylinderDateInfoService.selectTodayDate(); List<CylinderTableDto> result = cylinderDateInfoService.selectTodayDate();
return ResponseHelper.buildResponse(result); return ResponseHelper.buildResponse(result);
} }
...@@ -39,8 +39,8 @@ public class EnterpriseStatisticController extends BaseController { ...@@ -39,8 +39,8 @@ public class EnterpriseStatisticController extends BaseController {
@ApiOperation(value = "根据搜索信息获取表格数据") @ApiOperation(value = "根据搜索信息获取表格数据")
@GetMapping(value = "/getTableInfoPage") @GetMapping(value = "/getTableInfoPage")
public ResponseModel<Page<CylinderTableDto>> cylinderTableInfoPage(String pageNumber, String pageSize, public ResponseModel<Page<CylinderTableDto>> cylinderTableInfoPage(String pageNumber, String pageSize,
@RequestParam(value = "regionName" ,required = false) String regionName, @RequestParam(value = "regionName", required = false) String regionName,
@RequestParam(value = "unitName" ,required = false) String unitName) { @RequestParam(value = "unitName", required = false) String unitName) {
Page<CylinderTableDto> cylinderTableDtoPage = cylinderDateInfoService.selectTodayDatePage(pageNumber, pageSize, regionName, unitName); Page<CylinderTableDto> cylinderTableDtoPage = cylinderDateInfoService.selectTodayDatePage(pageNumber, pageSize, regionName, unitName);
return ResponseHelper.buildResponse(cylinderTableDtoPage); return ResponseHelper.buildResponse(cylinderTableDtoPage);
} }
...@@ -49,17 +49,16 @@ public class EnterpriseStatisticController extends BaseController { ...@@ -49,17 +49,16 @@ public class EnterpriseStatisticController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "创建表格数据") @ApiOperation(value = "创建表格数据")
@GetMapping(value = "/createTableInfoPage") @GetMapping(value = "/createTableInfoPage")
public ResponseModel createTableInfoPage() { public ResponseModel createTableInfoPage() {
cylinderDateInfoService.fixedDelayJob(); cylinderDateInfoService.fixedDelayJob();
return ResponseHelper.buildResponse(null); return ResponseHelper.buildResponse(null);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(value = "初始化统计数据") @ApiOperation(value = "初始化统计数据")
@GetMapping(value = "/initializeData") @GetMapping(value = "/initializeData")
public ResponseModel initializeData() { public ResponseModel initializeData() {
cylinderDateInfoService.initializeData(); cylinderDateInfoService.initializeData();
return ResponseHelper.buildResponse(null); return ResponseHelper.buildResponse(null);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment