| | |
| | | import com.lf.server.entity.all.PermsAuthEntity; |
| | | import com.lf.server.entity.all.ResAuthEntity; |
| | | import com.lf.server.entity.bd.DlgagnpEntity; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.entity.md.*; |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.mapper.bd.DlgagnpMapper; |
| | | import com.lf.server.service.all.BaseQueryService; |
| | | import com.lf.server.service.all.PermsService; |
| | | import com.lf.server.service.all.UploadAttachService; |
| | | import com.lf.server.service.data.MetaService; |
| | | import com.lf.server.service.data.UploadService; |
| | | import com.lf.server.service.show.LocateService; |
| | | import com.lf.server.service.sys.ArgsService; |
| | | import com.lf.server.service.sys.BlacklistService; |
| | |
| | | @Autowired |
| | | ReportService reportService; |
| | | |
| | | @Autowired |
| | | UploadService uploadService; |
| | | |
| | | @Autowired |
| | | MetaService metaService; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | |
| | | UploadAttachService.init(env.getProperty("sys.attachTabs")); |
| | | pathHelper.init(); |
| | | argsService.initSettingData(); |
| | | //testReadShp(); |
| | | //testMeta(); |
| | | |
| | | log.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | private void testMeta() { |
| | | List<MetaEntity> list = metaService.selectByIdsForTab("1501,1500,1491,1492"); |
| | | String sql = metaService.getDelTabsSql(list); |
| | | } |
| | | |
| | | private void testReadShp() { |
| | | MetaFileEntity mf = new MetaFileEntity(); |
| | | //mf.setPath("D:\\model_data\\m_sitepoint.shp"); |
| | | mf.setPath("D:\\shpto\\m_sitepoint.shp"); |
| | | mf.setEntity("msitepoint"); |
| | | mf.setGuid("msitepoint"); |
| | | mf.setTab("bs.m_sitepoint"); |
| | | mf.setExtName(".shp"); |
| | | |
| | | uploadService.loadSpatialData(mf); |
| | | } |
| | | |
| | | private void testBatchUpdate() { |
| | |
| | | } |
| | | |
| | | private void testReadExcel() { |
| | | List<MdZxcgEntity> listMdZxcg = ExcelHelper.readExcel(MdZxcgEntity.class, "D:\\LF\\data\\xls\\测绘\\1-项目成果-西三中\\1-1中线成果表\\海原县中线成果表.xlsx"); |
| | | List<?> listMdZxcg = ExcelHelper.readExcel(MdzxcgEntity.class, "D:\\LF\\data\\xls\\测绘\\1-项目成果-西三中\\1-1中线成果表\\海原县中线成果表.xlsx"); |
| | | int r1 = listMdZxcg.size(); |
| | | |
| | | //List<MdGdcgEntity> listGdcg = ExcelHelper.readExcel(MdGdcgEntity.class, "D:\\LF\\data\\xls\\测绘\\2-地下管线探测成果\\2-2 管线成果表.xlsx"); |