管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-10-29 1b603d3b281d022baed62967d7d7eba63b454ec2
src/main/java/com/lf/server/service/show/LocateService.java
@@ -6,6 +6,7 @@
import com.lf.server.entity.bd.DlgAgnpEntity;
import com.lf.server.helper.StringHelper;
import com.lf.server.mapper.bd.DlgAgnpMapper;
import com.lf.server.service.all.BaseQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -17,6 +18,9 @@
public class LocateService {
    @Autowired
    DlgAgnpMapper dlgAgnpMapper;
    @Autowired
    BaseQueryService baseQueryService;
    public Page<DlgAgnpEntity> selectAddrByPage(String name, Integer pageSize, Integer pageIndex) {
        Page<DlgAgnpEntity> paging = new Page<>(pageIndex, pageSize);
@@ -32,6 +36,11 @@
    }
    public String selectWktById(Integer id) {
        return dlgAgnpMapper.selectWktById(id);
        String tab = baseQueryService.getTabName(dlgAgnpMapper);
        if (StringHelper.isNull(tab)) {
            return null;
        }
        return dlgAgnpMapper.selectWktById(tab, id);
    }
}