mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-07 03:20:06 +08:00
update
This commit is contained in:
@@ -16,6 +16,8 @@ import com.jsowell.pile.dto.ningxiajiaotou.NXJTQueryStationInfoDTO;
|
||||
import com.jsowell.pile.service.ThirdPartyPlatformConfigService;
|
||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||
import com.jsowell.thirdparty.lianlian.common.CommonResult;
|
||||
import com.jsowell.thirdparty.platform.dto.PushOrderDTO;
|
||||
import com.jsowell.thirdparty.platform.dto.QueryOrderDTO;
|
||||
import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService;
|
||||
import com.jsowell.thirdparty.platform.util.Cryptos;
|
||||
import com.jsowell.thirdparty.platform.util.Encodes;
|
||||
@@ -189,17 +191,37 @@ public class QingHaiController extends ThirdPartyBaseController {
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
// @GetMapping("/pushOrderInfo/{orderCode}")
|
||||
// public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
|
||||
// RestApiResponse<?> response = null;
|
||||
// try {
|
||||
// String result = qingHaiPlatformServiceImpl.notificationChargeOrderInfo(orderCode);
|
||||
// response = new RestApiResponse<>(result);
|
||||
// }catch (Exception e) {
|
||||
// logger.error("青海平台推送订单信息 error", e);
|
||||
// }
|
||||
// logger.info("青海平台推送订单信息 result:{}", response);
|
||||
// return response;
|
||||
// }
|
||||
@GetMapping("/pushOrderInfo/{orderCode}")
|
||||
public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
String result = platformLogic.notificationChargeOrderInfo(orderCode);
|
||||
response = new RestApiResponse<>(result);
|
||||
}catch (Exception e) {
|
||||
logger.error("青海平台推送订单信息 error", e);
|
||||
}
|
||||
logger.info("青海平台推送订单信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
@PostMapping("/pushOrdersInfo")
|
||||
public RestApiResponse<?> pushOrdersInfo(@RequestBody PushOrderDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
List<String> orderCodeList = dto.getOrderCodeList();
|
||||
orderCodeList.forEach(orderCode -> {
|
||||
try {
|
||||
platformLogic.notificationChargeOrderInfo(orderCode);
|
||||
} catch (Exception e) {
|
||||
logger.error("青海平台推送订单信息 error", e);
|
||||
}
|
||||
});
|
||||
response = new RestApiResponse<>();
|
||||
}catch (Exception e) {
|
||||
logger.error("青海平台推送订单信息 error", e);
|
||||
}
|
||||
logger.info("青海平台推送订单信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,8 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 推送订单DTO
|
||||
*
|
||||
@@ -18,7 +20,7 @@ import lombok.NoArgsConstructor;
|
||||
public class PushOrderDTO {
|
||||
private String thirdPartyType;
|
||||
|
||||
private String orderCodeList;
|
||||
private List<String> orderCodeList;
|
||||
|
||||
private String startTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user