| | |
| | | private final static Log log = LogFactory.getLog(DataLibService.class); |
| | | |
| | | /** |
| | | * 查询DB中溢出的单位ID |
| | | * 查询DB中溢出的单位编码 |
| | | */ |
| | | public List<String> selectDbOverflowDep(UserEntity ue, List<String> entities, String wkt) { |
| | | List<String> rs = new ArrayList<>(); |
| | |
| | | |
| | | List<String> ids = baseMapper.selectObjs(wrapper); |
| | | |
| | | addDepIds(rs, ids); |
| | | addDepCodes(rs, ids); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 添加单位ID |
| | | * 添加单位编码 |
| | | */ |
| | | private void addDepIds(List<String> rs, List<String> ids) { |
| | | private void addDepCodes(List<String> rs, List<String> ids) { |
| | | if (null == ids || ids.isEmpty()) { |
| | | return; |
| | | } |
| | |
| | | </select> |
| | | |
| | | <select id="selectBaseType" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |
| | | select cast(id as varchar) "key",name "value" from lf.sys_dir where pid = 1 |
| | | 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(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 ('测量(ESV)', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)') group by name order by name |
| | | </select> |
| | | |
| | | <select id="selectProject" resultType="com.lf.server.entity.ctrl.KeyValueEntity"> |