update 修改对接第三方平台的枪口状态

This commit is contained in:
Guoqs
2024-06-17 13:39:50 +08:00
parent 6daf71d813
commit 27c199617e
4 changed files with 21 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;
}