包头bug修复
This commit is contained in:
parent
e406fd0d8d
commit
1af646dc8f
@ -2,6 +2,7 @@ package com.zhgd.xmgl.modules.baotou.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.extra.qrcode.QrCodeUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
@ -197,6 +198,9 @@ public class ConstructionEquipmentToolServiceImpl extends ServiceImpl<Constructi
|
||||
String fileUrl = FlowUtil.getFileUrl(file, "field4640899275765");
|
||||
String originName = FlowUtil.getFileOriginFileName(file, "field4640899275765");
|
||||
String name = FlowUtil.getString(file, "field5064799257334");
|
||||
if (StrUtil.isBlank(fileUrl) && StrUtil.isBlank(name)) {
|
||||
continue;
|
||||
}
|
||||
ConstructionEquipmentToolFile toolFile = new ConstructionEquipmentToolFile();
|
||||
toolFile.setConstructionEquipmentToolId(tool.getId());
|
||||
toolFile.setName(name);
|
||||
@ -205,7 +209,9 @@ public class ConstructionEquipmentToolServiceImpl extends ServiceImpl<Constructi
|
||||
toolFile.setProjectSn(projectSn);
|
||||
toolFiles.add(toolFile);
|
||||
}
|
||||
constructionEquipmentToolFileService.saveBatch(toolFiles);
|
||||
if (CollUtil.isNotEmpty(toolFiles)) {
|
||||
constructionEquipmentToolFileService.saveBatch(toolFiles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user