Browse Source

优化代码

1098226878 4 years ago
parent
commit
9f0967de8f
24 changed files with 1582 additions and 55 deletions
  1. 18 0
      java110-bean/src/main/java/com/java110/po/org/OrgStaffRelPo.java
  2. 18 0
      java110-bean/src/main/java/com/java110/po/store/StoreUserPo.java
  3. 106 0
      java110-db/src/main/resources/mapper/store/OrgStaffRelV1ServiceDaoImplMapper.xml
  4. 97 0
      java110-db/src/main/resources/mapper/store/StoreUserV1ServiceDaoImplMapper.xml
  5. 15 16
      java110-generator/src/main/java/com/java110/code/TableToJson.java
  6. 1 1
      java110-generator/src/main/java/com/java110/code/newBack/BackCoderGeneratorStart.java
  7. 1 1
      java110-generator/src/main/java/com/java110/code/newBack/GeneratorApiListener.java
  8. 22 37
      java110-generator/src/main/resources/newBack/template_1.json
  9. 68 0
      java110-interface/src/main/java/com/java110/intf/store/IOrgStaffRelV1InnerServiceSMO.java
  10. 68 0
      java110-interface/src/main/java/com/java110/intf/store/IStoreUserV1InnerServiceSMO.java
  11. 70 0
      service-store/src/main/java/com/java110/store/cmd/orgStaffRel/DeleteOrgStaffRelCmd.java
  12. 83 0
      service-store/src/main/java/com/java110/store/cmd/orgStaffRel/ListOrgStaffRelCmd.java
  13. 79 0
      service-store/src/main/java/com/java110/store/cmd/orgStaffRel/SaveOrgStaffRelCmd.java
  14. 75 0
      service-store/src/main/java/com/java110/store/cmd/orgStaffRel/UpdateOrgStaffRelCmd.java
  15. 70 0
      service-store/src/main/java/com/java110/store/cmd/storeUser/DeleteStoreUserCmd.java
  16. 82 0
      service-store/src/main/java/com/java110/store/cmd/storeUser/ListStoreUserCmd.java
  17. 78 0
      service-store/src/main/java/com/java110/store/cmd/storeUser/SaveStoreUserCmd.java
  18. 75 0
      service-store/src/main/java/com/java110/store/cmd/storeUser/UpdateStoreUserCmd.java
  19. 77 0
      service-store/src/main/java/com/java110/store/dao/IOrgStaffRelV1ServiceDao.java
  20. 77 0
      service-store/src/main/java/com/java110/store/dao/IStoreUserV1ServiceDao.java
  21. 112 0
      service-store/src/main/java/com/java110/store/dao/impl/OrgStaffRelV1ServiceDaoImpl.java
  22. 112 0
      service-store/src/main/java/com/java110/store/dao/impl/StoreUserV1ServiceDaoImpl.java
  23. 89 0
      service-store/src/main/java/com/java110/store/smo/impl/OrgStaffRelV1InnerServiceSMOImpl.java
  24. 89 0
      service-store/src/main/java/com/java110/store/smo/impl/StoreUserV1InnerServiceSMOImpl.java

+ 18 - 0
java110-bean/src/main/java/com/java110/po/org/OrgStaffRelPo.java

@@ -17,6 +17,8 @@ public class OrgStaffRelPo implements Serializable {
     private String staffId;
     private String relCd;
     private String storeId;
+    private String bId;
+    private String statusCd = "0";
 
     public String getRelId() {
         return relId;
@@ -57,4 +59,20 @@ public class OrgStaffRelPo implements Serializable {
     public void setStoreId(String storeId) {
         this.storeId = storeId;
     }
+
+    public String getbId() {
+        return bId;
+    }
+
+    public void setbId(String bId) {
+        this.bId = bId;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
 }

+ 18 - 0
java110-bean/src/main/java/com/java110/po/store/StoreUserPo.java

@@ -16,6 +16,8 @@ public class StoreUserPo implements Serializable {
     private String storeId;
     private String userId;
     private String relCd;
+    private String bId;
+    private String statusCd = "0";
 
     public String getStoreUserId() {
         return storeUserId;
@@ -48,4 +50,20 @@ public class StoreUserPo implements Serializable {
     public void setRelCd(String relCd) {
         this.relCd = relCd;
     }
+
+    public String getbId() {
+        return bId;
+    }
+
+    public void setbId(String bId) {
+        this.bId = bId;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
 }

+ 106 - 0
java110-db/src/main/resources/mapper/store/OrgStaffRelV1ServiceDaoImplMapper.xml

@@ -0,0 +1,106 @@
+<?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="orgStaffRelV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存员工部门关系信息 add by wuxw 2018-07-03 -->
+    <insert id="saveOrgStaffRelInfo" parameterType="Map">
+        insert into u_org_staff_rel(
+rel_id,store_id,org_id,staff_id,rel_cd,b_id
+) values (
+#{relId},#{storeId},#{orgId},#{staffId},#{relCd},#{bId}
+)
+    </insert>
+
+
+
+    <!-- 查询员工部门关系信息 add by wuxw 2018-07-03 -->
+    <select id="getOrgStaffRelInfo" parameterType="Map" resultType="Map">
+        select  t.rel_id,t.rel_id relId,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.org_id,t.org_id orgId,t.staff_id,t.staff_id staffId,t.rel_cd,t.rel_cd relCd 
+from u_org_staff_rel t 
+where 1 =1 
+<if test="relId !=null and relId != ''">
+   and t.rel_id= #{relId}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="storeId !=null and storeId != ''">
+   and t.store_id= #{storeId}
+</if> 
+<if test="orgId !=null and orgId != ''">
+   and t.org_id= #{orgId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+   and t.staff_id= #{staffId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+   and t.rel_cd= #{relCd}
+</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="updateOrgStaffRelInfo" parameterType="Map">
+        update  u_org_staff_rel t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="storeId !=null and storeId != ''">
+, t.store_id= #{storeId}
+</if> 
+<if test="orgId !=null and orgId != ''">
+, t.org_id= #{orgId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+, t.staff_id= #{staffId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+, t.rel_cd= #{relCd}
+</if> 
+ where 1=1 <if test="relId !=null and relId != ''">
+and t.rel_id= #{relId}
+</if> 
+
+    </update>
+
+    <!-- 查询员工部门关系数量 add by wuxw 2018-07-03 -->
+     <select id="queryOrgStaffRelsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from u_org_staff_rel t 
+where 1 =1 
+<if test="relId !=null and relId != ''">
+   and t.rel_id= #{relId}
+</if> 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="storeId !=null and storeId != ''">
+   and t.store_id= #{storeId}
+</if> 
+<if test="orgId !=null and orgId != ''">
+   and t.org_id= #{orgId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+   and t.staff_id= #{staffId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+   and t.rel_cd= #{relCd}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 97 - 0
java110-db/src/main/resources/mapper/store/StoreUserV1ServiceDaoImplMapper.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="storeUserV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存商户用户关系信息 add by wuxw 2018-07-03 -->
+    <insert id="saveStoreUserInfo" parameterType="Map">
+        insert into s_store_user(
+store_user_id,store_id,user_id,rel_cd,b_id
+) values (
+#{storeUserId},#{storeId},#{userId},#{relCd},#{bId}
+)
+    </insert>
+
+
+
+    <!-- 查询商户用户关系信息 add by wuxw 2018-07-03 -->
+    <select id="getStoreUserInfo" parameterType="Map" resultType="Map">
+        select  t.status_cd,t.status_cd statusCd,t.store_user_id,t.store_user_id storeUserId,t.store_id,t.store_id storeId,t.user_id,t.user_id userId,t.rel_cd,t.rel_cd relCd 
+from s_store_user t 
+where 1 =1 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="storeUserId !=null and storeUserId != ''">
+   and t.store_user_id= #{storeUserId}
+</if> 
+<if test="storeId !=null and storeId != ''">
+   and t.store_id= #{storeId}
+</if> 
+<if test="userId !=null and userId != ''">
+   and t.user_id= #{userId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+   and t.rel_cd= #{relCd}
+</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="updateStoreUserInfo" parameterType="Map">
+        update  s_store_user t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="storeId !=null and storeId != ''">
+, t.store_id= #{storeId}
+</if> 
+<if test="userId !=null and userId != ''">
+, t.user_id= #{userId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+, t.rel_cd= #{relCd}
+</if> 
+ where 1=1 <if test="storeUserId !=null and storeUserId != ''">
+and t.store_user_id= #{storeUserId}
+</if> 
+
+    </update>
+
+    <!-- 查询商户用户关系数量 add by wuxw 2018-07-03 -->
+     <select id="queryStoreUsersCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from s_store_user t 
+where 1 =1 
+<if test="statusCd !=null and statusCd != ''">
+   and t.status_cd= #{statusCd}
+</if> 
+<if test="storeUserId !=null and storeUserId != ''">
+   and t.store_user_id= #{storeUserId}
+</if> 
+<if test="storeId !=null and storeId != ''">
+   and t.store_id= #{storeId}
+</if> 
+<if test="userId !=null and userId != ''">
+   and t.user_id= #{userId}
+</if> 
+<if test="relCd !=null and relCd != ''">
+   and t.rel_cd= #{relCd}
+</if> 
+
+
+     </select>
+
+</mapper>

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

@@ -7,20 +7,19 @@ import com.java110.utils.util.StringUtil;
 public class TableToJson {
 
     //show create table c_orders  用这个语句获取
-    public static final String createTableSql = "CREATE TABLE `parking_area_text` (\n" +
-            "  `pa_id` varchar(30) NOT NULL COMMENT '停车场ID',\n" +
-            "  `community_id` varchar(30) NOT NULL COMMENT '小区ID',\n" +
-            "  `type_cd` varchar(12) NOT NULL COMMENT '类型:1001 月租车进场,2002 月租车出场,3003 月租车到期,4004 临时车进场 5005 临时车出场 6006 临时车未缴费',\n" +
-            "  `text1` varchar(512) NOT NULL COMMENT '文字显示第一行',\n" +
-            "  `text2` varchar(512) NOT NULL COMMENT '文字显示第二行',\n" +
-            "  `text3` varchar(512) NOT NULL COMMENT '文字显示第三行',\n" +
-            "  `text4` varchar(512) NOT NULL COMMENT '文字显示第四行',\n" +
-            "  `voice` varchar(512) NOT NULL COMMENT '语音播放',\n" +
+    public static final String createTableSql = "CREATE TABLE `u_org_staff_rel` (\n" +
+            "  `rel_id` varchar(30) NOT NULL COMMENT '组织员工ID',\n" +
+            "  `b_id` varchar(30) NOT NULL COMMENT '业务Id',\n" +
+            "  `org_id` varchar(30) NOT NULL COMMENT '组织ID',\n" +
+            "  `staff_id` varchar(30) NOT NULL COMMENT '员工ID',\n" +
+            "  `rel_cd` varchar(30) NOT NULL COMMENT '关系角色,10000 普通员工, 20000部门经理 查看t_dict表',\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" +
+            "  `status_cd` varchar(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,0在用,1失效',\n" +
+            "  `store_id` varchar(30) NOT NULL COMMENT '商户ID'\n" +
             ")";
 
     public static void main(String[] args) {
+
         //业务名称 desc 业务编码名称生成后类名 name 主键 id  需要放到那个服务 shareName
         String newSql = createTableSql.substring(createTableSql.indexOf("(") + 1, createTableSql.lastIndexOf(")"));
         String tableName = createTableSql.substring(createTableSql.indexOf("TABLE") + 5, createTableSql.indexOf("("));
@@ -29,12 +28,12 @@ public class TableToJson {
         String[] rowSqls = newSql.split("',");
         JSONObject param = new JSONObject();
         param.put("autoMove", true);
-        param.put("desc", "");
-        param.put("id", "");
-        param.put("name", "");
-        param.put("shareColumn", "community_id");
-        param.put("shareName", "");
-        param.put("shareParam", "communityId");
+        param.put("desc", "员工部门关系");
+        param.put("id", "relId");
+        param.put("name", "orgStaffRel");
+        param.put("shareColumn", "store_id");
+        param.put("shareName", "store");
+        param.put("shareParam", "storeId");
         param.put("tableName", tableName);
         JSONObject paramColumn = new JSONObject();
         JSONArray requireds = new JSONArray();

+ 1 - 1
java110-generator/src/main/java/com/java110/code/newBack/BackCoderGeneratorStart.java

@@ -70,7 +70,7 @@ public class BackCoderGeneratorStart extends BaseGenerator {
         generatorInnerServiceSMOImpl.generator(data);
 
         GeneratorDtoBean generatorDtoBean = new GeneratorDtoBean();
-        generatorDtoBean.generator(data);
+        //generatorDtoBean.generator(data);
 
         GeneratorIInnerServiceSMO generatorIInnerServiceSMO = new GeneratorIInnerServiceSMO();
         generatorIInnerServiceSMO.generator(data);

+ 1 - 1
java110-generator/src/main/java/com/java110/code/newBack/GeneratorApiListener.java

@@ -14,7 +14,7 @@ public class GeneratorApiListener extends BaseGenerator {
      * @param data
      */
     public void generator(Data data) throws Exception {
-        genneratorPo(data);             //API DataVo对象
+        //genneratorPo(data);             //API DataVo对象
         genneratorSaveCmd(data);            //Api BmoImpl
         genneratorUpdateBmoImpl(data);            //Api BmoImpl
         genneratorDeleteBmoImpl(data);            //Api BmoImpl

+ 22 - 37
java110-generator/src/main/resources/newBack/template_1.json

@@ -1,55 +1,40 @@
 {
   "param": {
-    "voice": "voice",
-    "typeCd": "type_cd",
-    "text3": "text3",
-    "text4": "text4",
-    "text1": "text1",
-    "text2": "text2",
-    "paId": "pa_id",
+    "relId": "rel_id",
     "statusCd": "status_cd",
-    "communityId": "community_id"
+    "storeId": "store_id",
+    "orgId": "org_id",
+    "staffId": "staff_id",
+    "relCd": "rel_cd"
   },
-  "name": "",
-  "shareColumn": "community_id",
-  "id": "",
-  "shareName": "",
+  "name": "orgStaffRel",
+  "shareColumn": "store_id",
+  "id": "relId",
+  "shareName": "store",
   "autoMove": true,
   "required": [
     {
-      "msg": "停车场ID不能为空",
-      "code": "paId"
+      "msg": "组织员工ID不能为空",
+      "code": "relId"
     },
     {
-      "msg": "小区ID不能为空",
-      "code": "communityId"
+      "msg": "组织ID不能为空",
+      "code": "orgId"
     },
     {
-      "msg": "类型:1001不能为空",
-      "code": "typeCd"
+      "msg": "员工ID不能为空",
+      "code": "staffId"
     },
     {
-      "msg": "文字显示第一行不能为空",
-      "code": "text1"
+      "msg": "关系角色不能为空",
+      "code": "relCd"
     },
     {
-      "msg": "文字显示第二行不能为空",
-      "code": "text2"
-    },
-    {
-      "msg": "文字显示第三行不能为空",
-      "code": "text3"
-    },
-    {
-      "msg": "文字显示第四行不能为空",
-      "code": "text4"
-    },
-    {
-      "msg": "语音播放不能为空",
-      "code": "voice"
+      "msg": "商户ID'不能为空",
+      "code": "storeId"
     }
   ],
-  "desc": "",
-  "shareParam": "communityId",
-  "tableName": "parking_area_text"
+  "desc": "员工部门关系",
+  "shareParam": "storeId",
+  "tableName": "u_org_staff_rel"
 }

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/store/IOrgStaffRelV1InnerServiceSMO.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.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.org.OrgStaffRelDto;
+import com.java110.po.org.OrgStaffRelPo;
+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 2021-10-08 16:25:38 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 = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/orgStaffRelV1Api")
+public interface IOrgStaffRelV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveOrgStaffRel", method = RequestMethod.POST)
+    public int saveOrgStaffRel(@RequestBody OrgStaffRelPo orgStaffRelPo);
+
+    @RequestMapping(value = "/updateOrgStaffRel", method = RequestMethod.POST)
+    public int updateOrgStaffRel(@RequestBody  OrgStaffRelPo orgStaffRelPo);
+
+    @RequestMapping(value = "/deleteOrgStaffRel", method = RequestMethod.POST)
+    public int deleteOrgStaffRel(@RequestBody  OrgStaffRelPo orgStaffRelPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param orgStaffRelDto 数据对象分享
+     * @return OrgStaffRelDto 对象数据
+     */
+    @RequestMapping(value = "/queryOrgStaffRels", method = RequestMethod.POST)
+    List<OrgStaffRelDto> queryOrgStaffRels(@RequestBody OrgStaffRelDto orgStaffRelDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param orgStaffRelDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryOrgStaffRelsCount", method = RequestMethod.POST)
+    int queryOrgStaffRelsCount(@RequestBody OrgStaffRelDto orgStaffRelDto);
+}

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/store/IStoreUserV1InnerServiceSMO.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.store;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.store.StoreUserDto;
+import com.java110.po.store.StoreUserPo;
+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 2021-10-08 16:05:30 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 = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/storeUserV1Api")
+public interface IStoreUserV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveStoreUser", method = RequestMethod.POST)
+    public int saveStoreUser(@RequestBody StoreUserPo storeUserPo);
+
+    @RequestMapping(value = "/updateStoreUser", method = RequestMethod.POST)
+    public int updateStoreUser(@RequestBody  StoreUserPo storeUserPo);
+
+    @RequestMapping(value = "/deleteStoreUser", method = RequestMethod.POST)
+    public int deleteStoreUser(@RequestBody  StoreUserPo storeUserPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param storeUserDto 数据对象分享
+     * @return StoreUserDto 对象数据
+     */
+    @RequestMapping(value = "/queryStoreUsers", method = RequestMethod.POST)
+    List<StoreUserDto> queryStoreUsers(@RequestBody StoreUserDto storeUserDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param storeUserDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryStoreUsersCount", method = RequestMethod.POST)
+    int queryStoreUsersCount(@RequestBody StoreUserDto storeUserDto);
+}

+ 70 - 0
service-store/src/main/java/com/java110/store/cmd/orgStaffRel/DeleteOrgStaffRelCmd.java

@@ -0,0 +1,70 @@
+/*
+ * 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.store.cmd.orgStaffRel;
+
+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.store.IOrgStaffRelV1InnerServiceSMO;
+import com.java110.po.org.OrgStaffRelPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+/**
+ * 类表述:删除
+ * 服务编码:orgStaffRel.deleteOrgStaffRel
+ * 请求路劲:/app/orgStaffRel.DeleteOrgStaffRel
+ * add by 吴学文 at 2021-10-08 16:25:38 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 = "orgStaffRel.deleteOrgStaffRel")
+public class DeleteOrgStaffRelCmd extends AbstractServiceCmdListener {
+  private static Logger logger = LoggerFactory.getLogger(DeleteOrgStaffRelCmd.class);
+
+    @Autowired
+    private IOrgStaffRelV1InnerServiceSMO orgStaffRelV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "relId", "relId不能为空");
+Assert.hasKeyAndValue(reqJson, "storeId", "storeId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       OrgStaffRelPo orgStaffRelPo = BeanConvertUtil.covertBean(reqJson, OrgStaffRelPo.class);
+        int flag = orgStaffRelV1InnerServiceSMOImpl.deleteOrgStaffRel(orgStaffRelPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 83 - 0
service-store/src/main/java/com/java110/store/cmd/orgStaffRel/ListOrgStaffRelCmd.java

@@ -0,0 +1,83 @@
+/*
+ * 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.store.cmd.orgStaffRel;
+
+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.dto.org.OrgStaffRelDto;
+import com.java110.intf.store.IOrgStaffRelV1InnerServiceSMO;
+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.springframework.beans.factory.annotation.Autowired;
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:orgStaffRel.listOrgStaffRel
+ * 请求路劲:/app/orgStaffRel.ListOrgStaffRel
+ * add by 吴学文 at 2021-10-08 16:25:38 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 = "orgStaffRel.listOrgStaffRel")
+public class ListOrgStaffRelCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(ListOrgStaffRelCmd.class);
+    @Autowired
+    private IOrgStaffRelV1InnerServiceSMO orgStaffRelV1InnerServiceSMOImpl;
+
+    @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 {
+
+           OrgStaffRelDto orgStaffRelDto = BeanConvertUtil.covertBean(reqJson, OrgStaffRelDto.class);
+
+           int count = orgStaffRelV1InnerServiceSMOImpl.queryOrgStaffRelsCount(orgStaffRelDto);
+
+           List<OrgStaffRelDto> orgStaffRelDtos = null;
+
+           if (count > 0) {
+               orgStaffRelDtos = orgStaffRelV1InnerServiceSMOImpl.queryOrgStaffRels(orgStaffRelDto);
+           } else {
+               orgStaffRelDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, orgStaffRelDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 79 - 0
service-store/src/main/java/com/java110/store/cmd/orgStaffRel/SaveOrgStaffRelCmd.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.store.cmd.orgStaffRel;
+
+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.store.IOrgStaffRelV1InnerServiceSMO;
+import com.java110.po.org.OrgStaffRelPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 类表述:保存
+ * 服务编码:orgStaffRel.saveOrgStaffRel
+ * 请求路劲:/app/orgStaffRel.SaveOrgStaffRel
+ * add by 吴学文 at 2021-10-08 16:25:38 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 = "orgStaffRel.saveOrgStaffRel")
+public class SaveOrgStaffRelCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveOrgStaffRelCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IOrgStaffRelV1InnerServiceSMO orgStaffRelV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "relId", "请求报文中未包含relId");
+Assert.hasKeyAndValue(reqJson, "orgId", "请求报文中未包含orgId");
+Assert.hasKeyAndValue(reqJson, "staffId", "请求报文中未包含staffId");
+Assert.hasKeyAndValue(reqJson, "relCd", "请求报文中未包含relCd");
+Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含storeId");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       OrgStaffRelPo orgStaffRelPo = BeanConvertUtil.covertBean(reqJson, OrgStaffRelPo.class);
+        orgStaffRelPo.setRelId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = orgStaffRelV1InnerServiceSMOImpl.saveOrgStaffRel(orgStaffRelPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 75 - 0
service-store/src/main/java/com/java110/store/cmd/orgStaffRel/UpdateOrgStaffRelCmd.java

@@ -0,0 +1,75 @@
+/*
+ * 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.store.cmd.orgStaffRel;
+
+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.store.IOrgStaffRelV1InnerServiceSMO;
+import com.java110.po.org.OrgStaffRelPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:orgStaffRel.updateOrgStaffRel
+ * 请求路劲:/app/orgStaffRel.UpdateOrgStaffRel
+ * add by 吴学文 at 2021-10-08 16:25:38 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 = "orgStaffRel.updateOrgStaffRel")
+public class UpdateOrgStaffRelCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(UpdateOrgStaffRelCmd.class);
+
+
+    @Autowired
+    private IOrgStaffRelV1InnerServiceSMO orgStaffRelV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "relId", "relId不能为空");
+Assert.hasKeyAndValue(reqJson, "storeId", "storeId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       OrgStaffRelPo orgStaffRelPo = BeanConvertUtil.covertBean(reqJson, OrgStaffRelPo.class);
+        int flag = orgStaffRelV1InnerServiceSMOImpl.updateOrgStaffRel(orgStaffRelPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 70 - 0
service-store/src/main/java/com/java110/store/cmd/storeUser/DeleteStoreUserCmd.java

@@ -0,0 +1,70 @@
+/*
+ * 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.store.cmd.storeUser;
+
+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.store.IStoreUserV1InnerServiceSMO;
+import com.java110.po.store.StoreUserPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+/**
+ * 类表述:删除
+ * 服务编码:storeUser.deleteStoreUser
+ * 请求路劲:/app/storeUser.DeleteStoreUser
+ * add by 吴学文 at 2021-10-08 16:05:30 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 = "storeUser.deleteStoreUser")
+public class DeleteStoreUserCmd extends AbstractServiceCmdListener {
+  private static Logger logger = LoggerFactory.getLogger(DeleteStoreUserCmd.class);
+
+    @Autowired
+    private IStoreUserV1InnerServiceSMO storeUserV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "storeUserId", "storeUserId不能为空");
+Assert.hasKeyAndValue(reqJson, "storeId", "storeId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       StoreUserPo storeUserPo = BeanConvertUtil.covertBean(reqJson, StoreUserPo.class);
+        int flag = storeUserV1InnerServiceSMOImpl.deleteStoreUser(storeUserPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 82 - 0
service-store/src/main/java/com/java110/store/cmd/storeUser/ListStoreUserCmd.java

@@ -0,0 +1,82 @@
+/*
+ * 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.store.cmd.storeUser;
+
+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.dto.store.StoreUserDto;
+import com.java110.intf.store.IStoreUserV1InnerServiceSMO;
+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 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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:storeUser.listStoreUser
+ * 请求路劲:/app/storeUser.ListStoreUser
+ * add by 吴学文 at 2021-10-08 16:05:30 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 = "storeUser.listStoreUser")
+public class ListStoreUserCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(ListStoreUserCmd.class);
+    @Autowired
+    private IStoreUserV1InnerServiceSMO storeUserV1InnerServiceSMOImpl;
+
+    @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 {
+
+           StoreUserDto storeUserDto = BeanConvertUtil.covertBean(reqJson, StoreUserDto.class);
+
+           int count = storeUserV1InnerServiceSMOImpl.queryStoreUsersCount(storeUserDto);
+
+           List<StoreUserDto> storeUserDtos = null;
+
+           if (count > 0) {
+               storeUserDtos = storeUserV1InnerServiceSMOImpl.queryStoreUsers(storeUserDto);
+           } else {
+               storeUserDtos = new ArrayList<>();
+           }
+
+           ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, storeUserDtos);
+
+           ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+           cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 78 - 0
service-store/src/main/java/com/java110/store/cmd/storeUser/SaveStoreUserCmd.java

@@ -0,0 +1,78 @@
+/*
+ * 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.store.cmd.storeUser;
+
+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.store.IStoreUserV1InnerServiceSMO;
+import com.java110.po.store.StoreUserPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * 类表述:保存
+ * 服务编码:storeUser.saveStoreUser
+ * 请求路劲:/app/storeUser.SaveStoreUser
+ * add by 吴学文 at 2021-10-08 16:05:30 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 = "storeUser.saveStoreUser")
+public class SaveStoreUserCmd extends AbstractServiceCmdListener {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveStoreUserCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IStoreUserV1InnerServiceSMO storeUserV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "storeUserId", "请求报文中未包含storeUserId");
+Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含storeId");
+Assert.hasKeyAndValue(reqJson, "userId", "请求报文中未包含userId");
+Assert.hasKeyAndValue(reqJson, "relCd", "请求报文中未包含relCd");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       StoreUserPo storeUserPo = BeanConvertUtil.covertBean(reqJson, StoreUserPo.class);
+        storeUserPo.setStoreUserId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = storeUserV1InnerServiceSMOImpl.saveStoreUser(storeUserPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 75 - 0
service-store/src/main/java/com/java110/store/cmd/storeUser/UpdateStoreUserCmd.java

@@ -0,0 +1,75 @@
+/*
+ * 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.store.cmd.storeUser;
+
+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.store.IStoreUserV1InnerServiceSMO;
+import com.java110.po.store.StoreUserPo;
+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.springframework.beans.factory.annotation.Autowired;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:storeUser.updateStoreUser
+ * 请求路劲:/app/storeUser.UpdateStoreUser
+ * add by 吴学文 at 2021-10-08 16:05:30 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 = "storeUser.updateStoreUser")
+public class UpdateStoreUserCmd extends AbstractServiceCmdListener {
+
+  private static Logger logger = LoggerFactory.getLogger(UpdateStoreUserCmd.class);
+
+
+    @Autowired
+    private IStoreUserV1InnerServiceSMO storeUserV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "storeUserId", "storeUserId不能为空");
+Assert.hasKeyAndValue(reqJson, "storeId", "storeId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+       StoreUserPo storeUserPo = BeanConvertUtil.covertBean(reqJson, StoreUserPo.class);
+        int flag = storeUserV1InnerServiceSMOImpl.updateStoreUser(storeUserPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 77 - 0
service-store/src/main/java/com/java110/store/dao/IOrgStaffRelV1ServiceDao.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.store.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 2021-10-08 16:25:38 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 IOrgStaffRelV1ServiceDao {
+
+
+    /**
+     * 保存 员工部门关系信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveOrgStaffRelInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询员工部门关系信息(instance过程)
+     * 根据bId 查询员工部门关系信息
+     * @param info bId 信息
+     * @return 员工部门关系信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getOrgStaffRelInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改员工部门关系信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateOrgStaffRelInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询员工部门关系总数
+     *
+     * @param info 员工部门关系信息
+     * @return 员工部门关系数量
+     */
+    int queryOrgStaffRelsCount(Map info);
+
+}

+ 77 - 0
service-store/src/main/java/com/java110/store/dao/IStoreUserV1ServiceDao.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.store.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 2021-10-08 16:05:29 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 IStoreUserV1ServiceDao {
+
+
+    /**
+     * 保存 商户用户关系信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveStoreUserInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询商户用户关系信息(instance过程)
+     * 根据bId 查询商户用户关系信息
+     * @param info bId 信息
+     * @return 商户用户关系信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getStoreUserInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改商户用户关系信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateStoreUserInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询商户用户关系总数
+     *
+     * @param info 商户用户关系信息
+     * @return 商户用户关系数量
+     */
+    int queryStoreUsersCount(Map info);
+
+}

+ 112 - 0
service-store/src/main/java/com/java110/store/dao/impl/OrgStaffRelV1ServiceDaoImpl.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.store.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.store.dao.IOrgStaffRelV1ServiceDao;
+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 2021-10-08 16:25:38 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("orgStaffRelV1ServiceDaoImpl")
+public class OrgStaffRelV1ServiceDaoImpl extends BaseServiceDao implements IOrgStaffRelV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(OrgStaffRelV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存员工部门关系信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveOrgStaffRelInfo(Map info) throws DAOException {
+        logger.debug("保存 saveOrgStaffRelInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("orgStaffRelV1ServiceDaoImpl.saveOrgStaffRelInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询员工部门关系信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getOrgStaffRelInfo(Map info) throws DAOException {
+        logger.debug("查询 getOrgStaffRelInfo 入参 info : {}",info);
+
+        List<Map> businessOrgStaffRelInfos = sqlSessionTemplate.selectList("orgStaffRelV1ServiceDaoImpl.getOrgStaffRelInfo",info);
+
+        return businessOrgStaffRelInfos;
+    }
+
+
+    /**
+     * 修改员工部门关系信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateOrgStaffRelInfo(Map info) throws DAOException {
+        logger.debug("修改 updateOrgStaffRelInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("orgStaffRelV1ServiceDaoImpl.updateOrgStaffRelInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询员工部门关系数量
+     * @param info 员工部门关系信息
+     * @return 员工部门关系数量
+     */
+    @Override
+    public int queryOrgStaffRelsCount(Map info) {
+        logger.debug("查询 queryOrgStaffRelsCount 入参 info : {}",info);
+
+        List<Map> businessOrgStaffRelInfos = sqlSessionTemplate.selectList("orgStaffRelV1ServiceDaoImpl.queryOrgStaffRelsCount", info);
+        if (businessOrgStaffRelInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessOrgStaffRelInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 112 - 0
service-store/src/main/java/com/java110/store/dao/impl/StoreUserV1ServiceDaoImpl.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.store.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.store.dao.IStoreUserV1ServiceDao;
+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 2021-10-08 16:05:29 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("storeUserV1ServiceDaoImpl")
+public class StoreUserV1ServiceDaoImpl extends BaseServiceDao implements IStoreUserV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(StoreUserV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存商户用户关系信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveStoreUserInfo(Map info) throws DAOException {
+        logger.debug("保存 saveStoreUserInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("storeUserV1ServiceDaoImpl.saveStoreUserInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询商户用户关系信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getStoreUserInfo(Map info) throws DAOException {
+        logger.debug("查询 getStoreUserInfo 入参 info : {}",info);
+
+        List<Map> businessStoreUserInfos = sqlSessionTemplate.selectList("storeUserV1ServiceDaoImpl.getStoreUserInfo",info);
+
+        return businessStoreUserInfos;
+    }
+
+
+    /**
+     * 修改商户用户关系信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateStoreUserInfo(Map info) throws DAOException {
+        logger.debug("修改 updateStoreUserInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("storeUserV1ServiceDaoImpl.updateStoreUserInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询商户用户关系数量
+     * @param info 商户用户关系信息
+     * @return 商户用户关系数量
+     */
+    @Override
+    public int queryStoreUsersCount(Map info) {
+        logger.debug("查询 queryStoreUsersCount 入参 info : {}",info);
+
+        List<Map> businessStoreUserInfos = sqlSessionTemplate.selectList("storeUserV1ServiceDaoImpl.queryStoreUsersCount", info);
+        if (businessStoreUserInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessStoreUserInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-store/src/main/java/com/java110/store/smo/impl/OrgStaffRelV1InnerServiceSMOImpl.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.store.smo.impl;
+
+
+import com.java110.dto.org.OrgStaffRelDto;
+import com.java110.po.org.OrgStaffRelPo;
+import com.java110.store.dao.IOrgStaffRelV1ServiceDao;
+import com.java110.intf.store.IOrgStaffRelV1InnerServiceSMO;
+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 2021-10-08 16:25:38 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 OrgStaffRelV1InnerServiceSMOImpl extends BaseServiceSMO implements IOrgStaffRelV1InnerServiceSMO {
+
+    @Autowired
+    private IOrgStaffRelV1ServiceDao orgStaffRelV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveOrgStaffRel(@RequestBody OrgStaffRelPo orgStaffRelPo) {
+        int saveFlag = orgStaffRelV1ServiceDaoImpl.saveOrgStaffRelInfo(BeanConvertUtil.beanCovertMap(orgStaffRelPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateOrgStaffRel(@RequestBody  OrgStaffRelPo orgStaffRelPo) {
+        int saveFlag = orgStaffRelV1ServiceDaoImpl.updateOrgStaffRelInfo(BeanConvertUtil.beanCovertMap(orgStaffRelPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteOrgStaffRel(@RequestBody  OrgStaffRelPo orgStaffRelPo) {
+       orgStaffRelPo.setStatusCd("1");
+       int saveFlag = orgStaffRelV1ServiceDaoImpl.updateOrgStaffRelInfo(BeanConvertUtil.beanCovertMap(orgStaffRelPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<OrgStaffRelDto> queryOrgStaffRels(@RequestBody OrgStaffRelDto orgStaffRelDto) {
+
+        //校验是否传了 分页信息
+
+        int page = orgStaffRelDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            orgStaffRelDto.setPage((page - 1) * orgStaffRelDto.getRow());
+        }
+
+        List<OrgStaffRelDto> orgStaffRels = BeanConvertUtil.covertBeanList(orgStaffRelV1ServiceDaoImpl.getOrgStaffRelInfo(BeanConvertUtil.beanCovertMap(orgStaffRelDto)), OrgStaffRelDto.class);
+
+        return orgStaffRels;
+    }
+
+
+    @Override
+    public int queryOrgStaffRelsCount(@RequestBody OrgStaffRelDto orgStaffRelDto) {
+        return orgStaffRelV1ServiceDaoImpl.queryOrgStaffRelsCount(BeanConvertUtil.beanCovertMap(orgStaffRelDto));    }
+
+}

+ 89 - 0
service-store/src/main/java/com/java110/store/smo/impl/StoreUserV1InnerServiceSMOImpl.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.store.smo.impl;
+
+
+import com.java110.dto.store.StoreUserDto;
+import com.java110.po.store.StoreUserPo;
+import com.java110.store.dao.IStoreUserV1ServiceDao;
+import com.java110.intf.store.IStoreUserV1InnerServiceSMO;
+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 2021-10-08 16:05:30 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 StoreUserV1InnerServiceSMOImpl extends BaseServiceSMO implements IStoreUserV1InnerServiceSMO {
+
+    @Autowired
+    private IStoreUserV1ServiceDao storeUserV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveStoreUser(@RequestBody StoreUserPo storeUserPo) {
+        int saveFlag = storeUserV1ServiceDaoImpl.saveStoreUserInfo(BeanConvertUtil.beanCovertMap(storeUserPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateStoreUser(@RequestBody  StoreUserPo storeUserPo) {
+        int saveFlag = storeUserV1ServiceDaoImpl.updateStoreUserInfo(BeanConvertUtil.beanCovertMap(storeUserPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteStoreUser(@RequestBody  StoreUserPo storeUserPo) {
+       storeUserPo.setStatusCd("1");
+       int saveFlag = storeUserV1ServiceDaoImpl.updateStoreUserInfo(BeanConvertUtil.beanCovertMap(storeUserPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<StoreUserDto> queryStoreUsers(@RequestBody StoreUserDto storeUserDto) {
+
+        //校验是否传了 分页信息
+
+        int page = storeUserDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            storeUserDto.setPage((page - 1) * storeUserDto.getRow());
+        }
+
+        List<StoreUserDto> storeUsers = BeanConvertUtil.covertBeanList(storeUserV1ServiceDaoImpl.getStoreUserInfo(BeanConvertUtil.beanCovertMap(storeUserDto)), StoreUserDto.class);
+
+        return storeUsers;
+    }
+
+
+    @Override
+    public int queryStoreUsersCount(@RequestBody StoreUserDto storeUserDto) {
+        return storeUserV1ServiceDaoImpl.queryStoreUsersCount(BeanConvertUtil.beanCovertMap(storeUserDto));    }
+
+}