From a060d699324492039ea6d74e96fc653d61f0049f Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 30 Mar 2022 20:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BA=93--=E5=A4=9A=E9=80=89?= =?UTF-8?q?=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BussDocumentLibraryEOServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 365d0df3b..655d33f77 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -576,8 +576,21 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl> getDocumentInfoById(String id, String cut) { LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(BussDocumentLibraryEO::getId, id); + //字段属性 + List fieldList = onlCgformFieldService.getFieldList("1"); + List onlCgformFieldDateMoreList = fieldList.stream().filter(e -> FieldTypeEnum.DATE_MORE.getValue().equals(e.getFieldShowType())).collect(Collectors.toList()); + List dateMoreList = onlCgformFieldDateMoreList.stream().map(OnlCgformField::getDbFieldName).collect(Collectors.toList()); //通过id查询数据 List> dataList = bussDocumentLibraryEOMapper.selectMapsAll(id); + //处理多选日期 + for (Map.Entry entry : dataList.get(0).entrySet()) { + String key = entry.getKey(); + if(dateMoreList.contains(key) && ObjectUtils.isNotEmpty(entry.getValue())){ + String value = (String) entry.getValue(); + entry.setValue(Arrays.asList(value.split(","))); + } + } + //查询所有 List> mapList = bussDocumentLibraryEOMapper.selectMapsAll(null); //对应标准id