java110 пре 4 година
родитељ
комит
31e8916463
24 измењених фајлова са 1862 додато и 37 уклоњено
  1. 90 0
      java110-bean/src/main/java/com/java110/dto/menuCatalog/MenuCatalogDto.java
  2. 69 0
      java110-bean/src/main/java/com/java110/dto/menuGroupCatalog/MenuGroupCatalogDto.java
  3. 89 0
      java110-bean/src/main/java/com/java110/po/menuCatalog/MenuCatalogPo.java
  4. 68 0
      java110-bean/src/main/java/com/java110/po/menuGroupCatalog/MenuGroupCatalogPo.java
  5. 124 0
      java110-db/src/main/resources/mapper/user/MenuCatalogV1ServiceDaoImplMapper.xml
  6. 97 0
      java110-db/src/main/resources/mapper/user/MenuGroupCatalogV1ServiceDaoImplMapper.xml
  7. 11 14
      java110-generator/src/main/java/com/java110/code/TableToJson.java
  8. 16 23
      java110-generator/src/main/resources/newBack/template_1.json
  9. 68 0
      java110-interface/src/main/java/com/java110/intf/user/IMenuCatalogV1InnerServiceSMO.java
  10. 68 0
      java110-interface/src/main/java/com/java110/intf/user/IMenuGroupCatalogV1InnerServiceSMO.java
  11. 71 0
      service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/DeleteMenuCatalogCmd.java
  12. 80 0
      service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/ListMenuCatalogCmd.java
  13. 79 0
      service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/SaveMenuCatalogCmd.java
  14. 74 0
      service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/UpdateMenuCatalogCmd.java
  15. 71 0
      service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/DeleteMenuGroupCatalogCmd.java
  16. 81 0
      service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/ListMenuGroupCatalogCmd.java
  17. 76 0
      service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/SaveMenuGroupCatalogCmd.java
  18. 74 0
      service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/UpdateMenuGroupCatalogCmd.java
  19. 77 0
      service-user/src/main/java/com/java110/user/dao/IMenuCatalogV1ServiceDao.java
  20. 77 0
      service-user/src/main/java/com/java110/user/dao/IMenuGroupCatalogV1ServiceDao.java
  21. 112 0
      service-user/src/main/java/com/java110/user/dao/impl/MenuCatalogV1ServiceDaoImpl.java
  22. 112 0
      service-user/src/main/java/com/java110/user/dao/impl/MenuGroupCatalogV1ServiceDaoImpl.java
  23. 89 0
      service-user/src/main/java/com/java110/user/smo/impl/MenuCatalogV1InnerServiceSMOImpl.java
  24. 89 0
      service-user/src/main/java/com/java110/user/smo/impl/MenuGroupCatalogV1InnerServiceSMOImpl.java

+ 90 - 0
java110-bean/src/main/java/com/java110/dto/menuCatalog/MenuCatalogDto.java

@@ -0,0 +1,90 @@
+package com.java110.dto.menuCatalog;
+
+import com.java110.dto.PageDto;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 菜单目录数据层封装
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class MenuCatalogDto extends PageDto implements Serializable {
+
+    private String storeType;
+private String caId;
+private String name;
+private String icon;
+private String seq;
+private String url;
+private String isShow;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getStoreType() {
+        return storeType;
+    }
+public void setStoreType(String storeType) {
+        this.storeType = storeType;
+    }
+public String getCaId() {
+        return caId;
+    }
+public void setCaId(String caId) {
+        this.caId = caId;
+    }
+public String getName() {
+        return name;
+    }
+public void setName(String name) {
+        this.name = name;
+    }
+public String getIcon() {
+        return icon;
+    }
+public void setIcon(String icon) {
+        this.icon = icon;
+    }
+public String getSeq() {
+        return seq;
+    }
+public void setSeq(String seq) {
+        this.seq = seq;
+    }
+public String getUrl() {
+        return url;
+    }
+public void setUrl(String url) {
+        this.url = url;
+    }
+public String getIsShow() {
+        return isShow;
+    }
+public void setIsShow(String isShow) {
+        this.isShow = isShow;
+    }
+
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+}

+ 69 - 0
java110-bean/src/main/java/com/java110/dto/menuGroupCatalog/MenuGroupCatalogDto.java

@@ -0,0 +1,69 @@
+package com.java110.dto.menuGroupCatalog;
+
+import com.java110.dto.PageDto;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 菜单目录组数据层封装
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class MenuGroupCatalogDto extends PageDto implements Serializable {
+
+    private String storeType;
+private String gId;
+private String gcId;
+private String caId;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getStoreType() {
+        return storeType;
+    }
+public void setStoreType(String storeType) {
+        this.storeType = storeType;
+    }
+public String getGId() {
+        return gId;
+    }
+public void setGId(String gId) {
+        this.gId = gId;
+    }
+public String getGcId() {
+        return gcId;
+    }
+public void setGcId(String gcId) {
+        this.gcId = gcId;
+    }
+public String getCaId() {
+        return caId;
+    }
+public void setCaId(String caId) {
+        this.caId = caId;
+    }
+
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+}

+ 89 - 0
java110-bean/src/main/java/com/java110/po/menuCatalog/MenuCatalogPo.java

@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.menuCatalog;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public class MenuCatalogPo implements Serializable {
+
+    private String storeType;
+private String caId;
+private String name;
+private String icon;
+private String statusCd = "0";
+private String seq;
+private String url;
+private String isShow;
+public String getStoreType() {
+        return storeType;
+    }
+public void setStoreType(String storeType) {
+        this.storeType = storeType;
+    }
+public String getCaId() {
+        return caId;
+    }
+public void setCaId(String caId) {
+        this.caId = caId;
+    }
+public String getName() {
+        return name;
+    }
+public void setName(String name) {
+        this.name = name;
+    }
+public String getIcon() {
+        return icon;
+    }
+public void setIcon(String icon) {
+        this.icon = icon;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getSeq() {
+        return seq;
+    }
+public void setSeq(String seq) {
+        this.seq = seq;
+    }
+public String getUrl() {
+        return url;
+    }
+public void setUrl(String url) {
+        this.url = url;
+    }
+public String getIsShow() {
+        return isShow;
+    }
+public void setIsShow(String isShow) {
+        this.isShow = isShow;
+    }
+
+
+
+}

+ 68 - 0
java110-bean/src/main/java/com/java110/po/menuGroupCatalog/MenuGroupCatalogPo.java

@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.po.menuGroupCatalog;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public class MenuGroupCatalogPo implements Serializable {
+
+    private String storeType;
+private String gId;
+private String gcId;
+private String caId;
+private String statusCd = "0";
+public String getStoreType() {
+        return storeType;
+    }
+public void setStoreType(String storeType) {
+        this.storeType = storeType;
+    }
+public String getGId() {
+        return gId;
+    }
+public void setGId(String gId) {
+        this.gId = gId;
+    }
+public String getGcId() {
+        return gcId;
+    }
+public void setGcId(String gcId) {
+        this.gcId = gcId;
+    }
+public String getCaId() {
+        return caId;
+    }
+public void setCaId(String caId) {
+        this.caId = caId;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+
+
+
+}

+ 124 - 0
java110-db/src/main/resources/mapper/user/MenuCatalogV1ServiceDaoImplMapper.xml

@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="menuCatalogV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存菜单目录信息 add by wuxw 2018-07-03 -->
+    <insert id="saveMenuCatalogInfo" parameterType="Map">
+        insert into m_menu_catalog(
+store_type,ca_id,name,icon,seq,url,is_show
+) values (
+#{storeType},#{caId},#{name},#{icon},#{seq},#{url},#{isShow}
+)
+    </insert>
+
+
+
+    <!-- 查询菜单目录信息 add by wuxw 2018-07-03 -->
+    <select id="getMenuCatalogInfo" parameterType="Map" resultType="Map">
+        select  t.store_type,t.store_type storeType,t.ca_id,t.ca_id caId,t.name,t.icon,t.status_cd,t.status_cd statusCd,t.seq,t.url,t.is_show,t.is_show isShow 
+from m_menu_catalog t 
+where 1 =1 
+<if test="storeType !=null and storeType != ''">
+   and t.store_type= #{storeType}
+</if> 
+<if test="caId !=null and caId != ''">
+   and t.ca_id= #{caId}
+</if> 
+<if test="name !=null and name != ''">
+   and t.name= #{name}
+</if> 
+<if test="icon !=null and icon != ''">
+   and t.icon= #{icon}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="seq !=null and seq != ''">
+   and t.seq= #{seq}
+</if> 
+<if test="url !=null and url != ''">
+   and t.url= #{url}
+</if> 
+<if test="isShow !=null and isShow != ''">
+   and t.is_show= #{isShow}
+</if> 
+order by t.create_time desc
+<if test="page != -1 and page != null ">
+   limit #{page}, #{row}
+</if> 
+
+    </select>
+
+
+
+
+    <!-- 修改菜单目录信息 add by wuxw 2018-07-03 -->
+    <update id="updateMenuCatalogInfo" parameterType="Map">
+        update  m_menu_catalog t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="storeType !=null and storeType != ''">
+, t.store_type= #{storeType}
+</if> 
+<if test="name !=null and name != ''">
+, t.name= #{name}
+</if> 
+<if test="icon !=null and icon != ''">
+, t.icon= #{icon}
+</if> 
+<if test="seq !=null and seq != ''">
+, t.seq= #{seq}
+</if> 
+<if test="url !=null and url != ''">
+, t.url= #{url}
+</if> 
+<if test="isShow !=null and isShow != ''">
+, t.is_show= #{isShow}
+</if> 
+ where 1=1 <if test="caId !=null and caId != ''">
+and t.ca_id= #{caId}
+</if> 
+
+    </update>
+
+    <!-- 查询菜单目录数量 add by wuxw 2018-07-03 -->
+     <select id="queryMenuCatalogsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from m_menu_catalog t 
+where 1 =1 
+<if test="storeType !=null and storeType != ''">
+   and t.store_type= #{storeType}
+</if> 
+<if test="caId !=null and caId != ''">
+   and t.ca_id= #{caId}
+</if> 
+<if test="name !=null and name != ''">
+   and t.name= #{name}
+</if> 
+<if test="icon !=null and icon != ''">
+   and t.icon= #{icon}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="seq !=null and seq != ''">
+   and t.seq= #{seq}
+</if> 
+<if test="url !=null and url != ''">
+   and t.url= #{url}
+</if> 
+<if test="isShow !=null and isShow != ''">
+   and t.is_show= #{isShow}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 97 - 0
java110-db/src/main/resources/mapper/user/MenuGroupCatalogV1ServiceDaoImplMapper.xml

@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="menuGroupCatalogV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存菜单目录组信息 add by wuxw 2018-07-03 -->
+    <insert id="saveMenuGroupCatalogInfo" parameterType="Map">
+        insert into m_menu_group_catalog(
+store_type,g_id,gc_id,ca_id
+) values (
+#{storeType},#{gId},#{gcId},#{caId}
+)
+    </insert>
+
+
+
+    <!-- 查询菜单目录组信息 add by wuxw 2018-07-03 -->
+    <select id="getMenuGroupCatalogInfo" parameterType="Map" resultType="Map">
+        select  t.store_type,t.store_type storeType,t.g_id,t.g_id gId,t.gc_id,t.gc_id gcId,t.ca_id,t.ca_id caId,t.status_cd,t.status_cd statusCd 
+from m_menu_group_catalog t 
+where 1 =1 
+<if test="storeType !=null and storeType != ''">
+   and t.store_type= #{storeType}
+</if> 
+<if test="gId !=null and gId != ''">
+   and t.g_id= #{gId}
+</if> 
+<if test="gcId !=null and gcId != ''">
+   and t.gc_id= #{gcId}
+</if> 
+<if test="caId !=null and caId != ''">
+   and t.ca_id= #{caId}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+order by t.create_time desc
+<if test="page != -1 and page != null ">
+   limit #{page}, #{row}
+</if> 
+
+    </select>
+
+
+
+
+    <!-- 修改菜单目录组信息 add by wuxw 2018-07-03 -->
+    <update id="updateMenuGroupCatalogInfo" parameterType="Map">
+        update  m_menu_group_catalog t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="storeType !=null and storeType != ''">
+, t.store_type= #{storeType}
+</if> 
+<if test="gId !=null and gId != ''">
+, t.g_id= #{gId}
+</if> 
+<if test="caId !=null and caId != ''">
+, t.ca_id= #{caId}
+</if> 
+ where 1=1 <if test="gcId !=null and gcId != ''">
+and t.gc_id= #{gcId}
+</if> 
+
+    </update>
+
+    <!-- 查询菜单目录组数量 add by wuxw 2018-07-03 -->
+     <select id="queryMenuGroupCatalogsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from m_menu_group_catalog t 
+where 1 =1 
+<if test="storeType !=null and storeType != ''">
+   and t.store_type= #{storeType}
+</if> 
+<if test="gId !=null and gId != ''">
+   and t.g_id= #{gId}
+</if> 
+<if test="gcId !=null and gcId != ''">
+   and t.gc_id= #{gcId}
+</if> 
+<if test="caId !=null and caId != ''">
+   and t.ca_id= #{caId}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 11 - 14
java110-generator/src/main/java/com/java110/code/TableToJson.java

@@ -18,25 +18,22 @@ import java.nio.charset.Charset;
 public class TableToJson {
 
     //show create table c_orders  用这个语句获取
-    public static final String createTableSql = "CREATE TABLE `wechat_subscribe` (\n" +
-            "  `sub_id` varchar(30) NOT NULL PRIMARY key  COMMENT '主键ID',\n" +
-            "  `open_id` varchar(128) NOT NULL COMMENT '微信ID',\n" +
-            "  `app_id` varchar(30) not null COMMENT '公众号ID',\n" +
-            "  `open_type` varchar(12) NOT NULL default 'WECHAT' COMMENT '开放类型 WECHAT 微信',\n" +
+    public static final String createTableSql = "CREATE TABLE `m_menu_group_catalog` (\n" +
+            "  `gc_id` varchar(30) NOT NULL COMMENT '目录名称',\n" +
+            "  `ca_id` varchar(30) NOT NULL COMMENT '目录ID',\n" +
+            "  `g_id` varchar(30) NOT NULL COMMENT '菜单组ID',\n" +
+            "  `store_type` varchar(12) DEFAULT NULL COMMENT '商户类型',\n" +
             "  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n" +
-            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0, 在用 1失效',\n" +
-            "  `user_id` varchar(30) DEFAULT NULL COMMENT '用户ID',\n" +
-            "  `nickname` varchar(255) DEFAULT NULL COMMENT '昵称',\n" +
-            "  `headimgurl` varchar(255) DEFAULT NULL COMMENT '微信头像'\n" +
+            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0在用,1失效'\n" +
             ")";
 
     public static void main(String[] args) {
-        String desc = "微信关注";
-        String id = "subId";
-        String name = "wechatSubscribe";
+        String desc = "菜单目录组";
+        String id = "gcId";
+        String name = "menuGroupCatalog";
         String shareName = "user"; //生成到那个服务下
-        String shareColumn = "app_id";
-        String shareParam = "appId";
+        String shareColumn = "store_type";
+        String shareParam = "storeType";
         //业务名称 desc 业务编码名称生成后类名 name 主键 id  需要放到那个服务 shareName
         String newSql = createTableSql.substring(createTableSql.indexOf("(") + 1, createTableSql.lastIndexOf(")"));
         String tableName = createTableSql.substring(createTableSql.indexOf("TABLE") + 5, createTableSql.indexOf("("));

+ 16 - 23
java110-generator/src/main/resources/newBack/template_1.json

@@ -1,34 +1,27 @@
 {
   "param": {
-    "subId": "sub_id",
-    "openId": "open_id",
-    "appId": "app_id",
-    "nickname": "nickname",
-    "headimgurl": "headimgurl",
-    "statusCd": "status_cd",
-    "userId": "user_id",
-    "openType": "open_type"
+    "storeType": "store_type",
+    "gId": "g_id",
+    "gcId": "gc_id",
+    "caId": "ca_id",
+    "statusCd": "status_cd"
   },
-  "name": "wechatSubscribe",
-  "shareColumn": "app_id",
-  "id": "subId",
+  "name": "menuGroupCatalog",
+  "shareColumn": "store_type",
+  "id": "gcId",
   "shareName": "user",
   "autoMove": true,
   "required": [
     {
-      "msg": "微信ID不能为空",
-      "code": "openId"
+      "msg": "目录ID不能为空",
+      "code": "caId"
     },
     {
-      "msg": "公众号ID不能为空",
-      "code": "appId"
-    },
-    {
-      "msg": "开放类型不能为空",
-      "code": "openType"
+      "msg": "菜单组ID不能为空",
+      "code": "gId"
     }
   ],
-  "desc": "微信关注",
-  "shareParam": "appId",
-  "tableName": "wechat_subscribe"
-}
+  "desc": "菜单目录组",
+  "shareParam": "storeType",
+  "tableName": "m_menu_group_catalog"
+}

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/user/IMenuCatalogV1InnerServiceSMO.java

@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.user;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.menuCatalog.MenuCatalogDto;
+import com.java110.po.menuCatalog.MenuCatalogPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@FeignClient(name = "user-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/menuCatalogV1Api")
+public interface IMenuCatalogV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveMenuCatalog", method = RequestMethod.POST)
+    public int saveMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo);
+
+    @RequestMapping(value = "/updateMenuCatalog", method = RequestMethod.POST)
+    public int updateMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo);
+
+    @RequestMapping(value = "/deleteMenuCatalog", method = RequestMethod.POST)
+    public int deleteMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param menuCatalogDto 数据对象分享
+     * @return MenuCatalogDto 对象数据
+     */
+    @RequestMapping(value = "/queryMenuCatalogs", method = RequestMethod.POST)
+    List<MenuCatalogDto> queryMenuCatalogs(@RequestBody MenuCatalogDto menuCatalogDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param menuCatalogDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryMenuCatalogsCount", method = RequestMethod.POST)
+    int queryMenuCatalogsCount(@RequestBody MenuCatalogDto menuCatalogDto);
+}

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/user/IMenuGroupCatalogV1InnerServiceSMO.java

@@ -0,0 +1,68 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.intf.user;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.menuGroupCatalog.MenuGroupCatalogDto;
+import com.java110.po.menuGroupCatalog.MenuGroupCatalogPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@FeignClient(name = "user-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/menuGroupCatalogV1Api")
+public interface IMenuGroupCatalogV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveMenuGroupCatalog", method = RequestMethod.POST)
+    public int saveMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo);
+
+    @RequestMapping(value = "/updateMenuGroupCatalog", method = RequestMethod.POST)
+    public int updateMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo);
+
+    @RequestMapping(value = "/deleteMenuGroupCatalog", method = RequestMethod.POST)
+    public int deleteMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param menuGroupCatalogDto 数据对象分享
+     * @return MenuGroupCatalogDto 对象数据
+     */
+    @RequestMapping(value = "/queryMenuGroupCatalogs", method = RequestMethod.POST)
+    List<MenuGroupCatalogDto> queryMenuGroupCatalogs(@RequestBody MenuGroupCatalogDto menuGroupCatalogDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param menuGroupCatalogDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryMenuGroupCatalogsCount", method = RequestMethod.POST)
+    int queryMenuGroupCatalogsCount(@RequestBody MenuGroupCatalogDto menuGroupCatalogDto);
+}

+ 71 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/DeleteMenuCatalogCmd.java

@@ -0,0 +1,71 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.user.IMenuCatalogV1InnerServiceSMO;
+import com.java110.po.menuCatalog.MenuCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * 类表述:删除
+ * 服务编码:menuCatalog.deleteMenuCatalog
+ * 请求路劲:/app/menuCatalog.DeleteMenuCatalog
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuCatalog.deleteMenuCatalog")
+public class DeleteMenuCatalogCmd extends AbstractServiceCmdListener {
+    private static Logger logger = LoggerFactory.getLogger(DeleteMenuCatalogCmd.class);
+
+    @Autowired
+    private IMenuCatalogV1InnerServiceSMO menuCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "caId", "caId不能为空");
+        Assert.hasKeyAndValue(reqJson, "storeType", "storeType不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuCatalogPo menuCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuCatalogPo.class);
+        int flag = menuCatalogV1InnerServiceSMOImpl.deleteMenuCatalog(menuCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 80 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/ListMenuCatalogCmd.java

@@ -0,0 +1,80 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.user.IMenuCatalogV1InnerServiceSMO;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import com.java110.dto.menuCatalog.MenuCatalogDto;
+import java.util.List;
+import java.util.ArrayList;
+import org.springframework.http.ResponseEntity;
+import org.springframework.http.HttpStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:menuCatalog.listMenuCatalog
+ * 请求路劲:/app/menuCatalog.ListMenuCatalog
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuCatalog.listMenuCatalog")
+public class ListMenuCatalogCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(ListMenuCatalogCmd.class);
+    @Autowired
+    private IMenuCatalogV1InnerServiceSMO menuCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        super.validatePageInfo(reqJson);
+    }
+
+    @Override
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+           MenuCatalogDto menuCatalogDto = BeanConvertUtil.covertBean(reqJson, MenuCatalogDto.class);
+
+           int count = menuCatalogV1InnerServiceSMOImpl.queryMenuCatalogsCount(menuCatalogDto);
+
+           List<MenuCatalogDto> menuCatalogDtos = null;
+
+           if (count > 0) {
+               menuCatalogDtos = menuCatalogV1InnerServiceSMOImpl.queryMenuCatalogs(menuCatalogDto);
+           } else {
+               menuCatalogDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, menuCatalogDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 79 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/SaveMenuCatalogCmd.java

@@ -0,0 +1,79 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.IMenuCatalogV1InnerServiceSMO;
+import com.java110.po.menuCatalog.MenuCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * 类表述:保存
+ * 服务编码:menuCatalog.saveMenuCatalog
+ * 请求路劲:/app/menuCatalog.SaveMenuCatalog
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuCatalog.saveMenuCatalog")
+public class SaveMenuCatalogCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveMenuCatalogCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IMenuCatalogV1InnerServiceSMO menuCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "name", "请求报文中未包含name");
+        Assert.hasKeyAndValue(reqJson, "icon", "请求报文中未包含icon");
+        Assert.hasKeyAndValue(reqJson, "seq", "请求报文中未包含seq");
+        Assert.hasKeyAndValue(reqJson, "url", "请求报文中未包含url");
+        Assert.hasKeyAndValue(reqJson, "isShow", "请求报文中未包含isShow");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuCatalogPo menuCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuCatalogPo.class);
+        menuCatalogPo.setCaId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = menuCatalogV1InnerServiceSMOImpl.saveMenuCatalog(menuCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 74 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuCatalog/UpdateMenuCatalogCmd.java

@@ -0,0 +1,74 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.user.IMenuCatalogV1InnerServiceSMO;
+import com.java110.po.menuCatalog.MenuCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:menuCatalog.updateMenuCatalog
+ * 请求路劲:/app/menuCatalog.UpdateMenuCatalog
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuCatalog.updateMenuCatalog")
+public class UpdateMenuCatalogCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(UpdateMenuCatalogCmd.class);
+
+
+    @Autowired
+    private IMenuCatalogV1InnerServiceSMO menuCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "caId", "caId不能为空");
+        Assert.hasKeyAndValue(reqJson, "storeType", "storeType不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuCatalogPo menuCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuCatalogPo.class);
+        int flag = menuCatalogV1InnerServiceSMOImpl.updateMenuCatalog(menuCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 71 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/DeleteMenuGroupCatalogCmd.java

@@ -0,0 +1,71 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuGroupCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.user.IMenuGroupCatalogV1InnerServiceSMO;
+import com.java110.po.menuGroupCatalog.MenuGroupCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * 类表述:删除
+ * 服务编码:menuGroupCatalog.deleteMenuGroupCatalog
+ * 请求路劲:/app/menuGroupCatalog.DeleteMenuGroupCatalog
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuGroupCatalog.deleteMenuGroupCatalog")
+public class DeleteMenuGroupCatalogCmd extends AbstractServiceCmdListener {
+    private static Logger logger = LoggerFactory.getLogger(DeleteMenuGroupCatalogCmd.class);
+
+    @Autowired
+    private IMenuGroupCatalogV1InnerServiceSMO menuGroupCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "gcId", "gcId不能为空");
+        Assert.hasKeyAndValue(reqJson, "storeType", "storeType不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuGroupCatalogPo menuGroupCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuGroupCatalogPo.class);
+        int flag = menuGroupCatalogV1InnerServiceSMOImpl.deleteMenuGroupCatalog(menuGroupCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 81 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/ListMenuGroupCatalogCmd.java

@@ -0,0 +1,81 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuGroupCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.dto.menuGroupCatalog.MenuGroupCatalogDto;
+import com.java110.intf.user.IMenuGroupCatalogV1InnerServiceSMO;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:menuGroupCatalog.listMenuGroupCatalog
+ * 请求路劲:/app/menuGroupCatalog.ListMenuGroupCatalog
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuGroupCatalog.listMenuGroupCatalog")
+public class ListMenuGroupCatalogCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(ListMenuGroupCatalogCmd.class);
+    @Autowired
+    private IMenuGroupCatalogV1InnerServiceSMO menuGroupCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        super.validatePageInfo(reqJson);
+    }
+
+    @Override
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuGroupCatalogDto menuGroupCatalogDto = BeanConvertUtil.covertBean(reqJson, MenuGroupCatalogDto.class);
+
+        int count = menuGroupCatalogV1InnerServiceSMOImpl.queryMenuGroupCatalogsCount(menuGroupCatalogDto);
+
+        List<MenuGroupCatalogDto> menuGroupCatalogDtos = null;
+
+        if (count > 0) {
+            menuGroupCatalogDtos = menuGroupCatalogV1InnerServiceSMOImpl.queryMenuGroupCatalogs(menuGroupCatalogDto);
+        } else {
+            menuGroupCatalogDtos = new ArrayList<>();
+        }
+
+        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, menuGroupCatalogDtos);
+
+        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+        cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 76 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/SaveMenuGroupCatalogCmd.java

@@ -0,0 +1,76 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuGroupCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.user.IMenuGroupCatalogV1InnerServiceSMO;
+import com.java110.po.menuGroupCatalog.MenuGroupCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+/**
+ * 类表述:保存
+ * 服务编码:menuGroupCatalog.saveMenuGroupCatalog
+ * 请求路劲:/app/menuGroupCatalog.SaveMenuGroupCatalog
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuGroupCatalog.saveMenuGroupCatalog")
+public class SaveMenuGroupCatalogCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveMenuGroupCatalogCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IMenuGroupCatalogV1InnerServiceSMO menuGroupCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "caId", "请求报文中未包含caId");
+        Assert.hasKeyAndValue(reqJson, "gId", "请求报文中未包含gId");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuGroupCatalogPo menuGroupCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuGroupCatalogPo.class);
+        menuGroupCatalogPo.setGcId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = menuGroupCatalogV1InnerServiceSMOImpl.saveMenuGroupCatalog(menuGroupCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 74 - 0
service-dev/src/main/java/com/java110/dev/cmd/menuGroupCatalog/UpdateMenuGroupCatalogCmd.java

@@ -0,0 +1,74 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.dev.cmd.menuGroupCatalog;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.AbstractServiceCmdListener;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.user.IMenuGroupCatalogV1InnerServiceSMO;
+import com.java110.po.menuGroupCatalog.MenuGroupCatalogPo;
+import com.java110.utils.exception.CmdException;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.vo.ResultVo;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:menuGroupCatalog.updateMenuGroupCatalog
+ * 请求路劲:/app/menuGroupCatalog.UpdateMenuGroupCatalog
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Java110Cmd(serviceCode = "menuGroupCatalog.updateMenuGroupCatalog")
+public class UpdateMenuGroupCatalogCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(UpdateMenuGroupCatalogCmd.class);
+
+
+    @Autowired
+    private IMenuGroupCatalogV1InnerServiceSMO menuGroupCatalogV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "gcId", "gcId不能为空");
+        Assert.hasKeyAndValue(reqJson, "storeType", "storeType不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MenuGroupCatalogPo menuGroupCatalogPo = BeanConvertUtil.covertBean(reqJson, MenuGroupCatalogPo.class);
+        int flag = menuGroupCatalogV1InnerServiceSMOImpl.updateMenuGroupCatalog(menuGroupCatalogPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 77 - 0
service-user/src/main/java/com/java110/user/dao/IMenuCatalogV1ServiceDao.java

@@ -0,0 +1,77 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public interface IMenuCatalogV1ServiceDao {
+
+
+    /**
+     * 保存 菜单目录信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveMenuCatalogInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询菜单目录信息(instance过程)
+     * 根据bId 查询菜单目录信息
+     * @param info bId 信息
+     * @return 菜单目录信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getMenuCatalogInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改菜单目录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateMenuCatalogInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询菜单目录总数
+     *
+     * @param info 菜单目录信息
+     * @return 菜单目录数量
+     */
+    int queryMenuCatalogsCount(Map info);
+
+}

+ 77 - 0
service-user/src/main/java/com/java110/user/dao/IMenuGroupCatalogV1ServiceDao.java

@@ -0,0 +1,77 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.dao;
+
+
+import com.java110.utils.exception.DAOException;
+import com.java110.entity.merchant.BoMerchant;
+import com.java110.entity.merchant.BoMerchantAttr;
+import com.java110.entity.merchant.Merchant;
+import com.java110.entity.merchant.MerchantAttr;
+
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+public interface IMenuGroupCatalogV1ServiceDao {
+
+
+    /**
+     * 保存 菜单目录组信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveMenuGroupCatalogInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询菜单目录组信息(instance过程)
+     * 根据bId 查询菜单目录组信息
+     * @param info bId 信息
+     * @return 菜单目录组信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getMenuGroupCatalogInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改菜单目录组信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateMenuGroupCatalogInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询菜单目录组总数
+     *
+     * @param info 菜单目录组信息
+     * @return 菜单目录组数量
+     */
+    int queryMenuGroupCatalogsCount(Map info);
+
+}

+ 112 - 0
service-user/src/main/java/com/java110/user/dao/impl/MenuCatalogV1ServiceDaoImpl.java

@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.user.dao.IMenuCatalogV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Service("menuCatalogV1ServiceDaoImpl")
+public class MenuCatalogV1ServiceDaoImpl extends BaseServiceDao implements IMenuCatalogV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(MenuCatalogV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存菜单目录信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveMenuCatalogInfo(Map info) throws DAOException {
+        logger.debug("保存 saveMenuCatalogInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("menuCatalogV1ServiceDaoImpl.saveMenuCatalogInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询菜单目录信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getMenuCatalogInfo(Map info) throws DAOException {
+        logger.debug("查询 getMenuCatalogInfo 入参 info : {}",info);
+
+        List<Map> businessMenuCatalogInfos = sqlSessionTemplate.selectList("menuCatalogV1ServiceDaoImpl.getMenuCatalogInfo",info);
+
+        return businessMenuCatalogInfos;
+    }
+
+
+    /**
+     * 修改菜单目录信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateMenuCatalogInfo(Map info) throws DAOException {
+        logger.debug("修改 updateMenuCatalogInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("menuCatalogV1ServiceDaoImpl.updateMenuCatalogInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询菜单目录数量
+     * @param info 菜单目录信息
+     * @return 菜单目录数量
+     */
+    @Override
+    public int queryMenuCatalogsCount(Map info) {
+        logger.debug("查询 queryMenuCatalogsCount 入参 info : {}",info);
+
+        List<Map> businessMenuCatalogInfos = sqlSessionTemplate.selectList("menuCatalogV1ServiceDaoImpl.queryMenuCatalogsCount", info);
+        if (businessMenuCatalogInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessMenuCatalogInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 112 - 0
service-user/src/main/java/com/java110/user/dao/impl/MenuGroupCatalogV1ServiceDaoImpl.java

@@ -0,0 +1,112 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.constant.ResponseConstant;
+import com.java110.utils.exception.DAOException;
+import com.java110.utils.util.DateUtil;
+import com.java110.core.base.dao.BaseServiceDao;
+import com.java110.user.dao.IMenuGroupCatalogV1ServiceDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 类表述:
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@Service("menuGroupCatalogV1ServiceDaoImpl")
+public class MenuGroupCatalogV1ServiceDaoImpl extends BaseServiceDao implements IMenuGroupCatalogV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(MenuGroupCatalogV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存菜单目录组信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveMenuGroupCatalogInfo(Map info) throws DAOException {
+        logger.debug("保存 saveMenuGroupCatalogInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("menuGroupCatalogV1ServiceDaoImpl.saveMenuGroupCatalogInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询菜单目录组信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getMenuGroupCatalogInfo(Map info) throws DAOException {
+        logger.debug("查询 getMenuGroupCatalogInfo 入参 info : {}",info);
+
+        List<Map> businessMenuGroupCatalogInfos = sqlSessionTemplate.selectList("menuGroupCatalogV1ServiceDaoImpl.getMenuGroupCatalogInfo",info);
+
+        return businessMenuGroupCatalogInfos;
+    }
+
+
+    /**
+     * 修改菜单目录组信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateMenuGroupCatalogInfo(Map info) throws DAOException {
+        logger.debug("修改 updateMenuGroupCatalogInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("menuGroupCatalogV1ServiceDaoImpl.updateMenuGroupCatalogInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询菜单目录组数量
+     * @param info 菜单目录组信息
+     * @return 菜单目录组数量
+     */
+    @Override
+    public int queryMenuGroupCatalogsCount(Map info) {
+        logger.debug("查询 queryMenuGroupCatalogsCount 入参 info : {}",info);
+
+        List<Map> businessMenuGroupCatalogInfos = sqlSessionTemplate.selectList("menuGroupCatalogV1ServiceDaoImpl.queryMenuGroupCatalogsCount", info);
+        if (businessMenuGroupCatalogInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessMenuGroupCatalogInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-user/src/main/java/com/java110/user/smo/impl/MenuCatalogV1InnerServiceSMOImpl.java

@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.smo.impl;
+
+
+import com.java110.user.dao.IMenuCatalogV1ServiceDao;
+import com.java110.intf.user.IMenuCatalogV1InnerServiceSMO;
+import com.java110.dto.menuCatalog.MenuCatalogDto;
+import com.java110.po.menuCatalog.MenuCatalogPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-02-26 10:12:36 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@RestController
+public class MenuCatalogV1InnerServiceSMOImpl extends BaseServiceSMO implements IMenuCatalogV1InnerServiceSMO {
+
+    @Autowired
+    private IMenuCatalogV1ServiceDao menuCatalogV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo) {
+        int saveFlag = menuCatalogV1ServiceDaoImpl.saveMenuCatalogInfo(BeanConvertUtil.beanCovertMap(menuCatalogPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo) {
+        int saveFlag = menuCatalogV1ServiceDaoImpl.updateMenuCatalogInfo(BeanConvertUtil.beanCovertMap(menuCatalogPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteMenuCatalog(@RequestBody  MenuCatalogPo menuCatalogPo) {
+       menuCatalogPo.setStatusCd("1");
+       int saveFlag = menuCatalogV1ServiceDaoImpl.updateMenuCatalogInfo(BeanConvertUtil.beanCovertMap(menuCatalogPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<MenuCatalogDto> queryMenuCatalogs(@RequestBody  MenuCatalogDto menuCatalogDto) {
+
+        //校验是否传了 分页信息
+
+        int page = menuCatalogDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            menuCatalogDto.setPage((page - 1) * menuCatalogDto.getRow());
+        }
+
+        List<MenuCatalogDto> menuCatalogs = BeanConvertUtil.covertBeanList(menuCatalogV1ServiceDaoImpl.getMenuCatalogInfo(BeanConvertUtil.beanCovertMap(menuCatalogDto)), MenuCatalogDto.class);
+
+        return menuCatalogs;
+    }
+
+
+    @Override
+    public int queryMenuCatalogsCount(@RequestBody MenuCatalogDto menuCatalogDto) {
+        return menuCatalogV1ServiceDaoImpl.queryMenuCatalogsCount(BeanConvertUtil.beanCovertMap(menuCatalogDto));    }
+
+}

+ 89 - 0
service-user/src/main/java/com/java110/user/smo/impl/MenuGroupCatalogV1InnerServiceSMOImpl.java

@@ -0,0 +1,89 @@
+/*
+ * Copyright 2017-2020 吴学文 and java110 team.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.java110.user.smo.impl;
+
+
+import com.java110.user.dao.IMenuGroupCatalogV1ServiceDao;
+import com.java110.intf.user.IMenuGroupCatalogV1InnerServiceSMO;
+import com.java110.dto.menuGroupCatalog.MenuGroupCatalogDto;
+import com.java110.po.menuGroupCatalog.MenuGroupCatalogPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.user.UserDto;
+import com.java110.dto.PageDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * 类表述: 服务之前调用的接口实现类,不对外提供接口能力 只用于接口建调用
+ * add by 吴学文 at 2022-02-26 10:18:54 mail: 928255095@qq.com
+ * open source address: https://gitee.com/wuxw7/MicroCommunity
+ * 官网:http://www.homecommunity.cn
+ * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
+ * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
+ */
+@RestController
+public class MenuGroupCatalogV1InnerServiceSMOImpl extends BaseServiceSMO implements IMenuGroupCatalogV1InnerServiceSMO {
+
+    @Autowired
+    private IMenuGroupCatalogV1ServiceDao menuGroupCatalogV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo) {
+        int saveFlag = menuGroupCatalogV1ServiceDaoImpl.saveMenuGroupCatalogInfo(BeanConvertUtil.beanCovertMap(menuGroupCatalogPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo) {
+        int saveFlag = menuGroupCatalogV1ServiceDaoImpl.updateMenuGroupCatalogInfo(BeanConvertUtil.beanCovertMap(menuGroupCatalogPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteMenuGroupCatalog(@RequestBody  MenuGroupCatalogPo menuGroupCatalogPo) {
+       menuGroupCatalogPo.setStatusCd("1");
+       int saveFlag = menuGroupCatalogV1ServiceDaoImpl.updateMenuGroupCatalogInfo(BeanConvertUtil.beanCovertMap(menuGroupCatalogPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<MenuGroupCatalogDto> queryMenuGroupCatalogs(@RequestBody  MenuGroupCatalogDto menuGroupCatalogDto) {
+
+        //校验是否传了 分页信息
+
+        int page = menuGroupCatalogDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            menuGroupCatalogDto.setPage((page - 1) * menuGroupCatalogDto.getRow());
+        }
+
+        List<MenuGroupCatalogDto> menuGroupCatalogs = BeanConvertUtil.covertBeanList(menuGroupCatalogV1ServiceDaoImpl.getMenuGroupCatalogInfo(BeanConvertUtil.beanCovertMap(menuGroupCatalogDto)), MenuGroupCatalogDto.class);
+
+        return menuGroupCatalogs;
+    }
+
+
+    @Override
+    public int queryMenuGroupCatalogsCount(@RequestBody MenuGroupCatalogDto menuGroupCatalogDto) {
+        return menuGroupCatalogV1ServiceDaoImpl.queryMenuGroupCatalogsCount(BeanConvertUtil.beanCovertMap(menuGroupCatalogDto));    }
+
+}