| | |
| | | package com.doumee.cloud.board; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.business.PlatformLogMapper; |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformJob; |
| | | import com.doumee.dao.business.model.PlatformLog; |
| | | import com.doumee.dao.openapi.request.HkBaseTokenRequest; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.web.response.platformReport.*; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.PlatformLogService; |
| | | import io.swagger.annotations.*; |
| | | 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.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.*; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | |
| | | @Autowired |
| | | private PlatformLogMapper platformLogMapper; |
| | | @Autowired |
| | | private BoardService boardService; |
| | | |
| | | |
| | | |
| | |
| | | @ApiOperation("中心数据") |
| | | @GetMapping("/centerData") |
| | | public ApiResponse<OnSitDispatchBoardVO> centerData() { |
| | | OnSitDispatchBoardVO data = new OnSitDispatchBoardVO(); |
| | | data.setPlatformTotal(100); |
| | | data.setFreePlatform(8); |
| | | data.setReservationCar(97); |
| | | data.setWorkingCar(56); |
| | | data.setLineUpCar(35); |
| | | OnSitDispatchBoardVO data = boardService.getCnddCenterData(); |
| | | if(data == null){ |
| | | data = new OnSitDispatchBoardVO(); |
| | | data.setPlatformTotal(100); |
| | | data.setFreePlatform(8); |
| | | data.setReservationCar(97); |
| | | data.setWorkingCar(56); |
| | | data.setLineUpCar(35); |
| | | } |
| | | return ApiResponse.success(data); |
| | | } |
| | | |