| | |
| | | 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; |
| | | |
| | |
| | | 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); |
| | |
| | | } |
| | | |
| | | 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); |
| | | } |
| | | } |