mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 03:09:48 +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.service.ThirdPartyPlatformConfigService;
|
||||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||||
import com.jsowell.thirdparty.lianlian.common.CommonResult;
|
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.service.ThirdPartyPlatformService;
|
||||||
import com.jsowell.thirdparty.platform.util.Cryptos;
|
import com.jsowell.thirdparty.platform.util.Cryptos;
|
||||||
import com.jsowell.thirdparty.platform.util.Encodes;
|
import com.jsowell.thirdparty.platform.util.Encodes;
|
||||||
@@ -189,17 +191,37 @@ public class QingHaiController extends ThirdPartyBaseController {
|
|||||||
* @param orderCode
|
* @param orderCode
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
// @GetMapping("/pushOrderInfo/{orderCode}")
|
@GetMapping("/pushOrderInfo/{orderCode}")
|
||||||
// public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
|
public RestApiResponse<?> pushOrderInfo(@PathVariable("orderCode") String orderCode) {
|
||||||
// RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
// try {
|
try {
|
||||||
// String result = qingHaiPlatformServiceImpl.notificationChargeOrderInfo(orderCode);
|
String result = platformLogic.notificationChargeOrderInfo(orderCode);
|
||||||
// response = new RestApiResponse<>(result);
|
response = new RestApiResponse<>(result);
|
||||||
// }catch (Exception e) {
|
}catch (Exception e) {
|
||||||
// logger.error("青海平台推送订单信息 error", e);
|
logger.error("青海平台推送订单信息 error", e);
|
||||||
// }
|
}
|
||||||
// logger.info("青海平台推送订单信息 result:{}", response);
|
logger.info("青海平台推送订单信息 result:{}", response);
|
||||||
// return 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.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送订单DTO
|
* 推送订单DTO
|
||||||
*
|
*
|
||||||
@@ -18,7 +20,7 @@ import lombok.NoArgsConstructor;
|
|||||||
public class PushOrderDTO {
|
public class PushOrderDTO {
|
||||||
private String thirdPartyType;
|
private String thirdPartyType;
|
||||||
|
|
||||||
private String orderCodeList;
|
private List<String> orderCodeList;
|
||||||
|
|
||||||
private String startTime;
|
private String startTime;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user