ソースを参照

优化 加入 物业功能查询

java110 4 年 前
コミット
6e83f19434

+ 2 - 0
java110-bean/src/main/java/com/java110/dto/menuGroup/MenuGroupDto.java

@@ -8,6 +8,8 @@ public class MenuGroupDto extends PageDto implements Serializable {
 
     public static final String GROUP_TYPE_PC = "P_WEB";
 
+    public static final String STORE_TYPE_PROPERTY = "800900000003"; // 物业
+
     private String gId;
     private String name;
     private String icon;

+ 113 - 0
java110-bean/src/main/java/com/java110/po/menuGroup/MenuGroupPo.java

@@ -0,0 +1,113 @@
+package com.java110.po.menuGroup;
+
+public class MenuGroupPo {
+
+    private String gId;
+    private String name;
+    private String icon;
+    private String label;
+    private String seq;
+    private String description;
+    private String statusCd;
+    private String groupType;
+    private String storeType;
+    private String userId;
+    private String domain;
+    private String caId;
+
+    public String getgId() {
+        return gId;
+    }
+
+    public void setgId(String gId) {
+        this.gId = gId;
+    }
+
+    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 getLabel() {
+        return label;
+    }
+
+    public void setLabel(String label) {
+        this.label = label;
+    }
+
+    public String getSeq() {
+        return seq;
+    }
+
+    public void setSeq(String seq) {
+        this.seq = seq;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+
+    public String getGroupType() {
+        return groupType;
+    }
+
+    public void setGroupType(String groupType) {
+        this.groupType = groupType;
+    }
+
+    public String getStoreType() {
+        return storeType;
+    }
+
+    public void setStoreType(String storeType) {
+        this.storeType = storeType;
+    }
+
+    public String getUserId() {
+        return userId;
+    }
+
+    public void setUserId(String userId) {
+        this.userId = userId;
+    }
+
+    public String getDomain() {
+        return domain;
+    }
+
+    public void setDomain(String domain) {
+        this.domain = domain;
+    }
+
+    public String getCaId() {
+        return caId;
+    }
+
+    public void setCaId(String caId) {
+        this.caId = caId;
+    }
+}

+ 133 - 0
java110-db/src/main/resources/mapper/user/MenuGroupV1ServiceDaoImplMapper.xml

@@ -0,0 +1,133 @@
+<?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="menuGroupV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存商户信息信息 add by wuxw 2018-07-03 -->
+    <insert id="saveMenuGroupInfo" parameterType="Map">
+        insert into m_menu_group(
+group_type,store_type,g_id,name,icon,description,label,seq
+) values (
+#{groupType},#{storeType},#{gId},#{name},#{icon},#{description},#{label},#{seq}
+)
+    </insert>
+
+
+
+    <!-- 查询商户信息信息 add by wuxw 2018-07-03 -->
+    <select id="getMenuGroupInfo" parameterType="Map" resultType="Map">
+        select  t.group_type,t.group_type groupType,t.store_type,t.store_type storeType,t.g_id,t.g_id gId,t.name,t.icon,t.description,t.status_cd,t.status_cd statusCd,t.label,t.seq 
+from m_menu_group t 
+where 1 =1 
+<if test="groupType !=null and groupType != ''">
+   and t.group_type= #{groupType}
+</if> 
+<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="name !=null and name != ''">
+   and t.name= #{name}
+</if> 
+<if test="icon !=null and icon != ''">
+   and t.icon= #{icon}
+</if> 
+<if test="description !=null and description != ''">
+   and t.description= #{description}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="label !=null and label != ''">
+   and t.label= #{label}
+</if> 
+<if test="seq !=null and seq != ''">
+   and t.seq= #{seq}
+</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="updateMenuGroupInfo" parameterType="Map">
+        update  m_menu_group t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="groupType !=null and groupType != ''">
+, t.group_type= #{groupType}
+</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="description !=null and description != ''">
+, t.description= #{description}
+</if> 
+<if test="label !=null and label != ''">
+, t.label= #{label}
+</if> 
+<if test="seq !=null and seq != ''">
+, t.seq= #{seq}
+</if> 
+ where 1=1 <if test="gId !=null and gId != ''">
+and t.g_id= #{gId}
+</if> 
+
+    </update>
+
+    <!-- 查询商户信息数量 add by wuxw 2018-07-03 -->
+     <select id="queryMenuGroupsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from m_menu_group t 
+where 1 =1 
+<if test="groupType !=null and groupType != ''">
+   and t.group_type= #{groupType}
+</if> 
+<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="name !=null and name != ''">
+   and t.name= #{name}
+</if> 
+<if test="icon !=null and icon != ''">
+   and t.icon= #{icon}
+</if> 
+<if test="description !=null and description != ''">
+   and t.description= #{description}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="label !=null and label != ''">
+   and t.label= #{label}
+</if> 
+<if test="seq !=null and seq != ''">
+   and t.seq= #{seq}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 16 - 19
java110-generator/src/main/java/com/java110/code/TableToJson.java

@@ -18,29 +18,26 @@ import java.nio.charset.Charset;
 public class TableToJson {
 
     //show create table c_orders  用这个语句获取
-    public static final String createTableSql = "CREATE TABLE `s_store` (\n" +
-            "  `store_id` varchar(30) NOT NULL COMMENT '商店ID',\n" +
-            "  `b_id` varchar(30) NOT NULL COMMENT '业务Id',\n" +
-            "  `user_id` varchar(30) NOT NULL COMMENT '用户ID',\n" +
-            "  `name` varchar(100) NOT NULL COMMENT '店铺名称',\n" +
-            "  `address` varchar(200) NOT NULL COMMENT '店铺地址',\n" +
-            "  `tel` varchar(11) NOT NULL COMMENT '电话',\n" +
-            "  `store_type_cd` varchar(12) DEFAULT NULL,\n" +
-            "  `nearby_landmarks` varchar(200) DEFAULT NULL COMMENT '地标,如王府井北60米',\n" +
-            "  `map_x` varchar(20) NOT NULL COMMENT '地区 x坐标',\n" +
-            "  `map_y` varchar(20) NOT NULL COMMENT '地区 y坐标',\n" +
+    public static final String createTableSql = "CREATE TABLE `m_menu_group` (\n" +
+            "  `g_id` varchar(30) NOT NULL COMMENT '菜单组ID',\n" +
+            "  `name` varchar(10) NOT NULL COMMENT '菜单组名称',\n" +
+            "  `icon` varchar(20) NOT NULL COMMENT '菜单图片',\n" +
+            "  `label` varchar(20) NOT NULL COMMENT '菜单标签',\n" +
+            "  `seq` int(11) NOT NULL COMMENT '列顺序',\n" +
+            "  `description` varchar(200) 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表,S 保存,0, 在用 1失效',\n" +
-            "  `state` varchar(12) NOT NULL DEFAULT '48001' COMMENT '48001 商户正常状态 48002 限制商户登录'\n" +
-            ") ";
+            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0在用,1失效',\n" +
+            "  `group_type` varchar(12) NOT NULL DEFAULT 'P_WEB' COMMENT ' 菜单类型',\n" +
+            "  `store_type` varchar(12) DEFAULT NULL COMMENT '商户类型'\n" +
+            ")";
 
     public static void main(String[] args) {
         String desc = "商户信息";
-        String id = "storeId";
-        String name = "store";
-        String shareName = "store"; //生成到那个服务下
-        String shareColumn = "store_type_cd";
-        String shareParam = "storeTypeCd";
+        String id = "gId";
+        String name = "menuGroup";
+        String shareName = "user"; //生成到那个服务下
+        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("("));

+ 20 - 21
java110-generator/src/main/resources/newBack/template_1.json

@@ -1,36 +1,35 @@
 {
   "param": {
-    "address": "address",
-    "storeTypeCd": "store_type_cd",
+    "groupType": "group_type",
+    "storeType": "store_type",
+    "gId": "g_id",
     "name": "name",
-    "tel": "tel",
+    "icon": "icon",
+    "description": "description",
     "statusCd": "status_cd",
-    "state": "state",
-    "storeId": "store_id",
-    "userId": "user_id",
-    "mapY": "map_y",
-    "mapX": "map_x"
+    "label": "label",
+    "seq": "seq"
   },
-  "name": "store",
-  "shareColumn": "store_type_cd",
-  "id": "storeId",
-  "shareName": "store",
+  "name": "menuGroup",
+  "shareColumn": "store_type",
+  "id": "gId",
+  "shareName": "user",
   "autoMove": true,
   "required": [
     {
-      "msg": "店铺名称不能为空",
-      "code": "name"
+      "msg": "菜单组ID不能为空",
+      "code": "gId"
     },
     {
-      "msg": "店铺地址不能为空",
-      "code": "address"
+      "msg": "菜单组名称不能为空",
+      "code": "name"
     },
     {
-      "msg": "电话不能为空",
-      "code": "tel"
+      "msg": "菜单类型不能为空",
+      "code": "groupType"
     }
   ],
   "desc": "商户信息",
-  "shareParam": "storeTypeCd",
-  "tableName": "s_store"
-}
+  "shareParam": "storeType",
+  "tableName": "m_menu_group"
+}

+ 67 - 0
java110-interface/src/main/java/com/java110/intf/user/IMenuGroupV1InnerServiceSMO.java

@@ -0,0 +1,67 @@
+/*
+ * 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.menuGroup.MenuGroupDto;
+import com.java110.po.menuGroup.MenuGroupPo;
+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-28 15:30:55 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("/menuGroupV1Api")
+public interface IMenuGroupV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveMenuGroup", method = RequestMethod.POST)
+    public int saveMenuGroup(@RequestBody MenuGroupPo menuGroupPo);
+
+    @RequestMapping(value = "/updateMenuGroup", method = RequestMethod.POST)
+    public int updateMenuGroup(@RequestBody MenuGroupPo menuGroupPo);
+
+    @RequestMapping(value = "/deleteMenuGroup", method = RequestMethod.POST)
+    public int deleteMenuGroup(@RequestBody MenuGroupPo menuGroupPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     * @param menuGroupDto 数据对象分享
+     * @return MenuGroupDto 对象数据
+     */
+    @RequestMapping(value = "/queryMenuGroups", method = RequestMethod.POST)
+    List<MenuGroupDto> queryMenuGroups(@RequestBody MenuGroupDto menuGroupDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param menuGroupDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryMenuGroupsCount", method = RequestMethod.POST)
+    int queryMenuGroupsCount(@RequestBody MenuGroupDto menuGroupDto);
+}

+ 81 - 0
service-user/src/main/java/com/java110/user/cmd/menuGroup/ListMenuGroupCmd.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.user.cmd.menuGroup;
+
+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.menuGroup.MenuGroupDto;
+import com.java110.intf.user.IMenuGroupV1InnerServiceSMO;
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:menuGroup.listMenuGroup
+ * 请求路劲:/app/menuGroup.ListMenuGroup
+ * add by 吴学文 at 2022-02-28 15:30:55 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 = "menuGroup.listMenuGroup")
+public class ListMenuGroupCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(ListMenuGroupCmd.class);
+    @Autowired
+    private IMenuGroupV1InnerServiceSMO menuGroupV1InnerServiceSMOImpl;
+
+    @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 {
+
+        MenuGroupDto menuGroupDto = BeanConvertUtil.covertBean(reqJson, MenuGroupDto.class);
+
+        int count = menuGroupV1InnerServiceSMOImpl.queryMenuGroupsCount(menuGroupDto);
+
+        List<MenuGroupDto> menuGroupDtos = null;
+
+        if (count > 0) {
+            menuGroupDtos = menuGroupV1InnerServiceSMOImpl.queryMenuGroups(menuGroupDto);
+        } else {
+            menuGroupDtos = new ArrayList<>();
+        }
+
+        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, menuGroupDtos);
+
+        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+        cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 77 - 0
service-user/src/main/java/com/java110/user/dao/IMenuGroupV1ServiceDao.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-28 15:30:55 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 IMenuGroupV1ServiceDao {
+
+
+    /**
+     * 保存 商户信息信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveMenuGroupInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询商户信息信息(instance过程)
+     * 根据bId 查询商户信息信息
+     * @param info bId 信息
+     * @return 商户信息信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getMenuGroupInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改商户信息信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateMenuGroupInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询商户信息总数
+     *
+     * @param info 商户信息信息
+     * @return 商户信息数量
+     */
+    int queryMenuGroupsCount(Map info);
+
+}

+ 112 - 0
service-user/src/main/java/com/java110/user/dao/impl/MenuGroupV1ServiceDaoImpl.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.IMenuGroupV1ServiceDao;
+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-28 15:30:55 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("menuGroupV1ServiceDaoImpl")
+public class MenuGroupV1ServiceDaoImpl extends BaseServiceDao implements IMenuGroupV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(MenuGroupV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存商户信息信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveMenuGroupInfo(Map info) throws DAOException {
+        logger.debug("保存 saveMenuGroupInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("menuGroupV1ServiceDaoImpl.saveMenuGroupInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询商户信息信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getMenuGroupInfo(Map info) throws DAOException {
+        logger.debug("查询 getMenuGroupInfo 入参 info : {}",info);
+
+        List<Map> businessMenuGroupInfos = sqlSessionTemplate.selectList("menuGroupV1ServiceDaoImpl.getMenuGroupInfo",info);
+
+        return businessMenuGroupInfos;
+    }
+
+
+    /**
+     * 修改商户信息信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateMenuGroupInfo(Map info) throws DAOException {
+        logger.debug("修改 updateMenuGroupInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("menuGroupV1ServiceDaoImpl.updateMenuGroupInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询商户信息数量
+     * @param info 商户信息信息
+     * @return 商户信息数量
+     */
+    @Override
+    public int queryMenuGroupsCount(Map info) {
+        logger.debug("查询 queryMenuGroupsCount 入参 info : {}",info);
+
+        List<Map> businessMenuGroupInfos = sqlSessionTemplate.selectList("menuGroupV1ServiceDaoImpl.queryMenuGroupsCount", info);
+        if (businessMenuGroupInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessMenuGroupInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-user/src/main/java/com/java110/user/smo/impl/MenuGroupV1InnerServiceSMOImpl.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.IMenuGroupV1ServiceDao;
+import com.java110.intf.user.IMenuGroupV1InnerServiceSMO;
+import com.java110.dto.menuGroup.MenuGroupDto;
+import com.java110.po.menuGroup.MenuGroupPo;
+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-28 15:30:55 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 MenuGroupV1InnerServiceSMOImpl extends BaseServiceSMO implements IMenuGroupV1InnerServiceSMO {
+
+    @Autowired
+    private IMenuGroupV1ServiceDao menuGroupV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveMenuGroup(@RequestBody  MenuGroupPo menuGroupPo) {
+        int saveFlag = menuGroupV1ServiceDaoImpl.saveMenuGroupInfo(BeanConvertUtil.beanCovertMap(menuGroupPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateMenuGroup(@RequestBody  MenuGroupPo menuGroupPo) {
+        int saveFlag = menuGroupV1ServiceDaoImpl.updateMenuGroupInfo(BeanConvertUtil.beanCovertMap(menuGroupPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteMenuGroup(@RequestBody  MenuGroupPo menuGroupPo) {
+       menuGroupPo.setStatusCd("1");
+       int saveFlag = menuGroupV1ServiceDaoImpl.updateMenuGroupInfo(BeanConvertUtil.beanCovertMap(menuGroupPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<MenuGroupDto> queryMenuGroups(@RequestBody  MenuGroupDto menuGroupDto) {
+
+        //校验是否传了 分页信息
+
+        int page = menuGroupDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            menuGroupDto.setPage((page - 1) * menuGroupDto.getRow());
+        }
+
+        List<MenuGroupDto> menuGroups = BeanConvertUtil.covertBeanList(menuGroupV1ServiceDaoImpl.getMenuGroupInfo(BeanConvertUtil.beanCovertMap(menuGroupDto)), MenuGroupDto.class);
+
+        return menuGroups;
+    }
+
+
+    @Override
+    public int queryMenuGroupsCount(@RequestBody MenuGroupDto menuGroupDto) {
+        return menuGroupV1ServiceDaoImpl.queryMenuGroupsCount(BeanConvertUtil.beanCovertMap(menuGroupDto));    }
+
+}