新增 内蒙古平台推送充换电站用能统计信息接口

This commit is contained in:
Lemon
2025-04-10 09:09:49 +08:00
parent 480ef63493
commit fd90a5e312
3 changed files with 110 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson2.JSON;
import com.jsowell.common.annotation.Anonymous;
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.QueryOperatorInfoDTO;
import com.jsowell.pile.dto.QueryStationInfoDTO;
import com.jsowell.pile.thirdparty.CommonParamsDTO;
@@ -11,10 +12,7 @@ import com.jsowell.thirdparty.lianlian.common.CommonResult;
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
@@ -153,4 +151,24 @@ public class NeiMengGuController extends ThirdPartyBaseController {
}
}
/**
* 推送充换电站用能统计信息 notificationOperationStatsInfo
* @return
*/
@GetMapping("/v1/notificationOperationStatsInfo/{stationId}")
public RestApiResponse<?> notificationOperationStatsInfo(@PathVariable String stationId) {
logger.info("{}-推送充换电站用能统计信息 params:{}", platformName, stationId);
RestApiResponse<?> response = null;
try {
// 执行逻辑
String result = platformLogic.notificationOperationStatsInfo(stationId);
response = new RestApiResponse<>(result);
} catch (Exception e) {
logger.error("{}-推送充换电站用能统计信息", platformName, e);
response = new RestApiResponse<>(e);
}
logger.info("{}-推送充换电站用能统计信息 result:{}", platformName, response);
return response;
}
}