|
|
@@ -1,6 +1,7 @@
|
|
|
package com.usoftchina.saas.document.controller;
|
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import com.netflix.discovery.converters.Auto;
|
|
|
import com.usoftchina.saas.base.Result;
|
|
|
import com.usoftchina.saas.commons.dto.BatchDealBaseDTO;
|
|
|
import com.usoftchina.saas.commons.dto.ComboDTO;
|
|
|
@@ -9,6 +10,7 @@ import com.usoftchina.saas.commons.dto.ListReqDTO;
|
|
|
import com.usoftchina.saas.document.dto.CustomerFormDTO;
|
|
|
import com.usoftchina.saas.document.entities.CustomerList;
|
|
|
import com.usoftchina.saas.document.service.CustomerService;
|
|
|
+import com.usoftchina.saas.inquiry.api.SearchUUApi;
|
|
|
import com.usoftchina.saas.page.PageRequest;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -25,6 +27,8 @@ public class CustomerController {
|
|
|
|
|
|
@Autowired
|
|
|
private CustomerService customerService;
|
|
|
+ @Autowired
|
|
|
+ private SearchUUApi searchUUApi;
|
|
|
|
|
|
/**
|
|
|
* 客户资料列表
|
|
|
@@ -180,4 +184,14 @@ public class CustomerController {
|
|
|
customerService.saveToFormal(id, update);
|
|
|
return Result.success();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取客户UU
|
|
|
+ * @param name
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getCustomerUU")
|
|
|
+ public Result getVendorUU(@RequestParam("name") String name){
|
|
|
+ return Result.success(searchUUApi.queryEnterprises(name));
|
|
|
+ }
|
|
|
}
|