dataMap : dataList) {
i++;
int countError = 0; //记录失败数据数量
String errorMsg = "第" + i + "行:
";
@@ -1182,17 +1184,17 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl attrList = new ArrayList<>();
String zrbmOrgNames = "";
- for (Map.Entry entry : dataMap.entrySet()) {
+ for (Map.Entry entry : dataMap.entrySet()) {
String name = entry.getKey();
String value = entry.getValue();
if ("责任部门".equals(name)) {
zrbmOrgNames = value;
}
if (baseFieldsList.contains(name)) {
- SarStandImportDto.compareFieldAndName(name,value,sarStandardsInfoEO);
- } else if (attrFieldsList.contains(name)){
+ SarStandImportDto.compareFieldAndName(name, value, sarStandardsInfoEO);
+ } else if (attrFieldsList.contains(name)) {
// 根据name查字段
- SarStandAttrDetails fieldEO = sarStandAttrDetailsEODao.selectFieldByName(name,standType+"_STAND");
+ SarStandAttrDetails fieldEO = sarStandAttrDetailsEODao.selectFieldByName(name, standType + "_STAND");
if (fieldEO != null) {
fieldEO.setAttrValue(value);
attrList.add(fieldEO);
@@ -1201,10 +1203,10 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl beseResultMap = validateBaseDatas(sarStandardsInfoEO,standType,errorMsg,countError,standnumberlist);
+ Map beseResultMap = validateBaseDatas(sarStandardsInfoEO, standType, errorMsg, countError, standnumberlist);
errorMsg = beseResultMap.get("errorMsg");
countError = Integer.parseInt(beseResultMap.get("countError"));
- Map attrResultMap = validateAttrDatas(sarStandardsInfoEO,standType,filepath,errorMsg,countError,zrbmOrgNames);
+ Map attrResultMap = validateAttrDatas(sarStandardsInfoEO, standType, filepath, errorMsg, countError, zrbmOrgNames);
errorMsg = attrResultMap.get("errorMsg");
countError = Integer.parseInt(attrResultMap.get("countError"));
if (countError > 0) {
@@ -1228,8 +1230,8 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl standnumberlist) throws Exception {
- Map