|
@@ -26,6 +26,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.poi.hssf.usermodel.*;
|
|
|
import org.apache.poi.hssf.util.HSSFColor;
|
|
|
import org.apache.poi.ss.usermodel.*;
|
|
@@ -1324,8 +1325,29 @@ public String getComPantentNos(PatentVO params){
|
|
|
|
|
|
return Response.success(patentNos);
|
|
|
}
|
|
|
- public String getPagination(List<String> list){
|
|
|
- return null;
|
|
|
+ public String getPagination(List<String> list,int location){
|
|
|
+
|
|
|
+ int totalNumber=patentMapper.getPatentNumber(list);
|
|
|
+ if(location>totalNumber){
|
|
|
+ location=totalNumber;
|
|
|
+ }
|
|
|
+ int n=location-2;
|
|
|
+ if(n<0){
|
|
|
+ n=0;
|
|
|
+ }
|
|
|
+ int p=3;
|
|
|
+ List<Patent> patent = patentMapper.getPatent(list, n, p);
|
|
|
+ int front=location-1;
|
|
|
+ int behind=totalNumber-location;
|
|
|
+ Map map=new HashMap();
|
|
|
+ map.put("frontNumber",front);
|
|
|
+ map.put("behindNumber",behind);
|
|
|
+ map.put("totalNumber",totalNumber);
|
|
|
+ map.put("Patent",patent);
|
|
|
+ return Response.success(map);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|