Browse Source

导入下载错误数据excel

master
chenfang 2 years ago
parent
commit
fbd994a85f
  1. 3
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/itembasic/ItembasicServiceImpl.java

3
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/itembasic/ItembasicServiceImpl.java

@ -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) {

Loading…
Cancel
Save