| | |
| | | st_length( st_geographyfromtext( st_astext( st_intersection( ST_MakeValid(a.geom), ST_MakeValid(b.geom) ) ) ) ) AS acrossLength; |
| | | ---------------------------------------------------------------------------------------------- -1.SQL测试 |
| | | update bs.s_survey_information set workname='汉江穿越' where gid=1; |
| | | select * from bs.s_explorationpoint where upper(exppointid) like '%XK0%'; |
| | | |
| | | select * from bd.b_pac_geologic_hazard where gid=2; |
| | | select * from bd.b_pac_regional_geology where gid=2; |
| | | select photono from bs.s_explorationpoint; |
| | | select * from lf.sys_attach where tab='lf.sys_style'; |
| | | select * from lf.sys_attach order by tab,tab_guid; |
| | | |
| | | select * from bs.s_explorationpoint where upper(exppointid) like '%XK0%'; |
| | | select * from bs.s_survey_information; --勘察信息表,汉江穿越 |
| | | alter table bs.s_survey_information add column workname varchar(50); |
| | | update bs.s_survey_information set workname='汉江穿越' where gid=1; |
| | |
| | | |
| | | select * from lf.sys_download order by id desc; |
| | | select * from lf.sys_layer where url is not null and serve_type='WMS' and data_type in ('工程项目','工程项目-地灾类','工程项目-测量类','工程项目-洞库类','工程项目-勘察类') order by id; |
| | | select * from lf.sys_layer order by id desc limit 20; |
| | | insert into lf.sys_layer (pid,cn_name,en_name,url,type,level,order_num,is_show,create_user,serve_type,data_type,elev) values |
| | | (423, '地面层', 'fushun_site', 'tileset/o/39HBFG/tileset.json', 2, 3, 5, 0, 1, 'Tileset', '工程测量模型', 1200); |
| | | update lf.sys_layer set elev=118,cn_name='地面层' where id=427; |
| | | delete from lf.sys_layer where id=427; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | select * from bs.th_strategic_channel |
| | | select * from lf.sys_dict where tab='th_strategic_channel' |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据Guid查询模型") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "layerid", value = "图层ID", dataType = "int", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "modelid", value = "模型ID", dataType = "String", paramType = "query", example = "") |
| | | }) |
| | | @GetMapping(value = "/selectModelByGuid") |
| | | public ResponseMsg<ModelEntity> selectModelByGuid(int layerid, String modelid) { |
| | | try { |
| | | ModelEntity entity = modelService.selectModelByGuid(layerid, modelid); |
| | | |
| | | return success(entity); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入一个模型") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ModelEntity", paramType = "body") |
| | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | | * @param layerid 图层ID |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @param layerid 图层ID |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |
| | | public List<ModelEntity> selectByPage(Integer layerid, Integer limit, Integer offset); |
| | |
| | | public ModelEntity selectById(int id); |
| | | |
| | | /** |
| | | * 根据Guid查询模型 |
| | | * |
| | | * @param layerid |
| | | * @param modelid |
| | | * @return |
| | | */ |
| | | public ModelEntity selectModelByGuid(int layerid, String modelid); |
| | | |
| | | /** |
| | | * 插入一条 |
| | | * |
| | | * @param entity |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ModelEntity selectModelByGuid(int layerid, String modelid) { |
| | | return modelMapper.selectModelByGuid(layerid, modelid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insert(ModelEntity entity) { |
| | | return modelMapper.insert(entity); |
| | | } |
| | |
| | | select * from lf.sys_model where id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectModelByGuid" resultType="com.lf.server.entity.show.ModelEntity"> |
| | | select * from lf.sys_model where layerid = #{layerid} and modelid = #{modelid} limit 1; |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.show.ModelEntity"> |
| | | insert into lf.sys_model |
| | | (layerid,modelid,guid,name,type,info,url,icon,create_user,create_time,bak) |