| | |
| | | delete from lf.sys_meta where id > 150; |
| | | delete from lf.sys_meta_file where metaid > 150; |
| | | |
| | | select * from lf.sys_dir; |
| | | select * from lf.sys_meta_new; |
| | | insert into lf.sys_meta_new (name,dirid) values ('项目WBS导出.xlsx',57); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101 封面.docx',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwg',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwl',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwl2',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越纵断面图)0.dwg',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-IN-0101(资料图纸目录).doc',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('1类.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('2类.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('易燃易爆.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('地面线.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('控制点.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('离散点.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('平面图索引文件.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('中线成果表.xlsx',64); |
| | | |
| | | update lf.sys_meta_new set depid=1,type='file',path='2\'||name,sizes=1; |
| | | |
| | | with rs as (select id from lf.sys_dir where name='西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)') |
| | | select fn_rec_query(a.dirid,'dir'),a.* from lf.sys_meta_new a where dirid = ANY(fn_rec_array((select id from rs), 'dir')); |
| | | |
| | | |
| | | |
| | | |
| | |
| | | select * from lf.sys_menu where cn_name = '资源审核'; |
| | | update lf.sys_menu set url = 'http://10.7.0.186:88/resm/#/resapproval?embed=true&token=' where cn_name = '资源审核'; |
| | | ------------------------------------------------------ |
| | | select * from lf.sys_menu order by id; |
| | | insert into lf.sys_meta_new (name,dirid) values ('项目WBS导出.xlsx',57); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101 封面.docx',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwg',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwl',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwl2',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越纵断面图)0.dwg',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('00116BT02-CR001#ESV-IN-0101(资料图纸目录).doc',62); |
| | | insert into lf.sys_meta_new (name,dirid) values ('1类.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('2类.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('易燃易爆.gdb.zip',74); |
| | | insert into lf.sys_meta_new (name,dirid) values ('地面线.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('控制点.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('离散点.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('平面图索引文件.xlsx',64); |
| | | insert into lf.sys_meta_new (name,dirid) values ('中线成果表.xlsx',64); |
| | | |
| | | update lf.sys_meta_new set depid=1,type='file',path='2\'||name,sizes=1; |
| | | |
| | | insert into lf.sys_meta_new (name,dirid) values ('S318 洛陕线穿越工程地质剖面图.dwg',80); |
| | | insert into lf.sys_meta_new (name,dirid) values ('地质剖面图索引表.xlsx',80); |
| | | insert into lf.sys_meta_new (name,dirid) values ('地质资料表.xlsx',80); |
| | | insert into lf.sys_meta_new (name,dirid) values ('勘探点坐标表.xlsx',80); |
| | | insert into lf.sys_meta_new (name,dirid) values ('土壤电阻率表.xlsx',80); |
| | | |
| | | update lf.sys_meta_new set depid=1,type='file',path='2\'||name,sizes=1 where path is null; |
| | | |
| | | with rs as (select id from lf.sys_dir where name='西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)') |
| | | select fn_rec_query(a.dirid,'dir'),a.* from lf.sys_meta_new a where dirid = ANY(fn_rec_array((select id from rs), 'dir')); |
| | | |
| | | select * from lf.sys_meta_new where substr(path,1,2) = '2\'; |
| | | ------------------------------------------------------ |
| | | select * from lf.sys_menu order by id; |
| | | select gid from md.md_u_special_evaluation_report; |
| | | select dd from md.md_s_hole_column_diagram; |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | |
| | | import com.lf.server.annotation.SysLog; |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.ctrl.FmeReqEntity; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.service.data.FmeService; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | /*@SysLog() |
| | | @ApiOperation(value = "查询OSGB检查") |
| | | @GetMapping(value = "/selectCheckOsgb") |
| | | public ResponseMsg<Object> selectCheckOsgb(HttpServletRequest req) { |
| | |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | }*/ |
| | | } |
| | |
| | | import com.lf.server.annotation.SysLog; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.all.StaticData; |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.entity.data.*; |
| | | import com.lf.server.entity.sys.DepEntity; |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询项目名称") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject() { |
| | | try { |
| | | List<IdNameEntity> list = uploadService.selectProject(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询所有表") |
| | | @GetMapping(value = "/selectTabs") |
| | | public ResponseMsg<List<TabEntity>> selectTabs() { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "上传文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadFiles") |
| | | public ResponseMsg<Object> uploadFiles(String path, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | List<MetaEntity> list = baseUploadService.uploadData(null, path, req, res); |
| | | if (null == list || list.isEmpty()) { |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询映射") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query") |
| | |
| | | dataLoaderService.insertFiles(me, entity.getFileEntities(), entity.getTabEntities()); |
| | | |
| | | return success("成功", entity.getTabEntities()); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "上传文件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadFiles") |
| | | public ResponseMsg<Object> uploadFiles(String path, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue == null) { |
| | | return fail("用户未登录", null); |
| | | } |
| | | |
| | | List<MetaEntity> list = baseUploadService.uploadData(null, path, req, res); |
| | | if (null == list || list.isEmpty()) { |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | |
| | | package com.lf.server.mapper.data; |
| | | |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.data.CoordEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | |
| | | * @return |
| | | */ |
| | | public List<CoordEntity> selectCoords(String zoning); |
| | | |
| | | /** |
| | | * 查询项目名称 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<IdNameEntity> selectProject(); |
| | | } |
| | |
| | | package com.lf.server.service.data; |
| | | |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.data.CoordEntity; |
| | | import com.lf.server.mapper.data.UploadMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public List<CoordEntity> selectCoords(String zoning) { |
| | | return uploadMapper.selectCoords(zoning); |
| | | } |
| | | |
| | | @Override |
| | | public List<IdNameEntity> selectProject() { |
| | | return uploadMapper.selectProject(); |
| | | } |
| | | } |
| | |
| | | </where> |
| | | order by id |
| | | </select> |
| | | |
| | | <select id="selectProject" resultType="com.lf.server.entity.ctrl.IdNameEntity"> |
| | | select id, name from lf.sys_dir where pid = 0 and id > 0 |
| | | </select> |
| | | </mapper> |