| | |
| | | |
| | | switch (type) { |
| | | case "DOM": |
| | | return "type = 'DOM'"; |
| | | return "a.type = 'DOM'"; |
| | | case "DEM": |
| | | return "type = 'DEM'"; |
| | | return "a.type = 'DEM'"; |
| | | case "Vector": |
| | | return "type = 'Vector'"; |
| | | return "a.type = 'Vector'"; |
| | | case "Model": |
| | | return "type = 'Model'"; |
| | | return "a.type = 'Model'"; |
| | | default: |
| | | throw new Exception("数据类型不匹配"); |
| | | } |
| | |
| | | |
| | | private String updateName; |
| | | |
| | | private String proxy; |
| | | |
| | | public PublishEntity() { |
| | | } |
| | | |
| | |
| | | public void setUpdateName(String updateName) { |
| | | this.updateName = updateName; |
| | | } |
| | | |
| | | public String getProxy() { |
| | | return proxy; |
| | | } |
| | | |
| | | public void setProxy(String proxy) { |
| | | this.proxy = proxy; |
| | | } |
| | | } |
| | |
| | | |
| | | private int flag; |
| | | |
| | | private Integer pubid; |
| | | |
| | | public LayerEntity() { |
| | | } |
| | | |
| | |
| | | public void setFlag(int flag) { |
| | | this.flag = flag; |
| | | } |
| | | |
| | | public Integer getPubid() { |
| | | return pubid; |
| | | } |
| | | |
| | | public void setPubid(Integer pubid) { |
| | | this.pubid = pubid; |
| | | } |
| | | } |
| | |
| | | @Value("${shujian.url}") |
| | | String sjUrl; |
| | | |
| | | @Value("${shujian.ctUrl}") |
| | | String ctUrl; |
| | | |
| | | @Value("${shujian.path}") |
| | | String sjPath; |
| | | |
| | |
| | | */ |
| | | public void selectSjColorTables(Integer pageSize, Integer pageIndex, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | String url = String.format(COLOR_TABLE, sjUrl, ak, pageSize, pageIndex); |
| | | String url = String.format(COLOR_TABLE, ctUrl, ak, pageSize, pageIndex); |
| | | |
| | | HttpHelper httpHelper = new HttpHelper(); |
| | | httpHelper.service(req, res, null, url); |
| | |
| | | ak: ak=mf72ff9295c740ec0f37e61433e8a3ad8d |
| | | url: http://172.16.2.10:50005 |
| | | path: share/YQData/upload/ |
| | | ctUrl: http://172.16.2.10:50001 |
| | | |
| | | # 系统配置 |
| | | sys: |
| | |
| | | </select> |
| | | |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_publish |
| | | select count(*) from lf.sys_publish a |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | and upper(name) like #{name} |
| | | and upper(a.name) like #{name} |
| | | </if> |
| | | <if test="dircode != null"> |
| | | and dirid like #{dircode} |
| | | and a.dirid like #{dircode} |
| | | </if> |
| | | <if test="type != null"> |
| | | and ${type} |
| | |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.moon.server.entity.data.PublishEntity"> |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName |
| | | from lf.sys_publish a |
| | | select ST_AsText(a.geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName, b.proxy |
| | | from lf.sys_publish a left join lf.sys_res b on a.id = b.pubid |
| | | <where> |
| | | 1 = 1 |
| | | <if test="name != null"> |
| | | and upper(name) like #{name} |
| | | and upper(a.name) like #{name} |
| | | </if> |
| | | <if test="dircode != null"> |
| | | and dirid like #{dircode} |
| | | and a.dirid like #{dircode} |
| | | </if> |
| | | <if test="type != null"> |
| | | and ${type} |
| | |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.moon.server.entity.data.PublishEntity"> |
| | | select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName |
| | | from lf.sys_publish a |
| | | where id = #{id} |
| | | select ST_AsText(a.geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName, b.proxy |
| | | from lf.sys_publish a left join lf.sys_res b on a.id = b.pubid |
| | | where a.id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectByIds" resultType="com.moon.server.entity.data.PublishEntity"> |
| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.moon.server.mapper.sys.LayerMapper"> |
| | | <select id="selectLayers" resultType="com.moon.server.entity.sys.LayerEntity"> |
| | | select distinct d.*, e.proxy |
| | | select distinct d.*, e.proxy, e.pubid |
| | | from lf.sys_user a |
| | | inner join lf.sys_role_user b on a.id = b.userid |
| | | inner join lf.sys_role_layer c on b.roleid = c.roleid |