| | |
| | | } |
| | | |
| | | @Override |
| | | public List<MetaEntity> selectGdbByGuid(String guid) { |
| | | return metaMapper.selectGdbByGuid(guid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectMetasForCount(String depcode, String dirs, String name) { |
| | | depcode = StringHelper.getRightLike(depcode); |
| | | name = StringHelper.getLikeUpperStr(name); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public MetaEntity selectByGuid(String guid, String tab) { |
| | | return metaMapper.selectByGuid(guid, tab); |
| | | public MetaEntity selectByGuid(String guid, String dircode, String tab) { |
| | | return metaMapper.selectByGuid(guid, dircode, tab); |
| | | } |
| | | |
| | | @Override |
| | |
| | | if (str.contains("bs.s_explorationpoint ")) { |
| | | list.add(str.replace("bs.s_explorationpoint ", "bs.s_surveyworksite ")); |
| | | } |
| | | if (str.contains("bs.m_surface_deformation_data ")) { |
| | | list.add(str.replace("bs.m_surface_deformation_data ", "bs.m_surface_deformation_data_date ")); |
| | | } |
| | | |
| | | i++; |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | MetaEntity me = selectByGuid(guid, null); |
| | | MetaEntity me = selectByGuid(guid, null, null); |
| | | if (me == null) { |
| | | WebHelper.writeStr2Page(res, StaticData.NO_FILE); |
| | | return; |
| | |
| | | case StaticData.MPT: |
| | | addMultiFile(uploadPath, mf, zip, params, StaticData.MPT_EXT); |
| | | break; |
| | | case StaticData.JPG: |
| | | addMultiFile(uploadPath, mf, zip, params, StaticData.JPG_EXT); |
| | | break; |
| | | case StaticData.IMG: |
| | | addMultiFile(uploadPath, mf, zip, params, StaticData.IMG_EXT); |
| | | break; |
| | |
| | | addMultiFile(uploadPath, mf, zip, params, StaticData.SHP_EXT); |
| | | break; |
| | | case StaticData.GDB: |
| | | continue; |
| | | case StaticData.OSGB: |
| | | addFolderFile(uploadPath, mf, zip, params); |
| | | break; |
| | | default: |
| | |
| | | private DownloadEntity getDownloadEntity(UserEntity ue, String file, String pwd) { |
| | | DownloadEntity de = new DownloadEntity(); |
| | | de.setName(FileHelper.getFileName(file)); |
| | | // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告 |
| | | // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告,7-附件文件,8-瓦片文件 |
| | | de.setType(3); |
| | | de.setSizes(FileHelper.sizeToMb(new File(file).length())); |
| | | de.setDepid(ue.getDepid()); |