| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 数据统计 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "数据管理\\数据统计") |
| | | @RestController |
| | | @SuppressWarnings("ALL") |
| | | @RequestMapping("/dataCount") |
| | | public class DataCountController extends BaseController { |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按文件类型统计") |
| | | @GetMapping(value = "/countSizesByType") |
| | | public ResponseMsg<Object> countSizesByType() { |
| | | try { |
| | | List<CountEntity> list = reportService.countSizesByType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询服务调用量统计") |
| | | @GetMapping(value = "/selectCountServices") |
| | | public ResponseMsg<Object> selectCountServices() { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计数据") |
| | | @GetMapping(value = "/countSizesByPrj") |
| | | public ResponseMsg<Object> countSizesByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countSizesByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载报告") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "7") |