|
|
@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -60,6 +61,13 @@ public class EsmInsCompanyController extends BaseController {
|
|
|
return HttpResult.ok(list);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("getAllTopCompanyList")
|
|
|
+ @Operation(summary = "获取订单报价完成的保险公司")
|
|
|
+ public HttpResult getAllTopCompanyList() {
|
|
|
+ List<EsmInsCompany> list = esmInsCompanyService.getAllBaseList();
|
|
|
+ return HttpResult.ok(list);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询下级保险公司(列表)
|
|
|
*
|
|
|
@@ -155,8 +163,8 @@ public class EsmInsCompanyController extends BaseController {
|
|
|
@Operation(summary = "根据主键查询 替换Logo")
|
|
|
@GetMapping(value = "/findLogoById")
|
|
|
public HttpResult<EsmInsCompany> findLogoById(@RequestParam String id) {
|
|
|
- EsmInsCompany esmInsCompany = esmInsCompanyService.getByCompanyCode(id);
|
|
|
- SysUploadFiles sysUploadFiles = sysUploadFilesMapper.selectById(esmInsCompany.getLogo());
|
|
|
+ EsmInsCompany esmInsCompany = esmInsCompanyService.getById(id);
|
|
|
+ SysUploadFiles sysUploadFiles = sysUploadFilesMapper.selectById(esmInsCompany.getLogo());
|
|
|
String presignedObjectUrl = MinioUtils.getPresignedObjectUrl(bucketName, sysUploadFiles.getFileName());
|
|
|
esmInsCompany.setLogo(presignedObjectUrl);
|
|
|
return HttpResult.ok(esmInsCompany);
|
|
|
@@ -367,4 +375,12 @@ public class EsmInsCompanyController extends BaseController {
|
|
|
List<EsmInsCompanyResVo> esmInsCompanyList = esmInsCompanyService.findOrderPartnerCompanyList();
|
|
|
return HttpResult.ok(esmInsCompanyList);
|
|
|
}
|
|
|
+
|
|
|
+ @Operation(summary = "根据保险公司id获取保司列表")
|
|
|
+ @GetMapping(value = "/getCompanyByIds")
|
|
|
+ public HttpResult<List<EsmInsCompany>> getCompanyByIds(String ids) {
|
|
|
+ List<String> companyList = Arrays.asList(ids.split(","));
|
|
|
+ List<EsmInsCompany> esmInsCompanyList = esmInsCompanyService.getCompanyByIds(companyList);
|
|
|
+ return HttpResult.ok(esmInsCompanyList);
|
|
|
+ }
|
|
|
}
|