|  | @ -4,9 +4,9 @@ package com.yihu.jw.base.endpoint.searchClient;
 | 
												
													
														
															|  | import com.fasterxml.jackson.databind.ObjectMapper;
 |  | import com.fasterxml.jackson.databind.ObjectMapper;
 | 
												
													
														
															|  | import com.fasterxml.jackson.databind.node.ObjectNode;
 |  | import com.fasterxml.jackson.databind.node.ObjectNode;
 | 
												
													
														
															|  | import com.yihu.fastdfs.FastDFSUtil;
 |  | import com.yihu.fastdfs.FastDFSUtil;
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.base.aop.ClientSearchRequestLimit;
 | 
												
													
														
															|  | import com.yihu.jw.base.service.clientSearch.ClientSearchService;
 |  | import com.yihu.jw.base.service.clientSearch.ClientSearchService;
 | 
												
													
														
															|  | import com.yihu.jw.entity.base.searchClient.BaseSearchNoveltyRepeatDO;
 |  | import com.yihu.jw.entity.base.searchClient.BaseSearchNoveltyRepeatDO;
 | 
												
													
														
															|  | import com.yihu.jw.entity.base.searchClient.FileResourceVO;
 |  | 
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.Envelop;
 |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.ObjEnvelop;
 |  | import com.yihu.jw.restmodel.web.ObjEnvelop;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
												
											
												
													
														
															|  | @ -42,6 +42,7 @@ public class ClientSearchEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @PostMapping(value = BaseRequestMapping.ClientSearch.CREATE)
 |  |     @PostMapping(value = BaseRequestMapping.ClientSearch.CREATE)
 | 
												
													
														
															|  |     @ApiOperation(value = "保存查新查重服务")
 |  |     @ApiOperation(value = "保存查新查重服务")
 | 
												
													
														
															|  | 
 |  |     @ClientSearchRequestLimit(time = 60,count = 2,waits = 10)
 | 
												
													
														
															|  |     public Envelop saveBaseSearchNoveltyRepeat(@ApiParam(name = "jsonData",value = "")
 |  |     public Envelop saveBaseSearchNoveltyRepeat(@ApiParam(name = "jsonData",value = "")
 | 
												
													
														
															|  |                                                @RequestParam(name = "jsonData", required = true) String jsonData) throws Exception{
 |  |                                                @RequestParam(name = "jsonData", required = true) String jsonData) throws Exception{
 | 
												
													
														
															|  |         try{
 |  |         try{
 | 
												
											
												
													
														
															|  | @ -71,6 +72,9 @@ public class ClientSearchEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |     public Envelop findSearchNoveltyRepeatById(@ApiParam(name = "SearchData", value = "查询字段")
 |  |     public Envelop findSearchNoveltyRepeatById(@ApiParam(name = "SearchData", value = "查询字段")
 | 
												
													
														
															|  |                                                @RequestParam(name = "SearchData", required = true) String SearchData) throws Exception{
 |  |                                                @RequestParam(name = "SearchData", required = true) String SearchData) throws Exception{
 | 
												
													
														
															|  |         try{
 |  |         try{
 | 
												
													
														
															|  | 
 |  |             if(SearchData == null || SearchData.trim().length() == 0){
 | 
												
													
														
															|  | 
 |  |                 return failed("输入参数为空,请重新输入");
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  |             List list;
 |  |             List list;
 | 
												
													
														
															|  |             list = clientSearchService.findBySearchData(SearchData);
 |  |             list = clientSearchService.findBySearchData(SearchData);
 | 
												
													
														
															|  |             return success("success",list);
 |  |             return success("success",list);
 | 
												
											
												
													
														
															|  | @ -92,7 +96,7 @@ public class ClientSearchEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |                                                @ApiParam(name = "pageSize", value = "每页分页大小", required = true, defaultValue = "10")
 |  |                                                @ApiParam(name = "pageSize", value = "每页分页大小", required = true, defaultValue = "10")
 | 
												
													
														
															|  |                                                @RequestParam(value = "pageSize", required = true,defaultValue = "10")Integer pageSize) throws Exception{
 |  |                                                @RequestParam(value = "pageSize", required = true,defaultValue = "10")Integer pageSize) throws Exception{
 | 
												
													
														
															|  |         try{
 |  |         try{
 | 
												
													
														
															|  |             List<BaseSearchNoveltyRepeatDO> list = clientSearchService.search(fields,filters,sorts,page,pageSize);
 |  | 
 | 
												
													
														
															|  | 
 |  |             List<BaseSearchNoveltyRepeatDO> list = clientSearchService.search(fields,filters,"-createTime",page,pageSize);
 | 
												
													
														
															|  |             int count = (int) clientSearchService.getCount(filters);
 |  |             int count = (int) clientSearchService.getCount(filters);
 | 
												
													
														
															|  |             return success("success",200,list,count,page,pageSize);
 |  |             return success("success",200,list,count,page,pageSize);
 | 
												
													
														
															|  |         }catch (Exception e){
 |  |         }catch (Exception e){
 |