| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.PlatformWarnEvent; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import com.doumee.service.business.third.BoardService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/10/28 13:42 |
| | | */ |
| | | |
| | | @Api(tags = "ãçæ¿å¤§å±ãåºå
è°åº¦çæ¿") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/board/api/onSitDispatch") |
| | | public class ChangNeiDiaoduController extends BaseController { |
| | | |
| | | @Autowired |
| | | private BoardService boardService; |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("ä¸å¿æ°æ®-仿¥è½¦è¾ä½ä¸æ
åµç»è®¡æ°æ®") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<OnSitDispatchBoardVO> centerData() { |
| | | OnSitDispatchBoardVO data = boardService.getCnddCenterData(); |
| | | |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥æå°å®æè®¢åç»è®¡") |
| | | @GetMapping("/platformGroupFinish") |
| | | public ApiResponse<List<PlatformGroupFinishVO>> platformGroupFinish() { |
| | | List<PlatformGroupFinishVO> platformGroupFinishVOList = boardService.platformGroupFinish(); |
| | | return ApiResponse.success(platformGroupFinishVOList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥è½¦è¾ä½ä¸æ
åµ-è¿Næ¡æ¥å¿å表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "size", value = "æ¥è¯¢æè¿è®°å½æ°çè®°å½æ¡æ°ï¼é»è®¤7æ¡", required = false) |
| | | }) |
| | | @GetMapping("/carWorkSituation") |
| | | public ApiResponse<CarWorkSituationVO> carWorkSituation(@RequestParam Integer size) { |
| | | int limit = Constants.formatIntegerNum(size)>0?size:7; |
| | | CarWorkSituationVO carWorkSituationVO = boardService.carWorkSituation(limit); |
| | | return ApiResponse.success(carWorkSituationVO); |
| | | } |
| | | @LoginNoRequired |
| | | @ApiOperation("宿¶åè¦-è¿Næ¡å表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "size", value = "æ¥è¯¢æè¿è®°å½æ°çè®°å½æ¡æ°ï¼é»è®¤7æ¡", required = false) |
| | | }) |
| | | @GetMapping("/warningList") |
| | | public ApiResponse<List<PlatformWarnEvent>> warningList(@RequestParam Integer size) { |
| | | int limit = Constants.formatIntegerNum(size)>0?size:7; |
| | | List<PlatformWarnEvent> data = boardService.warningList(limit); |
| | | if(data ==null || data.size()==0){ |
| | | } |
| | | return ApiResponse.success(data); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("仿¥æå°å·¥ä½æ¶é¿è¶å¿") |
| | | @GetMapping("/platformDuration") |
| | | public ApiResponse<List<PlatformDurationVO>> platformDuration() { |
| | | List<PlatformDurationVO> platformDurationList = boardService.platformDuration(); |
| | | return ApiResponse.success(platformDurationList); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("宿¶ä½ä¸æç") |
| | | @GetMapping("/workEfficiency") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "æ¥è¯¢ç±»åï¼0=å
¥åºï¼1=åºåº,é»è®¤ 0", required = true), |
| | | }) |
| | | public ApiResponse<List<WorkEfficiencyVO>> workEfficiency(@RequestParam Integer type) { |
| | | List<WorkEfficiencyVO> workEfficiencyVOList = boardService.workEfficiency(type); |
| | | return ApiResponse.success(workEfficiencyVOList); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("宿¶æå°ä½ä¸ä¿¡æ¯") |
| | | @GetMapping("/platformWorkData") |
| | | public ApiResponse<List<PlatformWorkDataVO>> platformWorkData() { |
| | | List<PlatformWorkDataVO> platformWorkDataVOList = boardService.platformWorkData(); |
| | | return ApiResponse.success(platformWorkDataVOList); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |