From e76273e5928a53895c912217cff5842e358a3aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E6=9C=A8c?= <857448963@qq.com> Date: Thu, 15 Dec 2022 10:19:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/njcn/system/pojo/vo/DictDataCache.java | 2 ++ .../main/java/com/njcn/system/mapper/mapping/DictTypeMapper.xml | 1 + .../java/com/njcn/system/service/impl/DictTypeServiceImpl.java | 1 + 3 files changed, 4 insertions(+) diff --git a/pqs-system/system-api/src/main/java/com/njcn/system/pojo/vo/DictDataCache.java b/pqs-system/system-api/src/main/java/com/njcn/system/pojo/vo/DictDataCache.java index 0ab3520f0..79d1cb73e 100644 --- a/pqs-system/system-api/src/main/java/com/njcn/system/pojo/vo/DictDataCache.java +++ b/pqs-system/system-api/src/main/java/com/njcn/system/pojo/vo/DictDataCache.java @@ -18,6 +18,8 @@ public class DictDataCache implements Serializable { private String code; + private String value; + private int sort; private String typeId; diff --git a/pqs-system/system-boot/src/main/java/com/njcn/system/mapper/mapping/DictTypeMapper.xml b/pqs-system/system-boot/src/main/java/com/njcn/system/mapper/mapping/DictTypeMapper.xml index 6d72e0ba9..7405a5949 100644 --- a/pqs-system/system-boot/src/main/java/com/njcn/system/mapper/mapping/DictTypeMapper.xml +++ b/pqs-system/system-boot/src/main/java/com/njcn/system/mapper/mapping/DictTypeMapper.xml @@ -8,6 +8,7 @@ t1.name name, t1.code code, t1.sort sort, + t1.value, t2.id typeId, t2.name typeName, t2.code typeCode diff --git a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/DictTypeServiceImpl.java b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/DictTypeServiceImpl.java index fbc08523c..62ca49402 100644 --- a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/DictTypeServiceImpl.java +++ b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/DictTypeServiceImpl.java @@ -104,6 +104,7 @@ public class DictTypeServiceImpl extends ServiceImpl i simpleDTO.setId(dictDataCache.getId()); simpleDTO.setName(dictDataCache.getName()); simpleDTO.setSort(dictDataCache.getSort()); + simpleDTO.setValue(dictDataCache.getValue()); return simpleDTO; }).collect(Collectors.toList());