|
@@ -194,7 +194,7 @@ public class PatentStarApiService {
|
|
|
// });
|
|
|
// }
|
|
|
|
|
|
- public Map<String, Object> patentStarSearchLocal(PatentStarListDTO patentStarListDTO) throws IOException {
|
|
|
+ public Records patentStarSearchLocal(PatentStarListDTO patentStarListDTO) throws IOException {
|
|
|
RetrieveRecord retrieveRecord = new RetrieveRecord();
|
|
|
retrieveRecord.setConditions(patentStarListDTO.getCurrentQuery());
|
|
|
|
|
@@ -224,15 +224,13 @@ public class PatentStarApiService {
|
|
|
// else {
|
|
|
// retrieveRecord.updateById();
|
|
|
// }
|
|
|
- map.put("retrieveRecordId", retrieveRecord.getId());
|
|
|
Records records = new Records();
|
|
|
+ records.setRetrieveRecordId(retrieveRecord.getId());
|
|
|
records.setCurrent((Long) map.get("current"));
|
|
|
records.setSize((Long) map.get("size"));
|
|
|
records.setData(map.get("records"));
|
|
|
records.setTotal((Long) map.get("total"));
|
|
|
- map.put("records", records);
|
|
|
- return map;
|
|
|
-
|
|
|
+ return records;
|
|
|
}
|
|
|
|
|
|
|