|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
|
|
|
|
package test.cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
|
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.bean.*;
|
|
|
|
|
import cn.estsh.i3plus.pojo.platform.repository.SysConfigRepository;
|
|
|
|
@ -24,9 +24,9 @@ import java.util.List;
|
|
|
|
|
* @CreateDate : 2018-11-22 11:01
|
|
|
|
|
* @Modify:
|
|
|
|
|
**/
|
|
|
|
|
public class TestExcelSysConfig extends cn.estsh.i3plus.core.apiservice.serviceimpl.busi.TestBase {
|
|
|
|
|
public class TestExcelSysConfig extends TestBase {
|
|
|
|
|
|
|
|
|
|
public static final Logger LOGGER = LoggerFactory.getLogger(cn.estsh.i3plus.core.apiservice.serviceimpl.busi.TestExcelPermission.class);
|
|
|
|
|
public static final Logger LOGGER = LoggerFactory.getLogger(TestExcelPermission.class);
|
|
|
|
|
|
|
|
|
|
// 文件路径
|
|
|
|
|
public static final String PATH_NAME = "init/sys-config.xlsx";
|
|
|
|
@ -194,7 +194,7 @@ public class TestExcelSysConfig extends cn.estsh.i3plus.core.apiservice.servicei
|
|
|
|
|
|
|
|
|
|
public XSSFWorkbook getWorkbook(String pathName){
|
|
|
|
|
try {
|
|
|
|
|
InputStream in = cn.estsh.i3plus.core.apiservice.serviceimpl.busi.TestExcelPermission.class.getClassLoader().getResourceAsStream(pathName);
|
|
|
|
|
InputStream in = TestExcelPermission.class.getClassLoader().getResourceAsStream(pathName);
|
|
|
|
|
XSSFWorkbook workbook = new XSSFWorkbook(in);
|
|
|
|
|
return workbook;
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|