Browse Source

优化 保养计划

wuxw 3 years ago
parent
commit
9fa63e3165
23 changed files with 1901 additions and 45 deletions
  1. 76 0
      java110-bean/src/main/java/com/java110/dto/maintainancePlanMachine/MaintainancePlanMachineDto.java
  2. 76 0
      java110-bean/src/main/java/com/java110/dto/maintainancePlanStaff/MaintainancePlanStaffDto.java
  3. 75 45
      java110-bean/src/main/java/com/java110/po/maintainancePlan/MaintainancePlanPo.java
  4. 75 0
      java110-bean/src/main/java/com/java110/po/maintainancePlanMachine/MaintainancePlanMachinePo.java
  5. 85 0
      java110-bean/src/main/java/com/java110/po/maintainancePlanStaff/MaintainancePlanStaffPo.java
  6. 112 0
      java110-db/src/main/resources/mapper/community/MaintainancePlanMachineV1ServiceDaoImplMapper.xml
  7. 100 0
      java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml
  8. 68 0
      java110-interface/src/main/java/com/java110/intf/community/IMaintainancePlanMachineV1InnerServiceSMO.java
  9. 68 0
      java110-interface/src/main/java/com/java110/intf/community/IMaintainancePlanStaffV1InnerServiceSMO.java
  10. 71 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/DeleteMaintainancePlanMachineCmd.java
  11. 71 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/DeleteMaintainancePlanStaffCmd.java
  12. 82 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/ListMaintainancePlanMachineCmd.java
  13. 82 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/ListMaintainancePlanStaffCmd.java
  14. 78 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/SaveMaintainancePlanMachineCmd.java
  15. 78 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/SaveMaintainancePlanStaffCmd.java
  16. 74 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/UpdateMaintainancePlanMachineCmd.java
  17. 74 0
      service-community/src/main/java/com/java110/community/cmd/maintainancePlan/UpdateMaintainancePlanStaffCmd.java
  18. 77 0
      service-community/src/main/java/com/java110/community/dao/IMaintainancePlanMachineV1ServiceDao.java
  19. 77 0
      service-community/src/main/java/com/java110/community/dao/IMaintainancePlanStaffV1ServiceDao.java
  20. 112 0
      service-community/src/main/java/com/java110/community/dao/impl/MaintainancePlanMachineV1ServiceDaoImpl.java
  21. 112 0
      service-community/src/main/java/com/java110/community/dao/impl/MaintainancePlanStaffV1ServiceDaoImpl.java
  22. 89 0
      service-community/src/main/java/com/java110/community/smo/impl/MaintainancePlanMachineV1InnerServiceSMOImpl.java
  23. 89 0
      service-community/src/main/java/com/java110/community/smo/impl/MaintainancePlanStaffV1InnerServiceSMOImpl.java

+ 76 - 0
java110-bean/src/main/java/com/java110/dto/maintainancePlanMachine/MaintainancePlanMachineDto.java

@@ -0,0 +1,76 @@
+package com.java110.dto.maintainancePlanMachine;
+
+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 MaintainancePlanMachineDto extends PageDto implements Serializable {
+
+    private String mpmId;
+private String machineId;
+private String planId;
+private String communityId;
+private String machineName;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getMpmId() {
+        return mpmId;
+    }
+public void setMpmId(String mpmId) {
+        this.mpmId = mpmId;
+    }
+public String getMachineId() {
+        return machineId;
+    }
+public void setMachineId(String machineId) {
+        this.machineId = machineId;
+    }
+public String getPlanId() {
+        return planId;
+    }
+public void setPlanId(String planId) {
+        this.planId = planId;
+    }
+public String getCommunityId() {
+        return communityId;
+    }
+public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+public String getMachineName() {
+        return machineName;
+    }
+public void setMachineName(String machineName) {
+        this.machineName = machineName;
+    }
+
+
+    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;
+    }
+}

+ 76 - 0
java110-bean/src/main/java/com/java110/dto/maintainancePlanStaff/MaintainancePlanStaffDto.java

@@ -0,0 +1,76 @@
+package com.java110.dto.maintainancePlanStaff;
+
+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 MaintainancePlanStaffDto extends PageDto implements Serializable {
+
+    private String staffName;
+private String planId;
+private String communityId;
+private String staffId;
+private String mpsId;
+
+
+    private Date createTime;
+
+    private String statusCd = "0";
+
+
+    public String getStaffName() {
+        return staffName;
+    }
+public void setStaffName(String staffName) {
+        this.staffName = staffName;
+    }
+public String getPlanId() {
+        return planId;
+    }
+public void setPlanId(String planId) {
+        this.planId = planId;
+    }
+public String getCommunityId() {
+        return communityId;
+    }
+public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+public String getStaffId() {
+        return staffId;
+    }
+public void setStaffId(String staffId) {
+        this.staffId = staffId;
+    }
+public String getMpsId() {
+        return mpsId;
+    }
+public void setMpsId(String mpsId) {
+        this.mpsId = mpsId;
+    }
+
+
+    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;
+    }
+}

+ 75 - 45
java110-bean/src/main/java/com/java110/po/maintainancePlan/MaintainancePlanPo.java

@@ -17,6 +17,7 @@ package com.java110.po.maintainancePlan;
 
 import java.io.Serializable;
 import java.util.Date;
+
 /**
  * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
  * add by 吴学文 at 2022-11-07 02:07:55 mail: 928255095@qq.com
@@ -28,111 +29,140 @@ import java.util.Date;
 public class MaintainancePlanPo implements Serializable {
 
     private String maintainanceDay;
-private String planPeriod;
-private String createUserId;
-private String endDate;
-private String standardId;
-private String planName;
-private String remark;
-private String createUserName;
-private String statusCd = "0";
-private String maintainanceEveryday;
-private String maintainanceMonth;
-private String planId;
-private String state;
-private String communityId;
-private String startDate;
-public String getMaintainanceDay() {
+    private String planPeriod;
+    private String createUserId;
+    private String endDate;
+    private String standardId;
+    private String planName;
+    private String remark;
+    private String createUserName;
+    private String statusCd = "0";
+    private String maintainanceEveryday;
+    private String maintainanceMonth;
+    private String planId;
+    private String state;
+    private String communityId;
+    private String startDate;
+
+    public String getMaintainanceDay() {
         return maintainanceDay;
     }
-public void setMaintainanceDay(String maintainanceDay) {
+
+    public void setMaintainanceDay(String maintainanceDay) {
         this.maintainanceDay = maintainanceDay;
     }
-public String getPlanPeriod() {
+
+    public String getPlanPeriod() {
         return planPeriod;
     }
-public void setPlanPeriod(String planPeriod) {
+
+    public void setPlanPeriod(String planPeriod) {
         this.planPeriod = planPeriod;
     }
-public String getCreateUserId() {
+
+    public String getCreateUserId() {
         return createUserId;
     }
-public void setCreateUserId(String createUserId) {
+
+    public void setCreateUserId(String createUserId) {
         this.createUserId = createUserId;
     }
-public String getEndDate() {
+
+    public String getEndDate() {
         return endDate;
     }
-public void setEndDate(String endDate) {
+
+    public void setEndDate(String endDate) {
         this.endDate = endDate;
     }
-public String getStandardId() {
+
+    public String getStandardId() {
         return standardId;
     }
-public void setStandardId(String standardId) {
+
+    public void setStandardId(String standardId) {
         this.standardId = standardId;
     }
-public String getPlanName() {
+
+    public String getPlanName() {
         return planName;
     }
-public void setPlanName(String planName) {
+
+    public void setPlanName(String planName) {
         this.planName = planName;
     }
-public String getRemark() {
+
+    public String getRemark() {
         return remark;
     }
-public void setRemark(String remark) {
+
+    public void setRemark(String remark) {
         this.remark = remark;
     }
-public String getCreateUserName() {
+
+    public String getCreateUserName() {
         return createUserName;
     }
-public void setCreateUserName(String createUserName) {
+
+    public void setCreateUserName(String createUserName) {
         this.createUserName = createUserName;
     }
-public String getStatusCd() {
+
+    public String getStatusCd() {
         return statusCd;
     }
-public void setStatusCd(String statusCd) {
+
+    public void setStatusCd(String statusCd) {
         this.statusCd = statusCd;
     }
-public String getMaintainanceEveryday() {
+
+    public String getMaintainanceEveryday() {
         return maintainanceEveryday;
     }
-public void setMaintainanceEveryday(String maintainanceEveryday) {
+
+    public void setMaintainanceEveryday(String maintainanceEveryday) {
         this.maintainanceEveryday = maintainanceEveryday;
     }
-public String getMaintainanceMonth() {
+
+    public String getMaintainanceMonth() {
         return maintainanceMonth;
     }
-public void setMaintainanceMonth(String maintainanceMonth) {
+
+    public void setMaintainanceMonth(String maintainanceMonth) {
         this.maintainanceMonth = maintainanceMonth;
     }
-public String getPlanId() {
+
+    public String getPlanId() {
         return planId;
     }
-public void setPlanId(String planId) {
+
+    public void setPlanId(String planId) {
         this.planId = planId;
     }
-public String getState() {
+
+    public String getState() {
         return state;
     }
-public void setState(String state) {
+
+    public void setState(String state) {
         this.state = state;
     }
-public String getCommunityId() {
+
+    public String getCommunityId() {
         return communityId;
     }
-public void setCommunityId(String communityId) {
+
+    public void setCommunityId(String communityId) {
         this.communityId = communityId;
     }
-public String getStartDate() {
+
+    public String getStartDate() {
         return startDate;
     }
-public void setStartDate(String startDate) {
+
+    public void setStartDate(String startDate) {
         this.startDate = startDate;
     }
 
 
-
 }

+ 75 - 0
java110-bean/src/main/java/com/java110/po/maintainancePlanMachine/MaintainancePlanMachinePo.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.po.maintainancePlanMachine;
+
+import java.io.Serializable;
+import java.util.Date;
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-11-07 02:22:18 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 MaintainancePlanMachinePo implements Serializable {
+
+    private String mpmId;
+private String machineId;
+private String planId;
+private String statusCd = "0";
+private String communityId;
+private String machineName;
+public String getMpmId() {
+        return mpmId;
+    }
+public void setMpmId(String mpmId) {
+        this.mpmId = mpmId;
+    }
+public String getMachineId() {
+        return machineId;
+    }
+public void setMachineId(String machineId) {
+        this.machineId = machineId;
+    }
+public String getPlanId() {
+        return planId;
+    }
+public void setPlanId(String planId) {
+        this.planId = planId;
+    }
+public String getStatusCd() {
+        return statusCd;
+    }
+public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+public String getCommunityId() {
+        return communityId;
+    }
+public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+public String getMachineName() {
+        return machineName;
+    }
+public void setMachineName(String machineName) {
+        this.machineName = machineName;
+    }
+
+
+
+}

+ 85 - 0
java110-bean/src/main/java/com/java110/po/maintainancePlanStaff/MaintainancePlanStaffPo.java

@@ -0,0 +1,85 @@
+/*
+ * 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.maintainancePlanStaff;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 类表述: Po 数据模型实体对象 基本保持与数据库模型一直 用于 增加修改删除 等时的数据载体
+ * add by 吴学文 at 2022-11-07 02:15:24 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 MaintainancePlanStaffPo implements Serializable {
+
+    private String staffName;
+    private String planId;
+    private String communityId;
+    private String staffId;
+    private String mpsId;
+    private String statusCd = "0";
+
+    public String getStaffName() {
+        return staffName;
+    }
+
+    public void setStaffName(String staffName) {
+        this.staffName = staffName;
+    }
+
+    public String getPlanId() {
+        return planId;
+    }
+
+    public void setPlanId(String planId) {
+        this.planId = planId;
+    }
+
+    public String getCommunityId() {
+        return communityId;
+    }
+
+    public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
+
+    public String getStaffId() {
+        return staffId;
+    }
+
+    public void setStaffId(String staffId) {
+        this.staffId = staffId;
+    }
+
+    public String getMpsId() {
+        return mpsId;
+    }
+
+    public void setMpsId(String mpsId) {
+        this.mpsId = mpsId;
+    }
+
+    public String getStatusCd() {
+        return statusCd;
+    }
+
+    public void setStatusCd(String statusCd) {
+        this.statusCd = statusCd;
+    }
+}

+ 112 - 0
java110-db/src/main/resources/mapper/community/MaintainancePlanMachineV1ServiceDaoImplMapper.xml

@@ -0,0 +1,112 @@
+<?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="maintainancePlanMachineV1ServiceDaoImpl">
+
+
+    <!-- 保存保养设备信息 add by wuxw 2018-07-03 -->
+    <insert id="saveMaintainancePlanMachineInfo" parameterType="Map">
+        insert into maintainance_plan_machine(
+        mpm_id,machine_id,plan_id,community_id,machine_name
+        ) values (
+        #{mpmId},#{machineId},#{planId},#{communityId},#{machineName}
+        )
+    </insert>
+
+
+    <!-- 查询保养设备信息 add by wuxw 2018-07-03 -->
+    <select id="getMaintainancePlanMachineInfo" parameterType="Map" resultType="Map">
+        select t.mpm_id,t.mpm_id mpmId,t.machine_id,t.machine_id machineId,t.create_time,t.create_time
+        createTime,t.plan_id,t.plan_id planId,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id
+        communityId,t.machine_name,t.machine_name machineName
+        from maintainance_plan_machine t
+        where 1 =1
+        <if test="mpmId !=null and mpmId != ''">
+            and t.mpm_id= #{mpmId}
+        </if>
+        <if test="machineId !=null and machineId != ''">
+            and t.machine_id= #{machineId}
+        </if>
+        <if test="createTime !=null and createTime != ''">
+            and t.create_time= #{createTime}
+        </if>
+        <if test="planId !=null and planId != ''">
+            and t.plan_id= #{planId}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="machineName !=null and machineName != ''">
+            and t.machine_name= #{machineName}
+        </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="updateMaintainancePlanMachineInfo" parameterType="Map">
+        update maintainance_plan_machine t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="machineId !=null and machineId != ''">
+            , t.machine_id= #{machineId}
+        </if>
+        <if test="createTime !=null and createTime != ''">
+            , t.create_time= #{createTime}
+        </if>
+        <if test="planId !=null and planId != ''">
+            , t.plan_id= #{planId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            , t.community_id= #{communityId}
+        </if>
+        <if test="machineName !=null and machineName != ''">
+            , t.machine_name= #{machineName}
+        </if>
+        where 1=1
+        <if test="mpmId !=null and mpmId != ''">
+            and t.mpm_id= #{mpmId}
+        </if>
+
+    </update>
+
+    <!-- 查询保养设备数量 add by wuxw 2018-07-03 -->
+    <select id="queryMaintainancePlanMachinesCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from maintainance_plan_machine t
+        where 1 =1
+        <if test="mpmId !=null and mpmId != ''">
+            and t.mpm_id= #{mpmId}
+        </if>
+        <if test="machineId !=null and machineId != ''">
+            and t.machine_id= #{machineId}
+        </if>
+        <if test="createTime !=null and createTime != ''">
+            and t.create_time= #{createTime}
+        </if>
+        <if test="planId !=null and planId != ''">
+            and t.plan_id= #{planId}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        <if test="machineName !=null and machineName != ''">
+            and t.machine_name= #{machineName}
+        </if>
+
+
+    </select>
+
+</mapper>

+ 100 - 0
java110-db/src/main/resources/mapper/community/MaintainancePlanStaffV1ServiceDaoImplMapper.xml

@@ -0,0 +1,100 @@
+<?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="maintainancePlanStaffV1ServiceDaoImpl">
+
+
+
+
+
+    <!-- 保存保养计划员工信息 add by wuxw 2018-07-03 -->
+    <insert id="saveMaintainancePlanStaffInfo" parameterType="Map">
+        insert into maintainance_plan_staff(
+staff_name,plan_id,community_id,staff_id,mps_id
+) values (
+#{staffName},#{planId},#{communityId},#{staffId},#{mpsId}
+)
+    </insert>
+
+
+
+    <!-- 查询保养计划员工信息 add by wuxw 2018-07-03 -->
+    <select id="getMaintainancePlanStaffInfo" parameterType="Map" resultType="Map">
+        select  t.staff_name,t.staff_name staffName,t.plan_id,t.plan_id planId,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId,t.mps_id,t.mps_id mpsId 
+from maintainance_plan_staff t 
+where 1 =1 
+<if test="staffName !=null and staffName != ''">
+   and t.staff_name= #{staffName}
+</if> 
+<if test="planId !=null and planId != ''">
+   and t.plan_id= #{planId}
+</if> 
+<if test="communityId !=null and communityId != ''">
+   and t.community_id= #{communityId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+   and t.staff_id= #{staffId}
+</if> 
+<if test="mpsId !=null and mpsId != ''">
+   and t.mps_id= #{mpsId}
+</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="updateMaintainancePlanStaffInfo" parameterType="Map">
+        update  maintainance_plan_staff t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if> 
+<if test="staffName !=null and staffName != ''">
+, t.staff_name= #{staffName}
+</if> 
+<if test="planId !=null and planId != ''">
+, t.plan_id= #{planId}
+</if> 
+<if test="communityId !=null and communityId != ''">
+, t.community_id= #{communityId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+, t.staff_id= #{staffId}
+</if> 
+ where 1=1 <if test="mpsId !=null and mpsId != ''">
+and t.mps_id= #{mpsId}
+</if> 
+
+    </update>
+
+    <!-- 查询保养计划员工数量 add by wuxw 2018-07-03 -->
+     <select id="queryMaintainancePlanStaffsCount" parameterType="Map" resultType="Map">
+        select  count(1) count 
+from maintainance_plan_staff t 
+where 1 =1 
+<if test="staffName !=null and staffName != ''">
+   and t.staff_name= #{staffName}
+</if> 
+<if test="planId !=null and planId != ''">
+   and t.plan_id= #{planId}
+</if> 
+<if test="communityId !=null and communityId != ''">
+   and t.community_id= #{communityId}
+</if> 
+<if test="staffId !=null and staffId != ''">
+   and t.staff_id= #{staffId}
+</if> 
+<if test="mpsId !=null and mpsId != ''">
+   and t.mps_id= #{mpsId}
+</if> 
+
+
+     </select>
+
+</mapper>

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/community/IMaintainancePlanMachineV1InnerServiceSMO.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.community;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.maintainancePlanMachine.MaintainancePlanMachineDto;
+import com.java110.po.maintainancePlanMachine.MaintainancePlanMachinePo;
+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-11-07 02:22:18 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 = "community-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/maintainancePlanMachineV1Api")
+public interface IMaintainancePlanMachineV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveMaintainancePlanMachine", method = RequestMethod.POST)
+    public int saveMaintainancePlanMachine(@RequestBody MaintainancePlanMachinePo maintainancePlanMachinePo);
+
+    @RequestMapping(value = "/updateMaintainancePlanMachine", method = RequestMethod.POST)
+    public int updateMaintainancePlanMachine(@RequestBody MaintainancePlanMachinePo maintainancePlanMachinePo);
+
+    @RequestMapping(value = "/deleteMaintainancePlanMachine", method = RequestMethod.POST)
+    public int deleteMaintainancePlanMachine(@RequestBody MaintainancePlanMachinePo maintainancePlanMachinePo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param maintainancePlanMachineDto 数据对象分享
+     * @return MaintainancePlanMachineDto 对象数据
+     */
+    @RequestMapping(value = "/queryMaintainancePlanMachines", method = RequestMethod.POST)
+    List<MaintainancePlanMachineDto> queryMaintainancePlanMachines(@RequestBody MaintainancePlanMachineDto maintainancePlanMachineDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param maintainancePlanMachineDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryMaintainancePlanMachinesCount", method = RequestMethod.POST)
+    int queryMaintainancePlanMachinesCount(@RequestBody MaintainancePlanMachineDto maintainancePlanMachineDto);
+}

+ 68 - 0
java110-interface/src/main/java/com/java110/intf/community/IMaintainancePlanStaffV1InnerServiceSMO.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.community;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.maintainancePlanStaff.MaintainancePlanStaffDto;
+import com.java110.po.maintainancePlanStaff.MaintainancePlanStaffPo;
+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-11-07 02:15:24 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 = "community-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/maintainancePlanStaffV1Api")
+public interface IMaintainancePlanStaffV1InnerServiceSMO {
+
+
+    @RequestMapping(value = "/saveMaintainancePlanStaff", method = RequestMethod.POST)
+    public int saveMaintainancePlanStaff(@RequestBody MaintainancePlanStaffPo maintainancePlanStaffPo);
+
+    @RequestMapping(value = "/updateMaintainancePlanStaff", method = RequestMethod.POST)
+    public int updateMaintainancePlanStaff(@RequestBody MaintainancePlanStaffPo maintainancePlanStaffPo);
+
+    @RequestMapping(value = "/deleteMaintainancePlanStaff", method = RequestMethod.POST)
+    public int deleteMaintainancePlanStaff(@RequestBody MaintainancePlanStaffPo maintainancePlanStaffPo);
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param maintainancePlanStaffDto 数据对象分享
+     * @return MaintainancePlanStaffDto 对象数据
+     */
+    @RequestMapping(value = "/queryMaintainancePlanStaffs", method = RequestMethod.POST)
+    List<MaintainancePlanStaffDto> queryMaintainancePlanStaffs(@RequestBody MaintainancePlanStaffDto maintainancePlanStaffDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param maintainancePlanStaffDto 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/queryMaintainancePlanStaffsCount", method = RequestMethod.POST)
+    int queryMaintainancePlanStaffsCount(@RequestBody MaintainancePlanStaffDto maintainancePlanStaffDto);
+}

+ 71 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/DeleteMaintainancePlanMachineCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanMachineV1InnerServiceSMO;
+import com.java110.po.maintainancePlanMachine.MaintainancePlanMachinePo;
+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;
+
+/**
+ * 类表述:删除
+ * 服务编码:maintainancePlanMachine.deleteMaintainancePlanMachine
+ * 请求路劲:/app/maintainancePlanMachine.DeleteMaintainancePlanMachine
+ * add by 吴学文 at 2022-11-07 02:22:18 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 = "maintainancePlan.deleteMaintainancePlanMachine")
+public class DeleteMaintainancePlanMachineCmd extends Cmd {
+    private static Logger logger = LoggerFactory.getLogger(DeleteMaintainancePlanMachineCmd.class);
+
+    @Autowired
+    private IMaintainancePlanMachineV1InnerServiceSMO maintainancePlanMachineV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "mpmId", "mpmId不能为空");
+        Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanMachinePo maintainancePlanMachinePo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanMachinePo.class);
+        int flag = maintainancePlanMachineV1InnerServiceSMOImpl.deleteMaintainancePlanMachine(maintainancePlanMachinePo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 71 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/DeleteMaintainancePlanStaffCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanStaffV1InnerServiceSMO;
+import com.java110.po.maintainancePlanStaff.MaintainancePlanStaffPo;
+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;
+
+/**
+ * 类表述:删除
+ * 服务编码:maintainancePlanStaff.deleteMaintainancePlanStaff
+ * 请求路劲:/app/maintainancePlanStaff.DeleteMaintainancePlanStaff
+ * add by 吴学文 at 2022-11-07 02:15:24 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 = "maintainancePlan.deleteMaintainancePlanStaff")
+public class DeleteMaintainancePlanStaffCmd extends Cmd {
+    private static Logger logger = LoggerFactory.getLogger(DeleteMaintainancePlanStaffCmd.class);
+
+    @Autowired
+    private IMaintainancePlanStaffV1InnerServiceSMO maintainancePlanStaffV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "mpsId", "mpsId不能为空");
+        Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanStaffPo maintainancePlanStaffPo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanStaffPo.class);
+        int flag = maintainancePlanStaffV1InnerServiceSMOImpl.deleteMaintainancePlanStaff(maintainancePlanStaffPo);
+
+        if (flag < 1) {
+            throw new CmdException("删除数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 82 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/ListMaintainancePlanMachineCmd.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.community.cmd.maintainancePlan;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanMachineV1InnerServiceSMO;
+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.maintainancePlanMachine.MaintainancePlanMachineDto;
+
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:maintainancePlanMachine.listMaintainancePlanMachine
+ * 请求路劲:/app/maintainancePlanMachine.ListMaintainancePlanMachine
+ * add by 吴学文 at 2022-11-07 02:22:18 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 = "maintainancePlan.listMaintainancePlanMachine")
+public class ListMaintainancePlanMachineCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(ListMaintainancePlanMachineCmd.class);
+    @Autowired
+    private IMaintainancePlanMachineV1InnerServiceSMO maintainancePlanMachineV1InnerServiceSMOImpl;
+
+    @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 {
+
+        MaintainancePlanMachineDto maintainancePlanMachineDto = BeanConvertUtil.covertBean(reqJson, MaintainancePlanMachineDto.class);
+
+        int count = maintainancePlanMachineV1InnerServiceSMOImpl.queryMaintainancePlanMachinesCount(maintainancePlanMachineDto);
+
+        List<MaintainancePlanMachineDto> maintainancePlanMachineDtos = null;
+
+        if (count > 0) {
+            maintainancePlanMachineDtos = maintainancePlanMachineV1InnerServiceSMOImpl.queryMaintainancePlanMachines(maintainancePlanMachineDto);
+        } else {
+            maintainancePlanMachineDtos = new ArrayList<>();
+        }
+
+        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, maintainancePlanMachineDtos);
+
+        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+        cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 82 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/ListMaintainancePlanStaffCmd.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.community.cmd.maintainancePlan;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.core.annotation.Java110Cmd;
+import com.java110.core.context.ICmdDataFlowContext;
+import com.java110.core.event.cmd.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanStaffV1InnerServiceSMO;
+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.maintainancePlanStaff.MaintainancePlanStaffDto;
+
+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;
+
+
+/**
+ * 类表述:查询
+ * 服务编码:maintainancePlanStaff.listMaintainancePlanStaff
+ * 请求路劲:/app/maintainancePlanStaff.ListMaintainancePlanStaff
+ * add by 吴学文 at 2022-11-07 02:15:24 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 = "maintainancePlan.listMaintainancePlanStaff")
+public class ListMaintainancePlanStaffCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(ListMaintainancePlanStaffCmd.class);
+    @Autowired
+    private IMaintainancePlanStaffV1InnerServiceSMO maintainancePlanStaffV1InnerServiceSMOImpl;
+
+    @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 {
+
+        MaintainancePlanStaffDto maintainancePlanStaffDto = BeanConvertUtil.covertBean(reqJson, MaintainancePlanStaffDto.class);
+
+        int count = maintainancePlanStaffV1InnerServiceSMOImpl.queryMaintainancePlanStaffsCount(maintainancePlanStaffDto);
+
+        List<MaintainancePlanStaffDto> maintainancePlanStaffDtos = null;
+
+        if (count > 0) {
+            maintainancePlanStaffDtos = maintainancePlanStaffV1InnerServiceSMOImpl.queryMaintainancePlanStaffs(maintainancePlanStaffDto);
+        } else {
+            maintainancePlanStaffDtos = new ArrayList<>();
+        }
+
+        ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, maintainancePlanStaffDtos);
+
+        ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+        cmdDataFlowContext.setResponseEntity(responseEntity);
+    }
+}

+ 78 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/SaveMaintainancePlanMachineCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.community.IMaintainancePlanMachineV1InnerServiceSMO;
+import com.java110.po.maintainancePlanMachine.MaintainancePlanMachinePo;
+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;
+
+/**
+ * 类表述:保存
+ * 服务编码:maintainancePlanMachine.saveMaintainancePlanMachine
+ * 请求路劲:/app/maintainancePlanMachine.SaveMaintainancePlanMachine
+ * add by 吴学文 at 2022-11-07 02:22:18 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 = "maintainancePlan.saveMaintainancePlanMachine")
+public class SaveMaintainancePlanMachineCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveMaintainancePlanMachineCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IMaintainancePlanMachineV1InnerServiceSMO maintainancePlanMachineV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "planId", "请求报文中未包含planId");
+        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
+        Assert.hasKeyAndValue(reqJson, "machineId", "请求报文中未包含machineId");
+        Assert.hasKeyAndValue(reqJson, "machineName", "请求报文中未包含machineName");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanMachinePo maintainancePlanMachinePo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanMachinePo.class);
+        maintainancePlanMachinePo.setMpmId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = maintainancePlanMachineV1InnerServiceSMOImpl.saveMaintainancePlanMachine(maintainancePlanMachinePo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 78 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/SaveMaintainancePlanStaffCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.core.factory.GenerateCodeFactory;
+import com.java110.intf.community.IMaintainancePlanStaffV1InnerServiceSMO;
+import com.java110.po.maintainancePlanStaff.MaintainancePlanStaffPo;
+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;
+
+/**
+ * 类表述:保存
+ * 服务编码:maintainancePlanStaff.saveMaintainancePlanStaff
+ * 请求路劲:/app/maintainancePlanStaff.SaveMaintainancePlanStaff
+ * add by 吴学文 at 2022-11-07 02:15:24 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 = "maintainancePlan.saveMaintainancePlanStaff")
+public class SaveMaintainancePlanStaffCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(SaveMaintainancePlanStaffCmd.class);
+
+    public static final String CODE_PREFIX_ID = "10";
+
+    @Autowired
+    private IMaintainancePlanStaffV1InnerServiceSMO maintainancePlanStaffV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "planId", "请求报文中未包含planId");
+        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
+        Assert.hasKeyAndValue(reqJson, "staffId", "请求报文中未包含staffId");
+        Assert.hasKeyAndValue(reqJson, "staffName", "请求报文中未包含staffName");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanStaffPo maintainancePlanStaffPo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanStaffPo.class);
+        maintainancePlanStaffPo.setMpsId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID));
+        int flag = maintainancePlanStaffV1InnerServiceSMOImpl.saveMaintainancePlanStaff(maintainancePlanStaffPo);
+
+        if (flag < 1) {
+            throw new CmdException("保存数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 74 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/UpdateMaintainancePlanMachineCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanMachineV1InnerServiceSMO;
+import com.java110.po.maintainancePlanMachine.MaintainancePlanMachinePo;
+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;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:maintainancePlanMachine.updateMaintainancePlanMachine
+ * 请求路劲:/app/maintainancePlanMachine.UpdateMaintainancePlanMachine
+ * add by 吴学文 at 2022-11-07 02:22:18 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 = "maintainancePlan.updateMaintainancePlanMachine")
+public class UpdateMaintainancePlanMachineCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(UpdateMaintainancePlanMachineCmd.class);
+
+
+    @Autowired
+    private IMaintainancePlanMachineV1InnerServiceSMO maintainancePlanMachineV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "mpmId", "mpmId不能为空");
+        Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanMachinePo maintainancePlanMachinePo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanMachinePo.class);
+        int flag = maintainancePlanMachineV1InnerServiceSMOImpl.updateMaintainancePlanMachine(maintainancePlanMachinePo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 74 - 0
service-community/src/main/java/com/java110/community/cmd/maintainancePlan/UpdateMaintainancePlanStaffCmd.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.community.cmd.maintainancePlan;
+
+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.Cmd;
+import com.java110.core.event.cmd.CmdEvent;
+import com.java110.intf.community.IMaintainancePlanStaffV1InnerServiceSMO;
+import com.java110.po.maintainancePlanStaff.MaintainancePlanStaffPo;
+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;
+
+
+/**
+ * 类表述:更新
+ * 服务编码:maintainancePlanStaff.updateMaintainancePlanStaff
+ * 请求路劲:/app/maintainancePlanStaff.UpdateMaintainancePlanStaff
+ * add by 吴学文 at 2022-11-07 02:15:24 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 = "maintainancePlan.updateMaintainancePlanStaff")
+public class UpdateMaintainancePlanStaffCmd extends Cmd {
+
+    private static Logger logger = LoggerFactory.getLogger(UpdateMaintainancePlanStaffCmd.class);
+
+
+    @Autowired
+    private IMaintainancePlanStaffV1InnerServiceSMO maintainancePlanStaffV1InnerServiceSMOImpl;
+
+    @Override
+    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
+        Assert.hasKeyAndValue(reqJson, "mpsId", "mpsId不能为空");
+        Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空");
+
+    }
+
+    @Override
+    @Java110Transactional
+    public void doCmd(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) throws CmdException {
+
+        MaintainancePlanStaffPo maintainancePlanStaffPo = BeanConvertUtil.covertBean(reqJson, MaintainancePlanStaffPo.class);
+        int flag = maintainancePlanStaffV1InnerServiceSMOImpl.updateMaintainancePlanStaff(maintainancePlanStaffPo);
+
+        if (flag < 1) {
+            throw new CmdException("更新数据失败");
+        }
+
+        cmdDataFlowContext.setResponseEntity(ResultVo.success());
+    }
+}

+ 77 - 0
service-community/src/main/java/com/java110/community/dao/IMaintainancePlanMachineV1ServiceDao.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.community.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-11-07 02:22:18 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 IMaintainancePlanMachineV1ServiceDao {
+
+
+    /**
+     * 保存 保养设备信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveMaintainancePlanMachineInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询保养设备信息(instance过程)
+     * 根据bId 查询保养设备信息
+     * @param info bId 信息
+     * @return 保养设备信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getMaintainancePlanMachineInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改保养设备信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateMaintainancePlanMachineInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询保养设备总数
+     *
+     * @param info 保养设备信息
+     * @return 保养设备数量
+     */
+    int queryMaintainancePlanMachinesCount(Map info);
+
+}

+ 77 - 0
service-community/src/main/java/com/java110/community/dao/IMaintainancePlanStaffV1ServiceDao.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.community.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-11-07 02:15:24 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 IMaintainancePlanStaffV1ServiceDao {
+
+
+    /**
+     * 保存 保养计划员工信息
+     * @param info
+     * @throws DAOException DAO异常
+     */
+    int saveMaintainancePlanStaffInfo(Map info) throws DAOException;
+
+
+
+
+    /**
+     * 查询保养计划员工信息(instance过程)
+     * 根据bId 查询保养计划员工信息
+     * @param info bId 信息
+     * @return 保养计划员工信息
+     * @throws DAOException DAO异常
+     */
+    List<Map> getMaintainancePlanStaffInfo(Map info) throws DAOException;
+
+
+
+    /**
+     * 修改保养计划员工信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    int updateMaintainancePlanStaffInfo(Map info) throws DAOException;
+
+
+    /**
+     * 查询保养计划员工总数
+     *
+     * @param info 保养计划员工信息
+     * @return 保养计划员工数量
+     */
+    int queryMaintainancePlanStaffsCount(Map info);
+
+}

+ 112 - 0
service-community/src/main/java/com/java110/community/dao/impl/MaintainancePlanMachineV1ServiceDaoImpl.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.community.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.community.dao.IMaintainancePlanMachineV1ServiceDao;
+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-11-07 02:22:18 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("maintainancePlanMachineV1ServiceDaoImpl")
+public class MaintainancePlanMachineV1ServiceDaoImpl extends BaseServiceDao implements IMaintainancePlanMachineV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(MaintainancePlanMachineV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存保养设备信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveMaintainancePlanMachineInfo(Map info) throws DAOException {
+        logger.debug("保存 saveMaintainancePlanMachineInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("maintainancePlanMachineV1ServiceDaoImpl.saveMaintainancePlanMachineInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询保养设备信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getMaintainancePlanMachineInfo(Map info) throws DAOException {
+        logger.debug("查询 getMaintainancePlanMachineInfo 入参 info : {}",info);
+
+        List<Map> businessMaintainancePlanMachineInfos = sqlSessionTemplate.selectList("maintainancePlanMachineV1ServiceDaoImpl.getMaintainancePlanMachineInfo",info);
+
+        return businessMaintainancePlanMachineInfos;
+    }
+
+
+    /**
+     * 修改保养设备信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateMaintainancePlanMachineInfo(Map info) throws DAOException {
+        logger.debug("修改 updateMaintainancePlanMachineInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("maintainancePlanMachineV1ServiceDaoImpl.updateMaintainancePlanMachineInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询保养设备数量
+     * @param info 保养设备信息
+     * @return 保养设备数量
+     */
+    @Override
+    public int queryMaintainancePlanMachinesCount(Map info) {
+        logger.debug("查询 queryMaintainancePlanMachinesCount 入参 info : {}",info);
+
+        List<Map> businessMaintainancePlanMachineInfos = sqlSessionTemplate.selectList("maintainancePlanMachineV1ServiceDaoImpl.queryMaintainancePlanMachinesCount", info);
+        if (businessMaintainancePlanMachineInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessMaintainancePlanMachineInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 112 - 0
service-community/src/main/java/com/java110/community/dao/impl/MaintainancePlanStaffV1ServiceDaoImpl.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.community.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.community.dao.IMaintainancePlanStaffV1ServiceDao;
+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-11-07 02:15:24 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("maintainancePlanStaffV1ServiceDaoImpl")
+public class MaintainancePlanStaffV1ServiceDaoImpl extends BaseServiceDao implements IMaintainancePlanStaffV1ServiceDao {
+
+    private static Logger logger = LoggerFactory.getLogger(MaintainancePlanStaffV1ServiceDaoImpl.class);
+
+
+
+
+
+    /**
+     * 保存保养计划员工信息 到 instance
+     * @param info   bId 信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int saveMaintainancePlanStaffInfo(Map info) throws DAOException {
+        logger.debug("保存 saveMaintainancePlanStaffInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.insert("maintainancePlanStaffV1ServiceDaoImpl.saveMaintainancePlanStaffInfo",info);
+
+        return saveFlag;
+    }
+
+
+    /**
+     * 查询保养计划员工信息(instance)
+     * @param info bId 信息
+     * @return List<Map>
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public List<Map> getMaintainancePlanStaffInfo(Map info) throws DAOException {
+        logger.debug("查询 getMaintainancePlanStaffInfo 入参 info : {}",info);
+
+        List<Map> businessMaintainancePlanStaffInfos = sqlSessionTemplate.selectList("maintainancePlanStaffV1ServiceDaoImpl.getMaintainancePlanStaffInfo",info);
+
+        return businessMaintainancePlanStaffInfos;
+    }
+
+
+    /**
+     * 修改保养计划员工信息
+     * @param info 修改信息
+     * @throws DAOException DAO异常
+     */
+    @Override
+    public int updateMaintainancePlanStaffInfo(Map info) throws DAOException {
+        logger.debug("修改 updateMaintainancePlanStaffInfo 入参 info : {}",info);
+
+        int saveFlag = sqlSessionTemplate.update("maintainancePlanStaffV1ServiceDaoImpl.updateMaintainancePlanStaffInfo",info);
+
+        return saveFlag;
+    }
+
+     /**
+     * 查询保养计划员工数量
+     * @param info 保养计划员工信息
+     * @return 保养计划员工数量
+     */
+    @Override
+    public int queryMaintainancePlanStaffsCount(Map info) {
+        logger.debug("查询 queryMaintainancePlanStaffsCount 入参 info : {}",info);
+
+        List<Map> businessMaintainancePlanStaffInfos = sqlSessionTemplate.selectList("maintainancePlanStaffV1ServiceDaoImpl.queryMaintainancePlanStaffsCount", info);
+        if (businessMaintainancePlanStaffInfos.size() < 1) {
+            return 0;
+        }
+
+        return Integer.parseInt(businessMaintainancePlanStaffInfos.get(0).get("count").toString());
+    }
+
+
+}

+ 89 - 0
service-community/src/main/java/com/java110/community/smo/impl/MaintainancePlanMachineV1InnerServiceSMOImpl.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.community.smo.impl;
+
+
+import com.java110.community.dao.IMaintainancePlanMachineV1ServiceDao;
+import com.java110.intf.community.IMaintainancePlanMachineV1InnerServiceSMO;
+import com.java110.dto.maintainancePlanMachine.MaintainancePlanMachineDto;
+import com.java110.po.maintainancePlanMachine.MaintainancePlanMachinePo;
+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-11-07 02:22:18 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 MaintainancePlanMachineV1InnerServiceSMOImpl extends BaseServiceSMO implements IMaintainancePlanMachineV1InnerServiceSMO {
+
+    @Autowired
+    private IMaintainancePlanMachineV1ServiceDao maintainancePlanMachineV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveMaintainancePlanMachine(@RequestBody  MaintainancePlanMachinePo maintainancePlanMachinePo) {
+        int saveFlag = maintainancePlanMachineV1ServiceDaoImpl.saveMaintainancePlanMachineInfo(BeanConvertUtil.beanCovertMap(maintainancePlanMachinePo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateMaintainancePlanMachine(@RequestBody  MaintainancePlanMachinePo maintainancePlanMachinePo) {
+        int saveFlag = maintainancePlanMachineV1ServiceDaoImpl.updateMaintainancePlanMachineInfo(BeanConvertUtil.beanCovertMap(maintainancePlanMachinePo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteMaintainancePlanMachine(@RequestBody  MaintainancePlanMachinePo maintainancePlanMachinePo) {
+       maintainancePlanMachinePo.setStatusCd("1");
+       int saveFlag = maintainancePlanMachineV1ServiceDaoImpl.updateMaintainancePlanMachineInfo(BeanConvertUtil.beanCovertMap(maintainancePlanMachinePo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<MaintainancePlanMachineDto> queryMaintainancePlanMachines(@RequestBody  MaintainancePlanMachineDto maintainancePlanMachineDto) {
+
+        //校验是否传了 分页信息
+
+        int page = maintainancePlanMachineDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            maintainancePlanMachineDto.setPage((page - 1) * maintainancePlanMachineDto.getRow());
+        }
+
+        List<MaintainancePlanMachineDto> maintainancePlanMachines = BeanConvertUtil.covertBeanList(maintainancePlanMachineV1ServiceDaoImpl.getMaintainancePlanMachineInfo(BeanConvertUtil.beanCovertMap(maintainancePlanMachineDto)), MaintainancePlanMachineDto.class);
+
+        return maintainancePlanMachines;
+    }
+
+
+    @Override
+    public int queryMaintainancePlanMachinesCount(@RequestBody MaintainancePlanMachineDto maintainancePlanMachineDto) {
+        return maintainancePlanMachineV1ServiceDaoImpl.queryMaintainancePlanMachinesCount(BeanConvertUtil.beanCovertMap(maintainancePlanMachineDto));    }
+
+}

+ 89 - 0
service-community/src/main/java/com/java110/community/smo/impl/MaintainancePlanStaffV1InnerServiceSMOImpl.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.community.smo.impl;
+
+
+import com.java110.community.dao.IMaintainancePlanStaffV1ServiceDao;
+import com.java110.intf.community.IMaintainancePlanStaffV1InnerServiceSMO;
+import com.java110.dto.maintainancePlanStaff.MaintainancePlanStaffDto;
+import com.java110.po.maintainancePlanStaff.MaintainancePlanStaffPo;
+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-11-07 02:15:24 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 MaintainancePlanStaffV1InnerServiceSMOImpl extends BaseServiceSMO implements IMaintainancePlanStaffV1InnerServiceSMO {
+
+    @Autowired
+    private IMaintainancePlanStaffV1ServiceDao maintainancePlanStaffV1ServiceDaoImpl;
+
+
+    @Override
+    public int saveMaintainancePlanStaff(@RequestBody  MaintainancePlanStaffPo maintainancePlanStaffPo) {
+        int saveFlag = maintainancePlanStaffV1ServiceDaoImpl.saveMaintainancePlanStaffInfo(BeanConvertUtil.beanCovertMap(maintainancePlanStaffPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int updateMaintainancePlanStaff(@RequestBody  MaintainancePlanStaffPo maintainancePlanStaffPo) {
+        int saveFlag = maintainancePlanStaffV1ServiceDaoImpl.updateMaintainancePlanStaffInfo(BeanConvertUtil.beanCovertMap(maintainancePlanStaffPo));
+        return saveFlag;
+    }
+
+     @Override
+    public int deleteMaintainancePlanStaff(@RequestBody  MaintainancePlanStaffPo maintainancePlanStaffPo) {
+       maintainancePlanStaffPo.setStatusCd("1");
+       int saveFlag = maintainancePlanStaffV1ServiceDaoImpl.updateMaintainancePlanStaffInfo(BeanConvertUtil.beanCovertMap(maintainancePlanStaffPo));
+       return saveFlag;
+    }
+
+    @Override
+    public List<MaintainancePlanStaffDto> queryMaintainancePlanStaffs(@RequestBody  MaintainancePlanStaffDto maintainancePlanStaffDto) {
+
+        //校验是否传了 分页信息
+
+        int page = maintainancePlanStaffDto.getPage();
+
+        if (page != PageDto.DEFAULT_PAGE) {
+            maintainancePlanStaffDto.setPage((page - 1) * maintainancePlanStaffDto.getRow());
+        }
+
+        List<MaintainancePlanStaffDto> maintainancePlanStaffs = BeanConvertUtil.covertBeanList(maintainancePlanStaffV1ServiceDaoImpl.getMaintainancePlanStaffInfo(BeanConvertUtil.beanCovertMap(maintainancePlanStaffDto)), MaintainancePlanStaffDto.class);
+
+        return maintainancePlanStaffs;
+    }
+
+
+    @Override
+    public int queryMaintainancePlanStaffsCount(@RequestBody MaintainancePlanStaffDto maintainancePlanStaffDto) {
+        return maintainancePlanStaffV1ServiceDaoImpl.queryMaintainancePlanStaffsCount(BeanConvertUtil.beanCovertMap(maintainancePlanStaffDto));    }
+
+}