|
@@ -10,10 +10,7 @@ import cn.cslg.pas.domain.ProjectField;
|
|
|
import cn.cslg.pas.domain.SystemDict;
|
|
|
import cn.cslg.pas.domain.Task;
|
|
|
import cn.cslg.pas.mapper.PatentMapper;
|
|
|
-import cn.cslg.pas.service.PatentFieldService;
|
|
|
-import cn.cslg.pas.service.PatentService;
|
|
|
-import cn.cslg.pas.service.SystemDictService;
|
|
|
-import cn.cslg.pas.service.TaskService;
|
|
|
+import cn.cslg.pas.service.*;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -23,6 +20,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -41,6 +39,7 @@ public class SystemController {
|
|
|
private final SystemDictService systemDictService;
|
|
|
private final PatentService patentService;
|
|
|
private final PatentFieldService patentFieldService;
|
|
|
+ private final ClientService clientService;
|
|
|
@PostMapping("dict")
|
|
|
@Operation(summary = "根据类型获得字典")
|
|
|
public String getPageList(@RequestBody List<String> dicts) {
|
|
@@ -79,6 +78,11 @@ public class SystemController {
|
|
|
public String getFieldList(Integer projectId) {
|
|
|
return Response.success(patentFieldService.getPageList(projectId));
|
|
|
}
|
|
|
+ @PostMapping("getClientsByIds")
|
|
|
+ @Operation(summary = "根据客户Id获得客户")
|
|
|
+ public List<Map<String, Object>> getAllClient(@RequestBody List<Integer> ids) {
|
|
|
+ return clientService.getClientName(ids);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|