企业标准导入功能测试
This commit is contained in:
+7
-5
@@ -22,6 +22,7 @@ import com.adc.da.slrs.otConvertMq.dao.OtConvertMqDao;
|
||||
import com.adc.da.slrs.otConvertMq.entity.OtConvertMq;
|
||||
import com.adc.da.slrs.sarBussStandAttrInfo.dao.SarBussStandAttrInfoDao;
|
||||
import com.adc.da.slrs.sarBussStandAttrInfo.entity.SarBussStandAttrInfo;
|
||||
import com.adc.da.slrs.sarBussStandAttrInfo.entity.SarBussStandAttrInfoExecl;
|
||||
import com.adc.da.slrs.sarBussStandFile.dao.SarBussStandFileDao;
|
||||
import com.adc.da.slrs.sarBussStandFile.entity.SarBussStandFile;
|
||||
import com.adc.da.slrs.sarBussStandItems.dao.SarBussStandItemsDao;
|
||||
@@ -2048,22 +2049,23 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
String s = "";
|
||||
if (row != null && !isBlank) {
|
||||
if (i != 0){
|
||||
SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
||||
String str = "";
|
||||
SarBussStandAttrInfoExecl sarBussStandAttrInfoExecl = new SarBussStandAttrInfoExecl();
|
||||
String str = row.getCell(27).getStringCellValue();
|
||||
String[] split = str.split(",");
|
||||
if (split.length != 0){
|
||||
for (int j = 0;j < split.length;j++){
|
||||
File files = new File("/");
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(files);
|
||||
if (StringUtils.isNotBlank(s)){
|
||||
if (StringUtils.isNotBlank(attFileVo.getId())){
|
||||
s = "," + attFileVo.getAttId();
|
||||
}else {
|
||||
s = attFileVo.getAttId();
|
||||
}
|
||||
|
||||
sarBussStandAttrInfoExecl.setFbgBuss(s);
|
||||
}
|
||||
}
|
||||
|
||||
SarBussStandAttrInfo sarBussStandAttrInfo = new SarBussStandAttrInfo();
|
||||
|
||||
}
|
||||
int columNos = headerRow.getLastCellNum();// 表头总共的列数
|
||||
Map<String, String> rowList = new LinkedHashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user