|
|
@@ -31,7 +31,6 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -175,10 +174,12 @@ public class InsOrdersController extends BaseController {
|
|
|
.list();
|
|
|
|
|
|
List<String> insAreaCompanyIdList = insAreaCompanies.stream().map(InsAreaCompany::getId).collect(Collectors.toList());
|
|
|
- if (!insAreaCompanyIdList.isEmpty()) {
|
|
|
+ List<InsAreaCompanyHistoryVo> collect = new ArrayList<>();
|
|
|
+ if(!insAreaCompanyIdList.isEmpty()) {
|
|
|
List<InsFeeOrderNew> list = insFeeOrderNewService.lambdaQuery().in(InsFeeOrderNew::getInsOrderNo, insAreaCompanyIdList).list();
|
|
|
Map<String, InsFeeOrderNew> insFeeOrderNewMap = list.stream().collect(Collectors.toMap(InsFeeOrderNew::getInsOrderNo, x -> x));
|
|
|
- List<InsAreaCompanyHistoryVo> collect = insAreaCompanies.stream().map(a -> {
|
|
|
+
|
|
|
+ collect = insAreaCompanies.stream().map(a -> {
|
|
|
InsAreaCompanyHistoryVo insAreaCompanyHistoryVo = new InsAreaCompanyHistoryVo();
|
|
|
BeanUtils.copyProperties(a, insAreaCompanyHistoryVo);
|
|
|
insAreaCompanyHistoryVo.setLicenseno(insOrders.getLicenseno());
|
|
|
@@ -202,10 +203,8 @@ public class InsOrdersController extends BaseController {
|
|
|
insAreaCompanyHistoryVo.setRatingInformation();
|
|
|
return insAreaCompanyHistoryVo;
|
|
|
}).collect(Collectors.toList());
|
|
|
-
|
|
|
- return HttpResult.ok("success", collect);
|
|
|
}
|
|
|
- return HttpResult.ok("", Collections.emptyList());
|
|
|
+ return HttpResult.ok("success", collect);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getByCompanyId")
|
|
|
@@ -520,15 +519,15 @@ public class InsOrdersController extends BaseController {
|
|
|
|
|
|
@PostMapping("/queryLicenseInOrder")
|
|
|
@ApiOperation(value = "查询订单中的车牌")
|
|
|
- public HttpResult<List<String>> queryLicenseInOrder(@RequestBody QueryLicenseInOrderVo queryLicenseInOrderVo) {
|
|
|
- List<String> licenseList = insOrdersService.queryLicenseInOrder(queryLicenseInOrderVo);
|
|
|
+ public HttpResult<List<String>> queryLicenseInOrder(@RequestBody QueryLicenseInOrderVo queryLicenseInOrderVo){
|
|
|
+ List<String> licenseList = insOrdersService.queryLicenseInOrder(queryLicenseInOrderVo);
|
|
|
return HttpResult.ok(licenseList);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/queryInsuredInOrder")
|
|
|
@ApiOperation(value = "查询订单中的被保人")
|
|
|
- public HttpResult<List<String>> queryInsuredInOrder(@RequestBody QueryLicenseInOrderVo queryInsuredInOrderVo) {
|
|
|
- List<String> insured = insOrdersService.queryInsuredInOrder(queryInsuredInOrderVo);
|
|
|
+ public HttpResult<List<String>> queryInsuredInOrder(@RequestBody QueryLicenseInOrderVo queryInsuredInOrderVo){
|
|
|
+ List<String> insured = insOrdersService.queryInsuredInOrder(queryInsuredInOrderVo);
|
|
|
return HttpResult.ok(insured);
|
|
|
}
|
|
|
|