| | |
| | | |
| | | @GetMapping("/query") |
| | | @ApiOperation("查询") |
| | | @LogSave |
| | | @LogSave(operationType = "手持设备管理", contain = "查询") |
| | | public CommonResult<IPage<HandheldTerminalVo>> search(@RequestParam(required = true) Integer currentPage, |
| | | @RequestParam(required = true) Integer pageSize, |
| | | @RequestParam(required = false) Short state) { |
New file |
| | |
| | | package com.ycl.controller.intelligentPatrol; |
| | | |
| | | import com.ycl.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * AnalysisController |
| | | * |
| | | * @author: AI |
| | | * @date: 2022-11-01 16:43 |
| | | * @version V1.0 |
| | | **/ |
| | | @RestController |
| | | @RequestMapping("/intelligentPatrol") |
| | | @Api(tags = "智能巡查") |
| | | public class AnalysisController extends BaseController { |
| | | } |
New file |
| | |
| | | package com.ycl.controller.intelligentPatrol; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.dto.statistics.UnlawfulTypeDto; |
| | | import com.ycl.vo.equipment.HandheldTerminalVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * StatisticsController |
| | | * |
| | | * @version V1.0 |
| | | * @author: AI |
| | | * @date: 2022-11-01 16:40 |
| | | **/ |
| | | @RestController |
| | | @RequestMapping("/intelligentPatrol/statistics") |
| | | @Api(tags = "违章-违法统计") |
| | | public class StatisticsController extends BaseController { |
| | | |
| | | @GetMapping("/unlawful/type") |
| | | @ApiOperation("按违规类型统计") |
| | | @LogSave(operationType = "按违规类型统计", contain = "查询") |
| | | public CommonResult<IPage<UnlawfulTypeDto>> searchByType(@RequestParam(required = true) Integer currentPage, |
| | | @RequestParam(required = true) Integer pageSize, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime beginTime, |
| | | @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") LocalDateTime endTime) { |
| | | IPage<UnlawfulTypeDto> page = new Page<>(); |
| | | List<UnlawfulTypeDto> ls = new ArrayList<>(); |
| | | ls.add(new UnlawfulTypeDto("市场监管", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("公安", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("自然资源", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("生态环境", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("地方立法", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("地震", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("教育", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("经信", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("林业", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("农村环境卫生", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("气象", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("人防", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("水行政", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("应急管理", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | ls.add(new UnlawfulTypeDto("其他", 100, 0.6, 10, 1, 20, 5, 20, 0.6, 0.9)); |
| | | page.setTotal(ls.size()); |
| | | page.setRecords(ls); |
| | | return CommonResult.success(page); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.dto.statistics; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.NoArgsConstructor; |
| | | |
| | | |
| | | /** |
| | | * UnlawfulTypeDto 按违规类型统计 |
| | | * |
| | | * @version V1.0 |
| | | * @author: AI |
| | | * @date: 2022-11-01 17:09 |
| | | **/ |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | | public class UnlawfulTypeDto { |
| | | |
| | | /** |
| | | * 类型名称 |
| | | */ |
| | | private String name; |
| | | |
| | | /** |
| | | * 事件总数 |
| | | */ |
| | | private Integer count; |
| | | |
| | | /** |
| | | * 占比 |
| | | */ |
| | | private Double ratio; |
| | | |
| | | /** |
| | | * 立案 |
| | | */ |
| | | private Integer register; |
| | | |
| | | /** |
| | | * 暂不立案 |
| | | */ |
| | | private Integer notRegister; |
| | | |
| | | /** |
| | | * 结案 |
| | | */ |
| | | private Integer closing; |
| | | |
| | | /** |
| | | * 再学习 |
| | | */ |
| | | private Integer relearn; |
| | | |
| | | /** |
| | | * 已审核 |
| | | */ |
| | | private Integer checked; |
| | | |
| | | /** |
| | | * 审核率 |
| | | */ |
| | | private Double checkedRatio; |
| | | |
| | | /** |
| | | * 立案率 |
| | | */ |
| | | private Double registerRatio; |
| | | |
| | | } |