|
@@ -52,6 +52,8 @@ import org.springframework.data.redis.core.StringRedisTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
|
+import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -340,6 +342,11 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
|
|
|
if (status.equals(String.valueOf(PaymentStatusEnum.P_2.getCode()))) {
|
|
if (status.equals(String.valueOf(PaymentStatusEnum.P_2.getCode()))) {
|
|
|
insAreaCompany.setJqpolicyno(orderStatusResponse.getSubContractNoJ());
|
|
insAreaCompany.setJqpolicyno(orderStatusResponse.getSubContractNoJ());
|
|
|
insAreaCompany.setSypolicyno(orderStatusResponse.getSubContractNoS());
|
|
insAreaCompany.setSypolicyno(orderStatusResponse.getSubContractNoS());
|
|
|
|
|
+ String payDate = orderStatusResponse.getPayDate();
|
|
|
|
|
+
|
|
|
|
|
+ if (StringUtils.isNotEmpty(payDate)) {
|
|
|
|
|
+ insAreaCompany.setPayDate(LocalDateTime.parse(payDate, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
|
|
|
|
|
+ }
|
|
|
// insAreaCompany.setJypolicyno(orderStatusResponse.getAccidentNo());
|
|
// insAreaCompany.setJypolicyno(orderStatusResponse.getAccidentNo());
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|