mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -5,6 +5,7 @@ import com.jsowell.common.annotation.Anonymous;
|
||||
|
||||
import com.jsowell.common.dto.thirdparty.JCTCommonParamsDTO;
|
||||
import com.jsowell.common.dto.thirdparty.JCTPushRealTimeInfoDTO;
|
||||
import com.jsowell.common.dto.thirdparty.JCTQueryEquipmentDTO;
|
||||
import com.jsowell.common.dto.thirdparty.JCTQueryStationInfoDTO;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPartyReturnCodeEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
@@ -172,8 +173,16 @@ public class ChangZhouController extends ThirdPartyBaseController {
|
||||
// 解析入参
|
||||
QueryStationInfoDTO queryStationInfoDTO = parseParamsDTO(dto , QueryStationInfoDTO.class);
|
||||
|
||||
// 执行逻辑
|
||||
Map<String, String> map = platformLogic.queryStationStatus(queryStationInfoDTO);
|
||||
// 新方法
|
||||
JCTQueryStationInfoDTO jctQueryStationInfoDTO = new JCTQueryStationInfoDTO();
|
||||
BeanUtils.copyProperties(queryStationInfoDTO, jctQueryStationInfoDTO);
|
||||
jctQueryStationInfoDTO.setPlatformType(platformType);
|
||||
logger.info("请求参数转换后:{}" , JSON.toJSONString(jctQueryStationInfoDTO));
|
||||
Map<String, String> map = thirdPartyService.queryStationStatus(jctQueryStationInfoDTO);
|
||||
|
||||
// 旧方法
|
||||
// Map<String, String> map = platformLogic.queryStationStatus(queryStationInfoDTO);
|
||||
|
||||
logger.info("{}-设备接口状态查询 result:{}" , platformName , map);
|
||||
return CommonResult.success(0 , "设备接口状态查询成功!" , map.get("Data") , map.get("Sig"));
|
||||
} catch (Exception e) {
|
||||
@@ -207,8 +216,17 @@ public class ChangZhouController extends ThirdPartyBaseController {
|
||||
|
||||
// 解析入参
|
||||
QueryStationInfoDTO queryStationInfoDTO = parseParamsDTO(dto , QueryStationInfoDTO.class);
|
||||
// 执行逻辑
|
||||
Map<String, String> map = platformLogic.queryStationStats(queryStationInfoDTO);
|
||||
|
||||
// 新方法
|
||||
JCTQueryStationInfoDTO jctQueryStationInfoDTO = new JCTQueryStationInfoDTO();
|
||||
BeanUtils.copyProperties(queryStationInfoDTO, jctQueryStationInfoDTO);
|
||||
jctQueryStationInfoDTO.setPlatformType(platformType);
|
||||
logger.info("请求参数转换后:{}" , JSON.toJSONString(jctQueryStationInfoDTO));
|
||||
Map<String, String> map = thirdPartyService.queryStationStats(jctQueryStationInfoDTO);
|
||||
|
||||
// 旧方法
|
||||
// Map<String, String> map = platformLogic.queryStationStats(queryStationInfoDTO);
|
||||
|
||||
logger.info("{}-查询统计信息 result:{}" , platformName , map);
|
||||
return CommonResult.success(0 , "查询统计信息成功!" , map.get("Data") , map.get("Sig"));
|
||||
} catch (Exception e) {
|
||||
@@ -244,8 +262,16 @@ public class ChangZhouController extends ThirdPartyBaseController {
|
||||
// 解析入参
|
||||
QueryEquipmentDTO queryEquipmentDTO = parseParamsDTO(dto , QueryEquipmentDTO.class);
|
||||
|
||||
// 执行逻辑
|
||||
Map<String, String> map = platformLogic.queryEquipAuth(queryEquipmentDTO);
|
||||
// 新方法
|
||||
JCTQueryEquipmentDTO jctQueryEquipmentDTO = new JCTQueryEquipmentDTO();
|
||||
BeanUtils.copyProperties(queryEquipmentDTO, jctQueryEquipmentDTO);
|
||||
jctQueryEquipmentDTO.setPlatformType(platformType);
|
||||
logger.info("请求参数转换后:{}" , JSON.toJSONString(jctQueryEquipmentDTO));
|
||||
Map<String, String> map = thirdPartyService.queryEquipAuth(jctQueryEquipmentDTO);
|
||||
|
||||
// 旧方法
|
||||
// Map<String, String> map = platformLogic.queryEquipAuth(queryEquipmentDTO);
|
||||
|
||||
logger.info("{}-请求设备认证 result:{}" , platformName , map);
|
||||
return CommonResult.success(0 , "请求设备认证成功!" , map.get("Data") , map.get("Sig"));
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -71,6 +71,26 @@ public class BusinessStationInfoController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取站点运营分析信息(7天、30天,1年)
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getStationBusinessAnalyzeInfoV1")
|
||||
public RestApiResponse<?> getStationBusinessAnalyzeInfoV1(@RequestBody StationBusinessAnalyzeInfoDTO dto){
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationBusinessAnalyzeInfoV1(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo));
|
||||
} catch (Exception e) {
|
||||
logger.error("获取站点运营分析信息 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("获取站点运营分析信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取站点运营分析信息(12个月)
|
||||
|
||||
Reference in New Issue
Block a user