| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dashboard-statistics") |
| | | @Api(tags = "数据统计面板") |
| | | @Api(tags = "首页") |
| | | @RequiredArgsConstructor(onConstructor_ = @Lazy) |
| | | public class DashboardStatisticsController { |
| | | |
| | |
| | | return R.ok(accidentBrief); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取故事简讯详情分类",response = AccidentClassification.class) |
| | | @GetMapping("/getStoryClassify") |
| | | public R<List<AccidentClassification>> getStoryClassify() { |
| | | List<AccidentClassification> list = accidentClassificationService.list(new LambdaQueryWrapper<AccidentClassification>().eq(AccidentClassification::getDeleted, false)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 获取委托方大屏首页统计数据 |
| | | * |
| | |
| | | |
| | | LambdaQueryWrapper<WorkPresentation> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(WorkPresentation::getClientId,query.getClientId()); |
| | | wrapper.eq(WorkPresentation::getState, 1); |
| | | if(query.getType()!=null){ |
| | | wrapper.eq(WorkPresentation::getType, query.getType()); |
| | | } |
| | |
| | | public class EntrustDeviceListQuery extends BasePage { |
| | | |
| | | @ApiModelProperty("项目id") |
| | | @NotNull(message = "项目id不能为空") |
| | | private Integer projectId; |
| | | @ApiModelProperty("整改情况 true已整改 false未整改") |
| | | private Boolean reformed; |