| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 管网一张图 |
| | |
| | | @ApiOperation(value = "单个项目文件类型数量") |
| | | @GetMapping("/countProjectType") |
| | | public ResponseMsg<Object> countProjectType(@RequestParam("projectCode") String projectCode) { |
| | | List<String> resList = oneMapService.countProjectType(projectCode); |
| | | List<Map<String, Object>> resList = oneMapService.countProjectType(projectCode); |
| | | |
| | | return success(resList); |
| | | } |
| | | |
| | |
| | | return success(resList); |
| | | } |
| | | |
| | | // ============[ 数据统计 - 2024-03-06]============ |
| | | //============[数据统计 - 2024-03-06]================== |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "数据统计(按大类统计)") |
| | | @GetMapping("/countByMajor") |
| | |
| | | return fail(ex.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询计算数据") |
| | | @GetMapping("/selectCalcData") |
| | | public ResponseMsg<Object> selectCalcData(){ |
| | | try { |
| | | String rs = oneMapService.calcData(); |
| | | |
| | | return success(rs); |
| | | }catch (Exception ex){ |
| | | log.error(ex.getMessage(), ex); |
| | | return fail(ex.getMessage()); |
| | | } |
| | | } |
| | | } |