|
|
@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@Tag(name="方案管理")
|
|
|
@RestController
|
|
|
@@ -94,6 +95,16 @@ public class SchemeController {
|
|
|
return HttpResult.ok(ptlAgreementInsCompanyVos);
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "规则过滤保险公司")
|
|
|
+ @PostMapping("/ruleFilterCompanyApp")
|
|
|
+ public HttpResult<List<PtlAgreementInsCompanyVo>> ruleFilterCompanyApp(@RequestBody SchemeRuleFilterVo schemeRuleFilterVo){
|
|
|
+ List<PtlAgreementInsCompanyVo> ptlAgreementInsCompanyVos = ptlSchemeService.ruleFilterCompany(schemeRuleFilterVo);
|
|
|
+ List<PtlAgreementInsCompanyVo> ptlAgreementInsCompanyVosNew = ptlAgreementInsCompanyVos.stream()
|
|
|
+ .filter(x -> x.getDispatchAgreementId() != null && !x.getDispatchAgreementId().equals(""))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ return HttpResult.ok(ptlAgreementInsCompanyVosNew);
|
|
|
+ }
|
|
|
+
|
|
|
@Operation(summary = "获取方案结果")
|
|
|
@GetMapping("/getSchemeResult")
|
|
|
public HttpResult getSchemeResult(String companyId,String productId,String seatCount){
|