xieb
2024-03-23 5991b5daefc60b66b6d981df5e9db2a5786b79cb
src/main/java/com/dji/sample/patches/service/impl/PatchesServiceImpl.java
@@ -6,10 +6,13 @@
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 {
@@ -17,13 +20,13 @@
    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 bsm, String tuban, String dklx, 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,bsm,tuban,dklx);
        com.github.pagehelper.Page<PatchesEntity> p = (Page<PatchesEntity>) PatchersList;
        //3. 封装PageBean对象