企业标准导入功能测试
This commit is contained in:
+1
@@ -90,4 +90,5 @@ public class SarBussStandAttrInfoExecl extends BaseEntity {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+5
-4
@@ -2050,11 +2050,13 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
if (row != null && !isBlank) {
|
||||
if (i != 0){
|
||||
SarBussStandAttrInfoExecl sarBussStandAttrInfoExecl = new SarBussStandAttrInfoExecl();
|
||||
String str = row.getCell(27).getStringCellValue();
|
||||
String[] split = str.split(",");
|
||||
String fbgBuss = row.getCell(27).getStringCellValue();
|
||||
String[] split = fbgBuss.split(",");
|
||||
if (split.length != 0){
|
||||
for (int j = 0;j < split.length;j++){
|
||||
File files = new File("/");
|
||||
String name = fileInfo.getName();
|
||||
String[] split1 = fileInfo.toString().split(name);
|
||||
File files = new File(split1[0]+split[j]);
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(files);
|
||||
if (StringUtils.isNotBlank(attFileVo.getId())){
|
||||
s = "," + attFileVo.getAttId();
|
||||
@@ -2064,7 +2066,6 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
sarBussStandAttrInfoExecl.setFbgBuss(s);
|
||||
}
|
||||
}
|
||||
SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
||||
|
||||
}
|
||||
int columNos = headerRow.getLastCellNum();// 表头总共的列数
|
||||
|
||||
Reference in New Issue
Block a user