| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.openapi; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DESUtil; |
| | | import com.doumee.dao.business.JkLineMapper; |
| | | import com.doumee.dao.business.dto.TelecomCabinetLogDTO; |
| | | import com.doumee.dao.business.dto.TelecomLineInfoDTO; |
| | | import com.doumee.dao.business.vo.*; |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.*; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | | 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.data.redis.core.RedisTemplate; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "æä¾çµä¿¡å¯¹æ¥æ¥å£ï¼æ°æ®å¤§å±åºç¡æ°æ®çï¼") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/telecom/api") |
| | | public class TelecomApiController extends BaseController { |
| | | |
| | | @Autowired |
| | | private JkCabinetLogService jkCabinetLogService; |
| | | |
| | | @Autowired |
| | | private JkSketchService jkSketchService; |
| | | |
| | | @Autowired |
| | | private InoutRecordService inoutRecordService; |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-é¥ååºå
¥æ¥å¿æ¥è¯¢") |
| | | @PostMapping("/getLogListForTelecom") |
| | | public ApiResponse<List<TelecomJkCabinetLogVO>> getLogListForTelecom (@RequestBody TelecomCabinetLogDTO dto) { |
| | | return ApiResponse.success(jkCabinetLogService.getLogListForTelecom(dto)); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-车è¾çº¿è·¯") |
| | | @PostMapping("/getLineForTelecom") |
| | | public ApiResponse<List<TelecomJkLineListVO>> getLineForTelecom (@RequestBody TelecomLineInfoDTO dto) { |
| | | return ApiResponse.success(jkSketchService.getLineForTelecom(dto)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-线路æ»è®¡ä¸ä¸»åçº¿è·¯æ°æ®") |
| | | @PostMapping("/getTelecomLineCount") |
| | | public ApiResponse<TelecomLineCountVO> getTelecomLineCount (@RequestBody TelecomLineInfoDTO dto) { |
| | | return ApiResponse.success(jkSketchService.getTelecomLineCount(dto)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-线路ä¼åå¯¹æ¯æ°æ®") |
| | | @PostMapping("/getTelecomLineDistance") |
| | | public ApiResponse<List<TelecomCategoryDataVO>> getTelecomLineDistance (@RequestBody TelecomLineInfoDTO dto) { |
| | | return ApiResponse.success(jkSketchService.getTelecomLineDistance(dto)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-çº¿è·¯æ°æ®") |
| | | @PostMapping("/getTelecomLineInfo") |
| | | public ApiResponse<List<TelecomLineDataVO>> getTelecomLineInfo (@RequestBody TelecomLineInfoDTO dto) { |
| | | return ApiResponse.success(jkSketchService.getTelecomLineInfo(dto)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("çµä¿¡-仿¥å
¥åæ°æ®") |
| | | @PostMapping("/getInParkData") |
| | | public ApiResponse<TelecomInParkDataVO> getInParkData () { |
| | | return ApiResponse.success(inoutRecordService.getInParkDataForTelecom()); |
| | | } |
| | | |
| | | } |