mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
新增 获取站点运营分析信息接口
This commit is contained in:
@@ -48,7 +48,7 @@ public class BusinessStationInfoController extends BaseController {
|
||||
|
||||
|
||||
/**
|
||||
* 获取站点运营分析信息
|
||||
* 获取站点运营分析信息(7天、30天)
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@@ -65,4 +65,24 @@ public class BusinessStationInfoController extends BaseController {
|
||||
logger.info("获取站点运营分析信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取站点运营分析信息(12个月)
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getStationMonthlyBusinessAnalyzeInfo")
|
||||
public RestApiResponse<?> getStationMonthlyBusinessAnalyzeInfo(@RequestBody StationBusinessAnalyzeInfoDTO dto){
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationMonthlyBusinessAnalyzeInfo(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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ import com.jsowell.common.core.domain.ykc.TransactionRecordsData;
|
||||
import com.jsowell.common.core.redis.RedisCache;
|
||||
import com.jsowell.common.enums.AcquirerEnum;
|
||||
import com.jsowell.common.enums.DelFlagEnum;
|
||||
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
|
||||
import com.jsowell.common.enums.ykc.*;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.*;
|
||||
@@ -81,6 +82,7 @@ import com.jsowell.thirdparty.lutongyunting.service.LTYTService;
|
||||
import com.jsowell.thirdparty.platform.util.Cryptos;
|
||||
import com.jsowell.thirdparty.platform.util.Encodes;
|
||||
import com.jsowell.thirdparty.platform.util.GBSignUtils;
|
||||
import com.jsowell.thirdparty.zhongdianlian.service.ZDLService;
|
||||
import com.jsowell.wxpay.common.WeChatPayParameter;
|
||||
import com.jsowell.wxpay.dto.AppletTemplateMessageSendDTO;
|
||||
import com.jsowell.wxpay.response.WechatPayRefundRequest;
|
||||
@@ -260,6 +262,18 @@ public class SpringBootTestController {
|
||||
@Autowired
|
||||
private PileReservationInfoService pileReservationInfoService;
|
||||
|
||||
@Autowired
|
||||
private ZDLService zdlService;
|
||||
|
||||
@Test
|
||||
public void thirdPartyTest() {
|
||||
QueryStationInfoDTO dto = new QueryStationInfoDTO();
|
||||
dto.setOperatorId("14405899X");
|
||||
dto.setThirdPlatformType(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode());
|
||||
zdlService.queryStationsInfo(dto);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void personPileStopChargingTest() {
|
||||
String memberId = "84085683";
|
||||
|
||||
Reference in New Issue
Block a user