| | |
| | | select * from lf.sys_meta order by id desc; |
| | | select depcode from lf.sys_meta where id in (1393,1392,1383,1382) and depcode not like '000305%' group by depcode order by depcode; |
| | | select * from lf.sys_user where id=1 |
| | | select * from lf.sys_meta where id in (1393,1392,1383,1382) |
| | | -- tabs=元数据表,entities=sysmeta,gids=1393,1392,1383,1382 |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | public static final int I2050 = 2050; |
| | | |
| | | public static final int I4490 = 4490; |
| | | |
| | | /** |
| | | * 字符1 |
| | | */ |
| | |
| | | wkt = AesHelper.decrypt(wkt); |
| | | |
| | | Integer srid = getSrid((GeomBaseMapper) basicMapper); |
| | | if (null != srid) { |
| | | wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", wkt, srid)); |
| | | } |
| | | wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", wkt, srid)); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | Integer srid = basicMapper.selectSrid(tab); |
| | | if (srid != null) { |
| | | redisService.put(key, srid, 5, TimeUnit.MINUTES); |
| | | if (null == srid) { |
| | | return StaticData.I4490; |
| | | } |
| | | redisService.put(key, srid, 5, TimeUnit.MINUTES); |
| | | |
| | | return srid; |
| | | } |
| | |
| | | */ |
| | | public void addBufferWrapper(GeomBaseMapper baseMapper, QueryWrapper wrapper, String wkt, double buffer) { |
| | | Integer srid = getSrid(baseMapper); |
| | | if (null == srid) { |
| | | srid = 4490; |
| | | } |
| | | // buffer = buffer * 0.00000899928 |
| | | buffer = buffer / 1852 / 60; |
| | | |
| | |
| | | |
| | | QueryWrapper wrapper = getWrapper4DbOverflow(ue, dr); |
| | | Integer srid = baseQueryService.getSrid(baseMapper); |
| | | if (null != srid) { |
| | | wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", dr.getWkt(), srid)); |
| | | } |
| | | wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", dr.getWkt(), srid)); |
| | | |
| | | List<String> ids = baseMapper.selectObjs(wrapper); |
| | | addDepCodes(rs, ids); |
| | |
| | | // wrapper.apply(String.format("depid like '%s'", StringHelper.getRightLike(dr.getDepcode()))) |
| | | wrapper.likeRight("depid", dr.getDepcode()); |
| | | } |
| | | if (baseMapper instanceof GeomBaseMapper && !StringHelper.isEmpty(dr.getWkt())) { |
| | | if (baseMapper instanceof GeomBaseMapper) { |
| | | wrapper.select("ST_AsText(geom) as geom, *"); |
| | | Integer srid = baseQueryService.getSrid((GeomBaseMapper) baseMapper); |
| | | if (null != srid) { |
| | | if (!StringHelper.isEmpty(dr.getWkt())) { |
| | | Integer srid = baseQueryService.getSrid((GeomBaseMapper) baseMapper); |
| | | wrapper.apply(String.format("ST_Intersects(ST_PolygonFromText('%s', %d), geom)", dr.getWkt(), srid)); |
| | | } |
| | | } |
| | |
| | | host: 127.0.0.1 |
| | | port: 6369 |
| | | password: rediS_5L#F4_Server |
| | | timeout: 30000 # 连接超时时长(毫秒) |
| | | timeout: 90000 # 连接超时时长(毫秒) |
| | | pool: |
| | | max-active: 1000 # 连接池最大连接数(使用负值表示没有限制) |
| | | max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) |
| | |
| | | name: prod |
| | | # JDBC 基本配置 ¤tSchema=public |
| | | #url: jdbc:postgresql://103.85.165.99:5433/langfang?useAffectedRows=true |
| | | url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true |
| | | #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true |
| | | #url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true |
| | | url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true |
| | | username : postgres |
| | | password: Postgres!_14_Lf |
| | | #password: postgres |
| | | #password: Postgres!_14_Lf |
| | | password: postgres |
| | | driver-class-name: org.postgresql.Driver |
| | | paltform: POSTGRESQL |
| | | type: com.alibaba.druid.pool.DruidDataSource |