From 0dc0a47cf5f655cb0dbff082f7c36613c21e328b Mon Sep 17 00:00:00 2001
From: 罗元桥 <2376770955@qq.com>
Date: 星期一, 12 七月 2021 18:30:01 +0800
Subject: [PATCH] Merge branch 'test' into 'master'

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BcDictionaryService.java |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BcDictionaryService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BcDictionaryService.java
index 03f1d6b..43114da 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BcDictionaryService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/BcDictionaryService.java
@@ -3,7 +3,9 @@
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.panzhihua.common.model.vos.BcDictionaryItemVO;
 import com.panzhihua.common.model.vos.BcDictionaryVO;
+import com.panzhihua.common.model.vos.DictionaryVO;
 import com.panzhihua.common.model.vos.R;
+import com.panzhihua.service_community.model.dos.BcDictionaryDO;
 import com.panzhihua.service_community.model.dos.BcDictionaryItemDO;
 
 import java.util.List;
@@ -16,18 +18,52 @@
 
     /**
      * 根据字典key 查询字典项
+     *
      * @param key
      * @return
      */
     R<List<BcDictionaryVO>> getDictionaryByKey(String key);
+
     /**
      * description 根据字典code查询自典项
      *
      * @param dictId 字典类型
-     * @param code 入参参数
+     * @param code   入参参数
      * @return BcDictionaryVO 字典
      * @author manailin
      * @date 2021/6/10 17:00
      */
     BcDictionaryItemVO getByCode(String dictId, String code);
+
+    /**
+     * description 根据字典code查询自典项
+     *
+     * @param dictName 字典类型
+     * @param dictKey  入参参数
+     * @param parentId 入参参数
+     * @return BcDictionaryVO 字典
+     * @author manailin
+     * @date 2021/6/10 17:00
+     */
+    BcDictionaryDO getDictionaryByCode(String dictName, String dictKey, Long parentId);
+
+    /**
+     * 插入字典
+     *
+     * @param dictionaryVO 字典数据
+     * @return R 是否保存成功
+     * @author manailin
+     * @date 2021/6/10 17:00
+     */
+    R insertDiction(DictionaryVO dictionaryVO);
+
+    /**
+     * 插入字典项
+     *
+     * @param dictionaryVO 字典数据
+     * @return R 是否保存成功
+     * @author manailin
+     * @date 2021/6/10 17:00
+     */
+    R insertDictionItem(BcDictionaryVO dictionaryVO);
 }

--
Gitblit v1.7.1