Commit a8e82c22 authored by xixinzhao's avatar xixinzhao

fix(jyjc):检验结果附件上传重复bug

parent 303433a5
...@@ -126,8 +126,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR ...@@ -126,8 +126,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
Map<String, Object> fileMap = new HashMap<>(); Map<String, Object> fileMap = new HashMap<>();
map.forEach((k, v) -> { map.forEach((k, v) -> {
if (k.contains(JYJC_SUBMIT_FILE_PREFIX) && !ObjectUtils.isEmpty(map.get(k))) { if (k.contains(JYJC_SUBMIT_FILE_PREFIX) && !ObjectUtils.isEmpty(map.get(k))) {
fileWrapper.eq(JyjcInspectionResultAttachment::getAttachmentType, k); fileWrapper.or(wrapper ->wrapper.eq(JyjcInspectionResultAttachment::getAttachmentType, k).eq(JyjcInspectionResultAttachment::getResultSeq, model.getSequenceNbr()));
fileWrapper.eq(JyjcInspectionResultAttachment::getResultSeq, model.getSequenceNbr());
fileMap.put(k, map.get(k)); fileMap.put(k, map.get(k));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment