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