mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -57,6 +57,7 @@ import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
@@ -878,10 +879,19 @@ public class ChangZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
OrderBasicInfo orderBasicInfo = orderBasicInfoService.getOrderInfoByOrderCode(orderCode);
|
||||
if (orderBasicInfo == null) {
|
||||
SuccStat = 1;
|
||||
}else {
|
||||
//调用推送订单信息
|
||||
CompletableFuture.runAsync(() -> {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
notificationChargeOrderInfo(orderCode , thirdPartySecretInfoVO);
|
||||
} catch (Exception e) {
|
||||
log.error("订单:{} 推送error, ", orderCode, e);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
map.put("SuccStat", SuccStat);
|
||||
//调用推送订单信息
|
||||
notificationChargeOrderInfo(orderCode, thirdPartySecretInfoVO);
|
||||
|
||||
return ThirdPartyPlatformUtils.generateResultMap(map, thirdPartySecretInfoVO);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user