|
|
@ -196,8 +196,8 @@ public class ItembasicServiceImpl implements ItembasicService { |
|
|
|
if(StrUtil.isNotEmpty(massage)){ |
|
|
|
massage.substring(0,massage.length()-1); |
|
|
|
errorList.add(importItembasic); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(errorList != null){ |
|
|
|
// 判断如果不存在,在进行插入
|
|
|
|
ItembasicDO existItembasic = itembasicMapper.selectByCode(importItembasic.getCode()); |
|
|
|
if (existItembasic == null&& mode != 3) { |
|
|
@ -208,6 +208,7 @@ public class ItembasicServiceImpl implements ItembasicService { |
|
|
|
itembasicDO.setId(existItembasic.getId()); |
|
|
|
itembasicMapper.updateById(itembasicDO); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
//错误不为空并非部分更新,手工回滚
|
|
|
|
if(!errorList.isEmpty() && !updatePart) { |
|
|
|