企业标准导入功能测试

This commit is contained in:
SUNJIABIN
2023-03-01 10:44:00 +08:00
parent 8ce41ead4a
commit 296194b9be
2 changed files with 6 additions and 4 deletions
@@ -90,4 +90,5 @@ public class SarBussStandAttrInfoExecl extends BaseEntity {
}
@@ -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();// 表头总共的列数