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:
@@ -2,6 +2,7 @@ package com.jsowell.api.uniapp;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.jsowell.common.UserAgentUtils;
|
||||
import com.jsowell.common.annotation.Anonymous;
|
||||
import com.jsowell.common.constant.Constants;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
@@ -67,6 +68,9 @@ public class OrderController extends BaseController {
|
||||
dto.setMemberId(memberId);
|
||||
// 生成订单
|
||||
dto.setStartMode(Constants.ONE); // 启动方式 1-app启动
|
||||
|
||||
// 请求来源
|
||||
dto.setRequestSource(UserAgentUtils.determineRequestSource(request));
|
||||
String orderCode = orderService.generateOrderV2(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("orderCode", orderCode));
|
||||
} catch (BusinessException e) {
|
||||
|
||||
@@ -143,12 +143,12 @@ public class PileController extends BaseController {
|
||||
public RestApiResponse<?> selectStationConnectorList(HttpServletRequest request, @RequestBody QueryConnectorListDTO dto) {
|
||||
logger.info("查询充电枪口列表 params:{}", JSON.toJSONString(dto));
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
// 查询对接第三方平台的枪口状态
|
||||
selectThirdPartyConnectorStatus(dto);
|
||||
} catch (Exception e) {
|
||||
logger.error("修改对接第三方平台的枪口状态 error");
|
||||
}
|
||||
// try {
|
||||
// // 查询对接第三方平台的枪口状态
|
||||
// selectThirdPartyConnectorStatus(dto);
|
||||
// } catch (Exception e) {
|
||||
// logger.error("修改对接第三方平台的枪口状态 error");
|
||||
// }
|
||||
|
||||
try {
|
||||
PageResponse pageResponse = pileConnectorInfoService.selectStationConnectorList(dto);
|
||||
|
||||
@@ -83,12 +83,12 @@ public class PileConnectorInfoController extends BaseController {
|
||||
@PostMapping("/getConnectorInfoListByParams")
|
||||
public TableDataInfo getConnectorInfoListByParams(@RequestBody QueryConnectorListDTO dto) {
|
||||
logger.info("查询接口列表 param:{}", JSON.toJSONString(dto));
|
||||
try {
|
||||
// 修改对接第三方平台的枪口状态
|
||||
selectThirdPartyConnectorStatus(dto);
|
||||
} catch (Exception e) {
|
||||
logger.error("修改对接第三方平台的枪口状态 error");
|
||||
}
|
||||
// try {
|
||||
// // 修改对接第三方平台的枪口状态
|
||||
// selectThirdPartyConnectorStatus(dto);
|
||||
// } catch (Exception e) {
|
||||
// logger.error("修改对接第三方平台的枪口状态 error");
|
||||
// }
|
||||
List<PileConnectorInfoVO> list = pileConnectorInfoService.getConnectorInfoListByParams(dto);
|
||||
logger.info("查询接口列表 result:{}", JSON.toJSONString(list));
|
||||
return getDataTable(list);
|
||||
|
||||
@@ -60,6 +60,11 @@ public class BaseEntity implements Serializable {
|
||||
// 有权限的站点
|
||||
private List<String> stationDeptIds;
|
||||
|
||||
/**
|
||||
* 请求来源, 参见{@link com.jsowell.common.enums.adapay.AdapayPayChannelEnum}
|
||||
*/
|
||||
private String requestSource;
|
||||
|
||||
public String getSearchValue() {
|
||||
return searchValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user