This commit is contained in:
Lemon
2025-07-04 14:41:20 +08:00
parent c6028873fa
commit 5dbb4818f8
2 changed files with 37 additions and 13 deletions

View File

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

View File

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