| | |
| | | import com.dji.sample.patches.service.PatchesService; |
| | | import com.github.pagehelper.Page; |
| | | import com.github.pagehelper.PageHelper; |
| | | import org.opengis.geometry.coordinate.Polygon; |
| | | import lombok.NoArgsConstructor; |
| | | import org.locationtech.jts.geom.Geometry; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.geo.Polygon; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.sql.Array; |
| | | import java.util.List; |
| | | @Service |
| | | public class PatchesServiceImpl implements PatchesService { |
| | |
| | | private PatchesMapper mapper; |
| | | |
| | | @Override |
| | | public PageBean limitGet(Integer id, String bsm, Polygon dkfw, String dklx, int page, int pageSize) { |
| | | public PageBean limitGet(Integer id, String dkbh, String dkfw,int page, int pageSize) { |
| | | |
| | | //1. 设置分页参数 |
| | | PageHelper.startPage(page,pageSize); |
| | | |
| | | //2. 执行查询 |
| | | List<PatchesEntity> PatchersList = mapper.limitGet(id,bsm,dkfw,dklx); |
| | | List<PatchesEntity> PatchersList = mapper.limitGet(id,dkbh,dkfw); |
| | | com.github.pagehelper.Page<PatchesEntity> p = (Page<PatchesEntity>) PatchersList; |
| | | |
| | | //3. 封装PageBean对象 |