|
@@ -4,6 +4,7 @@ package com.ydtech.modules.ins.controller;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
//import com.ydtech.aop.request.MethodLogAnnotation;
|
|
//import com.ydtech.aop.request.MethodLogAnnotation;
|
|
|
import com.ydtech.aop.request.RequestSingleParam;
|
|
import com.ydtech.aop.request.RequestSingleParam;
|
|
|
|
|
+import com.ydtech.constants.enums.dict.InsOrderStatusEnum;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.exception.SystemException;
|
|
import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.esm.dao.EsmInsAttachInsureDetailsMapper;
|
|
import com.ydtech.modules.esm.dao.EsmInsAttachInsureDetailsMapper;
|
|
@@ -15,7 +16,9 @@ import com.ydtech.modules.ins.model.ya.CarModel_Req;
|
|
|
import com.ydtech.modules.ins.model.yc.CallBackRequest;
|
|
import com.ydtech.modules.ins.model.yc.CallBackRequest;
|
|
|
import com.ydtech.modules.ins.service.InsAlltrustApiService;
|
|
import com.ydtech.modules.ins.service.InsAlltrustApiService;
|
|
|
import com.ydtech.modules.order.components.InsOrdersComponents;
|
|
import com.ydtech.modules.order.components.InsOrdersComponents;
|
|
|
|
|
+import com.ydtech.modules.order.entity.InsAreaCompany;
|
|
|
import com.ydtech.modules.order.entity.vo.*;
|
|
import com.ydtech.modules.order.entity.vo.*;
|
|
|
|
|
+import com.ydtech.modules.order.service.InsAreaCompanyService;
|
|
|
import com.ydtech.utils.Base64Utils;
|
|
import com.ydtech.utils.Base64Utils;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
@@ -24,6 +27,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import java.time.LocalDate;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -54,6 +58,8 @@ public class InsAlltrustApiController {
|
|
|
EsmInsAttachInsureMapper esmInsAttachInsureMapper;
|
|
EsmInsAttachInsureMapper esmInsAttachInsureMapper;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
EsmInsAttachInsureDetailsMapper esmInsAttachInsureDetailsMapper;
|
|
EsmInsAttachInsureDetailsMapper esmInsAttachInsureDetailsMapper;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ InsAreaCompanyService insAreaCompanyService;
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiResponses({
|
|
@ApiResponses({
|
|
@@ -202,5 +208,25 @@ public class InsAlltrustApiController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/updatePay/{suborderId}")
|
|
|
|
|
+ @ApiOperation(value = "永诚API方式 - 刷新支付链接 通过子订单ID")
|
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
|
+ @ApiImplicitParam(name = "suborderId", value = "子订单ID", required = true, dataType = "String")
|
|
|
|
|
+ })
|
|
|
|
|
+ public HttpResult updatePay(@PathVariable String suborderId) {
|
|
|
|
|
+
|
|
|
|
|
+ LambdaQueryWrapper<InsAreaCompany> lqw = new LambdaQueryWrapper<>();
|
|
|
|
|
+ lqw.eq(InsAreaCompany::getOrderstatus, InsOrderStatusEnum.WAIT_PAY.getCode());
|
|
|
|
|
+ lqw.gt(InsAreaCompany::getAudittime, LocalDate.now().minusDays(1));
|
|
|
|
|
+ List<InsAreaCompany> list = insAreaCompanyService.list(lqw);
|
|
|
|
|
+
|
|
|
|
|
+ list.stream().forEach(a ->{
|
|
|
|
|
+ insYongchengApiService.getPayUrlApi(a);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ return HttpResult.ok("更新成功");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|