| | |
| | | |
| | | import com.moon.server.entity.all.MenusAuthEntity; |
| | | import com.moon.server.entity.all.PermsAuthEntity; |
| | | import com.moon.server.entity.all.ResAuthEntity; |
| | | import com.moon.server.entity.data.CoordEntity; |
| | | import com.moon.server.entity.data.MetaEntity; |
| | | import com.moon.server.entity.data.MetaFileEntity; |
| | | import com.moon.server.entity.sys.ResEntity; |
| | | import com.moon.server.helper.*; |
| | | import com.moon.server.service.data.MetaService; |
| | | import com.moon.server.service.data.ReadRasterService; |
| | | import com.moon.server.service.data.UploadService; |
| | | import com.moon.server.service.sys.ArgsService; |
| | | import com.moon.server.service.sys.BlacklistService; |
| | | import com.moon.server.service.sys.ReportService; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.core.env.Environment; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 测试服务类 |
| | | * @author WWW |
| | | */ |
| | | @Service |
| | | @SuppressWarnings("AlibabaRemoveCommentedCode") |
| | | public class TestService { |
| | | @Autowired |
| | | @Resource |
| | | PathHelper pathHelper; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | ArgsService argsService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | PermsService permsService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | BlacklistService blacklistService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | BaseQueryService baseQueryService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | Environment env; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | ReportService reportService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | UploadService uploadService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | MetaService metaService; |
| | | |
| | | @Resource |
| | | ReadRasterService readRasterService; |
| | | |
| | | private final static Log log = LogFactory.getLog(TestService.class); |
| | | |
| | |
| | | } |
| | | |
| | | public void testPerms() { |
| | | List<ResAuthEntity> raeList = permsService.selectRes("admin"); |
| | | List<ResAuthEntity> raeList2 = permsService.selectRes("admin"); |
| | | List<ResEntity> raeList = permsService.selectRes("admin"); |
| | | List<ResEntity> raeList2 = permsService.selectRes("admin"); |
| | | |
| | | List<MenusAuthEntity> maeList = permsService.selectMenus("admin"); |
| | | List<MenusAuthEntity> maeList2 = permsService.selectMenus("admin"); |
| | |
| | | List<PermsAuthEntity> pauList = permsService.selectPermsEntity("admin"); |
| | | List<PermsAuthEntity> pauList2 = permsService.selectPermsEntity("admin"); |
| | | |
| | | permsService.clearResCache(); |
| | | // permsService.clearResCache() |
| | | permsService.clearPermsCache(); |
| | | |
| | | raeList = permsService.selectRes("admin"); |
| | |
| | | String entityName = "Gxcg"; |
| | | String xls = "D:\\LF\\data\\xls\\测绘\\2-地下管线探测成果\\2-2 管线成果表.xlsx"; |
| | | |
| | | String className = "com.lf.server.entity.bs." + entityName; |
| | | String className = "com.moon.server.entity.bs." + entityName; |
| | | Object obj = ClassHelper.createInstance(className); |
| | | |
| | | List<?> list = ExcelHelper.readExcel(obj.getClass(), xls); |
| | |
| | | // |
| | | } |
| | | } |
| | | |
| | | public void testRaster() { |
| | | MetaFileEntity mf1 = new MetaFileEntity(); |
| | | readRasterService.readRasterInfo(mf1, "D:\\Moon\\data\\DOM\\Lunar_LRO_LOLA_ClrShade_Global_128ppd_v04_2.tif"); |
| | | |
| | | MetaFileEntity mf2 = new MetaFileEntity(); |
| | | readRasterService.readRasterInfo(mf2, "D:\\Moon\\data\\DOM\\0aceb83f-6d5f-43b3-a178-520edac5c23c.img"); |
| | | |
| | | MetaFileEntity mf3 = new MetaFileEntity(); |
| | | readRasterService.readRasterInfo(mf3, "D:\\Moon\\data\\DOM\\uv750_basemap_warp_mosaic_100m.jp2"); |
| | | } |
| | | } |