| | |
| | | select (select string_agg(cast(id as varchar),',') from lf.sys_dir where name = a.name) "key",name "value" from lf.sys_dir a |
| | | where name in ('测量(ESV)','勘察(EGE)','地灾(EGD)','洞库(EGD)') group by name order by name; |
| | | |
| | | select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value" |
| | | from lf.sys_dir a |
| | | where name in ('DOM', 'DEM', 'DRG', 'DLG', '测量(ESV)', 'OSM数据', '基础地灾', '基础勘察', '合规数据', '管理数据', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)') |
| | | group by name |
| | | order by key |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询基础地理类别") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "D") |
| | | }) |
| | | @GetMapping(value = "/selectBaseType") |
| | | public ResponseMsg<Object> selectBaseType() { |
| | | public ResponseMsg<Object> selectDirTypes(String name) { |
| | | try { |
| | | List<KeyValueEntity> list = baseQueryService.selectBaseType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询业务类别") |
| | | @GetMapping(value = "/selectBusinessType") |
| | | public ResponseMsg<Object> selectBusinessType() { |
| | | try { |
| | | List<KeyValueEntity> list = baseQueryService.selectBusinessType(); |
| | | List<KeyValueEntity> list = baseQueryService.selectDirTypes(name); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | public List<KeyValueEntity> selectLocation(String wkt); |
| | | |
| | | /** |
| | | * 查询基础地理类别 |
| | | * 查询目录类别 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public List<KeyValueEntity> selectBaseType(); |
| | | |
| | | /** |
| | | * 查询业务类别 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<KeyValueEntity> selectBusinessType(); |
| | | public List<KeyValueEntity> selectDirTypes(String name); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<KeyValueEntity> selectBaseType() { |
| | | return baseQueryMapper.selectBaseType(); |
| | | } |
| | | public List<KeyValueEntity> selectDirTypes(String name) { |
| | | name = StringHelper.getLikeStr(name); |
| | | |
| | | @Override |
| | | public List<KeyValueEntity> selectBusinessType() { |
| | | return baseQueryMapper.selectBusinessType(); |
| | | return baseQueryMapper.selectDirTypes(name); |
| | | } |
| | | } |
| | |
| | | union all |
| | | select '县' "key", cname "value" from bs.th_county_area where ST_Intersects(ST_PointFromText(#{wkt}, 4490), geom); |
| | | </select> |
| | | |
| | | <select id="selectBaseType" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |
| | | select code "key", name "value" from lf.sys_dir where pid = 1 |
| | | </select> |
| | | |
| | | <select id="selectBusinessType" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |
| | | select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value" from lf.sys_dir a |
| | | where name in ('测量(ESV)', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)') group by name order by name |
| | | <select id="selectDirTypes" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |
| | | select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value" |
| | | from lf.sys_dir a |
| | | <where> |
| | | name in ('DOM', 'DEM', 'DRG', 'DLG', '测量(ESV)', 'OSM数据', '基础地灾', '基础勘察', '合规数据', '管理数据', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)') |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | </if> |
| | | </where> |
| | | group by name |
| | | order by key |
| | | </select> |
| | | </mapper> |