Browse Source

新增task、order 目录及文件

wangbo 4 years ago
parent
commit
887fa8498e

nacos.rar.1 → nacos.rar


+ 19 - 0
operation_manager/src/main/java/com/huaxu/order/dao/WorkFlowDetailMapper.java

@@ -0,0 +1,19 @@
+package com.huaxu.order.dao;
+
+import com.huaxu.order.entity.WorkFlowDetail;
+
+public interface WorkFlowDetailMapper {
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(WorkFlowDetail record);
+
+    int insertSelective(WorkFlowDetail record);
+
+    WorkFlowDetail selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(WorkFlowDetail record);
+
+    int updateByPrimaryKeyWithBLOBs(WorkFlowDetail record);
+
+    int updateByPrimaryKey(WorkFlowDetail record);
+}

+ 17 - 0
operation_manager/src/main/java/com/huaxu/order/dao/WorkOrderManageMapper.java

@@ -0,0 +1,17 @@
+package com.huaxu.order.dao;
+
+import com.huaxu.order.entity.WorkOrderManage;
+
+public interface WorkOrderManageMapper {
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(WorkOrderManage record);
+
+    int insertSelective(WorkOrderManage record);
+
+    WorkOrderManage selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(WorkOrderManage record);
+
+    int updateByPrimaryKey(WorkOrderManage record);
+}

+ 88 - 0
operation_manager/src/main/java/com/huaxu/order/entity/WorkFlowDetail.java

@@ -0,0 +1,88 @@
+package com.huaxu.order.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class WorkFlowDetail implements Serializable {
+    private Integer id;
+
+    private Integer flowId;
+
+    private Integer flowType;
+
+    private String createBy;
+
+    private Date dateCreate;
+
+    private String updateBy;
+
+    private Date dateUpdate;
+
+    private String flowDetail;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getFlowId() {
+        return flowId;
+    }
+
+    public void setFlowId(Integer flowId) {
+        this.flowId = flowId;
+    }
+
+    public Integer getFlowType() {
+        return flowType;
+    }
+
+    public void setFlowType(Integer flowType) {
+        this.flowType = flowType;
+    }
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy == null ? null : createBy.trim();
+    }
+
+    public Date getDateCreate() {
+        return dateCreate;
+    }
+
+    public void setDateCreate(Date dateCreate) {
+        this.dateCreate = dateCreate;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy == null ? null : updateBy.trim();
+    }
+
+    public Date getDateUpdate() {
+        return dateUpdate;
+    }
+
+    public void setDateUpdate(Date dateUpdate) {
+        this.dateUpdate = dateUpdate;
+    }
+
+    public String getFlowDetail() {
+        return flowDetail;
+    }
+
+    public void setFlowDetail(String flowDetail) {
+        this.flowDetail = flowDetail == null ? null : flowDetail.trim();
+    }
+}

+ 308 - 0
operation_manager/src/main/java/com/huaxu/order/entity/WorkOrderManage.java

@@ -0,0 +1,308 @@
+package com.huaxu.order.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class WorkOrderManage implements Serializable {
+    private Integer id;
+
+    private String taskNo;
+
+    private String taskDesc;
+
+    private String orderUserId;
+
+    private Date sendTime;
+
+    private String sendBy;
+
+    private Date planFinishDate;
+
+    private Date finishDate;
+
+    private String dateLimit;
+
+    private String urgency;
+
+    private String address;
+
+    private String contactUser;
+
+    private String contactPhone;
+
+    private String orderTime;
+
+    private String companyOrgId;
+
+    private String departmentOrgId;
+
+    private Integer orderStatus;
+
+    private Integer eventType;
+
+    private Integer orderTypeId;
+
+    private String orderPid;
+
+    private String tenantId;
+
+    private String processInstanceId;
+
+    private String processDefId;
+
+    private String currentTaskId;
+
+    private String currentUsers;
+
+    private String currentTaskName;
+
+    private String createBy;
+
+    private Date dateCreate;
+
+    private String updateBy;
+
+    private Date dateUpdate;
+
+    private static final long serialVersionUID = 1L;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getTaskNo() {
+        return taskNo;
+    }
+
+    public void setTaskNo(String taskNo) {
+        this.taskNo = taskNo == null ? null : taskNo.trim();
+    }
+
+    public String getTaskDesc() {
+        return taskDesc;
+    }
+
+    public void setTaskDesc(String taskDesc) {
+        this.taskDesc = taskDesc == null ? null : taskDesc.trim();
+    }
+
+    public String getOrderUserId() {
+        return orderUserId;
+    }
+
+    public void setOrderUserId(String orderUserId) {
+        this.orderUserId = orderUserId == null ? null : orderUserId.trim();
+    }
+
+    public Date getSendTime() {
+        return sendTime;
+    }
+
+    public void setSendTime(Date sendTime) {
+        this.sendTime = sendTime;
+    }
+
+    public String getSendBy() {
+        return sendBy;
+    }
+
+    public void setSendBy(String sendBy) {
+        this.sendBy = sendBy == null ? null : sendBy.trim();
+    }
+
+    public Date getPlanFinishDate() {
+        return planFinishDate;
+    }
+
+    public void setPlanFinishDate(Date planFinishDate) {
+        this.planFinishDate = planFinishDate;
+    }
+
+    public Date getFinishDate() {
+        return finishDate;
+    }
+
+    public void setFinishDate(Date finishDate) {
+        this.finishDate = finishDate;
+    }
+
+    public String getDateLimit() {
+        return dateLimit;
+    }
+
+    public void setDateLimit(String dateLimit) {
+        this.dateLimit = dateLimit == null ? null : dateLimit.trim();
+    }
+
+    public String getUrgency() {
+        return urgency;
+    }
+
+    public void setUrgency(String urgency) {
+        this.urgency = urgency == null ? null : urgency.trim();
+    }
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address == null ? null : address.trim();
+    }
+
+    public String getContactUser() {
+        return contactUser;
+    }
+
+    public void setContactUser(String contactUser) {
+        this.contactUser = contactUser == null ? null : contactUser.trim();
+    }
+
+    public String getContactPhone() {
+        return contactPhone;
+    }
+
+    public void setContactPhone(String contactPhone) {
+        this.contactPhone = contactPhone == null ? null : contactPhone.trim();
+    }
+
+    public String getOrderTime() {
+        return orderTime;
+    }
+
+    public void setOrderTime(String orderTime) {
+        this.orderTime = orderTime == null ? null : orderTime.trim();
+    }
+
+    public String getCompanyOrgId() {
+        return companyOrgId;
+    }
+
+    public void setCompanyOrgId(String companyOrgId) {
+        this.companyOrgId = companyOrgId == null ? null : companyOrgId.trim();
+    }
+
+    public String getDepartmentOrgId() {
+        return departmentOrgId;
+    }
+
+    public void setDepartmentOrgId(String departmentOrgId) {
+        this.departmentOrgId = departmentOrgId == null ? null : departmentOrgId.trim();
+    }
+
+    public Integer getOrderStatus() {
+        return orderStatus;
+    }
+
+    public void setOrderStatus(Integer orderStatus) {
+        this.orderStatus = orderStatus;
+    }
+
+    public Integer getEventType() {
+        return eventType;
+    }
+
+    public void setEventType(Integer eventType) {
+        this.eventType = eventType;
+    }
+
+    public Integer getOrderTypeId() {
+        return orderTypeId;
+    }
+
+    public void setOrderTypeId(Integer orderTypeId) {
+        this.orderTypeId = orderTypeId;
+    }
+
+    public String getOrderPid() {
+        return orderPid;
+    }
+
+    public void setOrderPid(String orderPid) {
+        this.orderPid = orderPid == null ? null : orderPid.trim();
+    }
+
+    public String getTenantId() {
+        return tenantId;
+    }
+
+    public void setTenantId(String tenantId) {
+        this.tenantId = tenantId == null ? null : tenantId.trim();
+    }
+
+    public String getProcessInstanceId() {
+        return processInstanceId;
+    }
+
+    public void setProcessInstanceId(String processInstanceId) {
+        this.processInstanceId = processInstanceId == null ? null : processInstanceId.trim();
+    }
+
+    public String getProcessDefId() {
+        return processDefId;
+    }
+
+    public void setProcessDefId(String processDefId) {
+        this.processDefId = processDefId == null ? null : processDefId.trim();
+    }
+
+    public String getCurrentTaskId() {
+        return currentTaskId;
+    }
+
+    public void setCurrentTaskId(String currentTaskId) {
+        this.currentTaskId = currentTaskId == null ? null : currentTaskId.trim();
+    }
+
+    public String getCurrentUsers() {
+        return currentUsers;
+    }
+
+    public void setCurrentUsers(String currentUsers) {
+        this.currentUsers = currentUsers == null ? null : currentUsers.trim();
+    }
+
+    public String getCurrentTaskName() {
+        return currentTaskName;
+    }
+
+    public void setCurrentTaskName(String currentTaskName) {
+        this.currentTaskName = currentTaskName == null ? null : currentTaskName.trim();
+    }
+
+    public String getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(String createBy) {
+        this.createBy = createBy == null ? null : createBy.trim();
+    }
+
+    public Date getDateCreate() {
+        return dateCreate;
+    }
+
+    public void setDateCreate(Date dateCreate) {
+        this.dateCreate = dateCreate;
+    }
+
+    public String getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(String updateBy) {
+        this.updateBy = updateBy == null ? null : updateBy.trim();
+    }
+
+    public Date getDateUpdate() {
+        return dateUpdate;
+    }
+
+    public void setDateUpdate(Date dateUpdate) {
+        this.dateUpdate = dateUpdate;
+    }
+}

+ 70 - 0
operation_manager/src/main/java/com/huaxu/process/controller/PlanManageController.java

@@ -0,0 +1,70 @@
+package com.huaxu.process.controller;
+
+import com.huaxu.model.AjaxMessage;
+import com.huaxu.model.ResultStatus;
+import com.huaxu.process.entity.ProcessDefinition;
+import com.huaxu.process.entity.UserForm;
+import com.huaxu.task.entity.PlanManage;
+import com.huaxu.task.service.PlanManageService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import sun.plugin.dom.exception.PluginNotSupportedException;
+
+import java.util.Date;
+
+@RestController
+@RequestMapping("/workflow/plan/")
+@Api(tags = "计划管理")
+public class PlanManageController {
+
+    @Autowired
+    PlanManageService planManageService;
+
+
+    /**
+     * 新增巡检计划
+     * @param planName 任务名称
+     * @param taskType 任务类型
+     * @param planStartDate 计划开始时间
+     * @param planEndDate 计划结束时间
+     * @param userId 巡检人员ID
+     * @param planUserId 计划人员ID
+     * @param taskContent 巡检类容
+     * @param taskAreaShape 巡检区域坐标
+     * @param taskAreaName 巡检区域名称
+     * @return
+     */
+    @PostMapping("/add")
+    @ApiOperation(value = "新增巡检计划")
+    public AjaxMessage addPlan(String planName,
+                                           Integer taskType,
+                                           Date planStartDate,
+                                           Date planEndDate,
+                                           String userId,
+                                           String planUserId,
+                                           String taskContent,
+                                           String taskAreaShape,
+                                           String taskAreaName
+                                         ) {
+        PlanManage record = new PlanManage();
+        record.setUserId(userId);
+        record.setPlanName(planName);
+        record.setTaskType(taskType);
+        record.setPlanStartDate(planStartDate);
+        record.setPlanEndDate(planEndDate);
+        record.setUserId(userId);
+        record.setPlanUserId(planUserId);
+        record.setTaskContent(taskContent);
+        record.setTaskAreaShape(taskAreaShape);
+        record.setTaskAreaName(taskAreaName);
+        int rows = planManageService.insertSelective(record);
+        if(rows > 0) {
+            return new AjaxMessage(ResultStatus.OK);
+        }
+        return new AjaxMessage(ResultStatus.ERROR);
+    }
+
+}

+ 18 - 0
operation_manager/src/main/java/com/huaxu/task/dao/PlanManageMapper.java

@@ -0,0 +1,18 @@
+package com.huaxu.task.dao;
+
+import com.huaxu.task.entity.PlanManage;
+
+public interface PlanManageMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insert(PlanManage record);
+
+    int insertSelective(PlanManage record);
+
+    PlanManage selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(PlanManage record);
+
+    int updateByPrimaryKey(PlanManage record);
+}

+ 90 - 0
operation_manager/src/main/java/com/huaxu/task/entity/PlanManage.java

@@ -0,0 +1,90 @@
+package com.huaxu.task.entity;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+@Data
+@ApiModel
+public class PlanManage implements Serializable {
+
+    @ApiModelProperty(value = "主键")
+    private Integer id;
+
+    @ApiModelProperty(value = "计划任务编号")
+    private String planId;
+
+    @ApiModelProperty(value = "计划名称")
+    private String planName;
+
+    @ApiModelProperty(value = "计划安排人")
+    private String planUserId;
+
+    @ApiModelProperty(value = "计划巡检人员")
+    private String userId;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
+    @ApiModelProperty(value = "计划安排时间")
+    private Date planDate;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
+    @ApiModelProperty(value = "开始时间")
+    private Date planStartDate;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
+    @ApiModelProperty(value = "结束时间")
+    private Date planEndDate;
+
+    @ApiModelProperty(value = "任务内容")
+    private String taskContent;
+
+    @ApiModelProperty(value = "任务区域坐标")
+    private String taskAreaShape;
+
+    @ApiModelProperty(value = "任务区域名称")
+    private String taskAreaName;
+
+    @ApiModelProperty(value = "任务类型")
+    private Integer taskType;
+
+    @ApiModelProperty(value = "执行情况")
+    private Integer planStatus;
+
+    @ApiModelProperty(value = "租户编号")
+    private String tenantId;
+
+    @ApiModelProperty(value = "流程实例id")
+    private String processInstanceId;
+
+    @ApiModelProperty(value = "流程定义id")
+    private String processDefId;
+
+    @ApiModelProperty(value = "任务id")
+    private String currentTaskId;
+
+    @ApiModelProperty(value = "当前处理人")
+    private String currentUsers;
+
+    @ApiModelProperty(value = "当前名称")
+    private String currentTaskName;
+
+    @ApiModelProperty(value = "创建者")
+    private String createBy;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
+    @ApiModelProperty(value = "创建时间")
+    private Date dateCreate;
+
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
+    @ApiModelProperty(value = "更新时间")
+    private Date dateUpdate;
+
+    private static final long serialVersionUID = 1L;
+}

+ 15 - 0
operation_manager/src/main/java/com/huaxu/task/service/PlanManageService.java

@@ -0,0 +1,15 @@
+package com.huaxu.task.service;
+
+import com.huaxu.task.entity.PlanManage;
+
+public interface PlanManageService {
+    /**
+     * 新增任务单
+     */
+    int insertSelective(PlanManage record);
+
+    /**
+     * 更新任务单
+     */
+    int updateByPrimaryKeySelective(PlanManage record);
+}

+ 25 - 0
operation_manager/src/main/java/com/huaxu/task/service/impl/PlanManageServiceImpl.java

@@ -0,0 +1,25 @@
+package com.huaxu.task.service.impl;
+
+import com.huaxu.task.entity.PlanManage;
+import com.huaxu.task.service.PlanManageService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class PlanManageServiceImpl implements PlanManageService {
+
+    @Autowired
+    private PlanManageService planManageService;
+
+    @Override
+    public int insertSelective(PlanManage record) {
+        return planManageService.insertSelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(PlanManage record) {
+        return planManageService.updateByPrimaryKeySelective(record);
+    }
+
+
+}

+ 1 - 1
operation_manager/src/main/resources/application-dev.properties

@@ -3,7 +3,7 @@ spring.application.name=operation-manager
 logging.level.root=info
 logging.path=./logs/operation-manager
 #\u6570\u636E\u5E93\u914D\u7F6E
-spring.datasource.url=jdbc:mysql://114.135.61.188:33306/operation_manager?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
+spring.datasource.url=jdbc:mysql://114.135.61.188:33306/operation_manager?characterEncoding=utf8&useSSL=FALSE&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
 spring.datasource.username=root
 spring.datasource.password=100Zone@123
 spring.datasource.driver-class-name=com.mysql.jdbc.Driver

+ 7 - 6
operation_manager/src/main/resources/generator/generatorConfig.xml

@@ -4,7 +4,7 @@
         "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 <generatorConfiguration>
     <!-- 引入配置文件 -->
-    <properties resource="application.yml"/>
+    <properties resource="application.properties"/>
     <!-- 指定数据库连接驱动jar地址 -->
    <!-- <classPathEntry location="D:/jar/ojdbc6.jar" />-->
     <classPathEntry location="D:/jar/mysql-connector-java-8.0.11.jar" />
@@ -23,9 +23,10 @@
                         userId="monitor"
                         password="123456">-->
         <jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
-                        connectionURL="jdbc:mysql://114.135.61.188:33306/operation_manager?characterEncoding=utf8&amp;useSSL=fals&amp;serverTimezone=Asia/Shanghai&amp;zeroDateTimeBehavior=convertToNull"
+                        connectionURL="jdbc:mysql://114.135.61.188:33306/operation_manager?serverTimezone=UTC&amp;useSSL=false"
                         userId="root"
                         password="100Zone@123">
+            <property name="useInformationSchema" value="true"/>
         </jdbcConnection>
         <!-- 类型转换 -->
         <javaTypeResolver>
@@ -35,7 +36,7 @@
         </javaTypeResolver>
         <!-- 生成model模型,对应的包路径,以及文件存放路径(targetProject),targetProject可以指定具体的路径,如./src/main/java,
                        也可以使用“MAVEN”来自动生成,这样生成的代码会在target/generatord-source目录下 -->
-        <javaModelGenerator targetPackage="com.huaxu.task.entity"
+        <javaModelGenerator targetPackage="com.huaxu.order.entity"
                             targetProject="./src/main/java">
             <!-- 是否在当前路径下新加一层schema,eg:fase路径com.oop.eksp.user.model, true:com.oop.eksp.user.model.[schemaName] -->
             <property name="enableSubPackages" value="false" />
@@ -44,21 +45,21 @@
         </javaModelGenerator>
 
         <!--对应的mapper.xml文件 -->
-        <sqlMapGenerator targetPackage="mapper/task"
+        <sqlMapGenerator targetPackage="mapper/order"
                          targetProject="./src/main/resources">
             <property name="enableSubPackages" value="false" />
         </sqlMapGenerator>
 
         <!-- 对应的Mapper接口类文件 -->
         <javaClientGenerator type="XMLMAPPER"
-                             targetPackage="com.huaxu.task.dao" targetProject="./src/main/java">
+                             targetPackage="com.huaxu.order.dao" targetProject="./src/main/java">
             <property name="enableSubPackages" value="false" />
         </javaClientGenerator>
 
         <!-- 列出要生成代码的所有表,这里配置的是不生成Example文件 -->
         <!-- schema即为数据库名 tableName为对应的数据库表 domainObjectName是要生成的实体类 enable*ByExample
                    是否生成 example类   -->
-        <table tableName="farming_record" domainObjectName="FarmingRecord"
+        <table tableName="sc_work_flow_detail" domainObjectName="WorkFlowDetail"
                enableCountByExample="false"
                enableUpdateByExample="false"
                enableDeleteByExample="false"

+ 145 - 0
operation_manager/src/main/resources/mapper/order/WorkFlowDetailMapper.xml

@@ -0,0 +1,145 @@
+<?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="com.huaxu.order.dao.WorkFlowDetailMapper" >
+  <resultMap id="BaseResultMap" type="com.huaxu.order.entity.WorkFlowDetail" >
+    <id column="id" property="id" jdbcType="INTEGER" />
+    <result column="flow_id" property="flowId" jdbcType="INTEGER" />
+    <result column="flow_type" property="flowType" jdbcType="INTEGER" />
+    <result column="create_by" property="createBy" jdbcType="VARCHAR" />
+    <result column="date_create" property="dateCreate" jdbcType="DATE" />
+    <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
+    <result column="date_update" property="dateUpdate" jdbcType="DATE" />
+  </resultMap>
+  <resultMap id="ResultMapWithBLOBs" type="com.huaxu.order.entity.WorkFlowDetail" extends="BaseResultMap" >
+    <result column="flow_detail" property="flowDetail" jdbcType="LONGVARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    id, flow_id, flow_type, create_by, date_create, update_by, date_update
+  </sql>
+  <sql id="Blob_Column_List" >
+    flow_detail
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from sc_work_flow_detail
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from sc_work_flow_detail
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.huaxu.order.entity.WorkFlowDetail" >
+    insert into sc_work_flow_detail (id, flow_id, flow_type, 
+      create_by, date_create, update_by, 
+      date_update, flow_detail)
+    values (#{id,jdbcType=INTEGER}, #{flowId,jdbcType=INTEGER}, #{flowType,jdbcType=INTEGER}, 
+      #{createBy,jdbcType=VARCHAR}, #{dateCreate,jdbcType=DATE}, #{updateBy,jdbcType=VARCHAR}, 
+      #{dateUpdate,jdbcType=DATE}, #{flowDetail,jdbcType=LONGVARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.huaxu.order.entity.WorkFlowDetail" >
+    insert into sc_work_flow_detail
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        id,
+      </if>
+      <if test="flowId != null" >
+        flow_id,
+      </if>
+      <if test="flowType != null" >
+        flow_type,
+      </if>
+      <if test="createBy != null" >
+        create_by,
+      </if>
+      <if test="dateCreate != null" >
+        date_create,
+      </if>
+      <if test="updateBy != null" >
+        update_by,
+      </if>
+      <if test="dateUpdate != null" >
+        date_update,
+      </if>
+      <if test="flowDetail != null" >
+        flow_detail,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="flowId != null" >
+        #{flowId,jdbcType=INTEGER},
+      </if>
+      <if test="flowType != null" >
+        #{flowType,jdbcType=INTEGER},
+      </if>
+      <if test="createBy != null" >
+        #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        #{dateUpdate,jdbcType=DATE},
+      </if>
+      <if test="flowDetail != null" >
+        #{flowDetail,jdbcType=LONGVARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.huaxu.order.entity.WorkFlowDetail" >
+    update sc_work_flow_detail
+    <set >
+      <if test="flowId != null" >
+        flow_id = #{flowId,jdbcType=INTEGER},
+      </if>
+      <if test="flowType != null" >
+        flow_type = #{flowType,jdbcType=INTEGER},
+      </if>
+      <if test="createBy != null" >
+        create_by = #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        date_create = #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        update_by = #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        date_update = #{dateUpdate,jdbcType=DATE},
+      </if>
+      <if test="flowDetail != null" >
+        flow_detail = #{flowDetail,jdbcType=LONGVARCHAR},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.huaxu.order.entity.WorkFlowDetail" >
+    update sc_work_flow_detail
+    set flow_id = #{flowId,jdbcType=INTEGER},
+      flow_type = #{flowType,jdbcType=INTEGER},
+      create_by = #{createBy,jdbcType=VARCHAR},
+      date_create = #{dateCreate,jdbcType=DATE},
+      update_by = #{updateBy,jdbcType=VARCHAR},
+      date_update = #{dateUpdate,jdbcType=DATE},
+      flow_detail = #{flowDetail,jdbcType=LONGVARCHAR}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.huaxu.order.entity.WorkFlowDetail" >
+    update sc_work_flow_detail
+    set flow_id = #{flowId,jdbcType=INTEGER},
+      flow_type = #{flowType,jdbcType=INTEGER},
+      create_by = #{createBy,jdbcType=VARCHAR},
+      date_create = #{dateCreate,jdbcType=DATE},
+      update_by = #{updateBy,jdbcType=VARCHAR},
+      date_update = #{dateUpdate,jdbcType=DATE}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 390 - 0
operation_manager/src/main/resources/mapper/order/WorkOrderManageMapper.xml

@@ -0,0 +1,390 @@
+<?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="com.huaxu.order.dao.WorkOrderManageMapper" >
+  <resultMap id="BaseResultMap" type="com.huaxu.order.entity.WorkOrderManage" >
+    <id column="id" property="id" jdbcType="INTEGER" />
+    <result column="task_no" property="taskNo" jdbcType="VARCHAR" />
+    <result column="task_desc" property="taskDesc" jdbcType="VARCHAR" />
+    <result column="order_user_id" property="orderUserId" jdbcType="VARCHAR" />
+    <result column="send_time" property="sendTime" jdbcType="DATE" />
+    <result column="send_by" property="sendBy" jdbcType="VARCHAR" />
+    <result column="plan_finish_date" property="planFinishDate" jdbcType="DATE" />
+    <result column="finish_date" property="finishDate" jdbcType="DATE" />
+    <result column="date_limit" property="dateLimit" jdbcType="VARCHAR" />
+    <result column="urgency" property="urgency" jdbcType="VARCHAR" />
+    <result column="address" property="address" jdbcType="VARCHAR" />
+    <result column="contact_user" property="contactUser" jdbcType="VARCHAR" />
+    <result column="contact_phone" property="contactPhone" jdbcType="VARCHAR" />
+    <result column="order_time" property="orderTime" jdbcType="VARCHAR" />
+    <result column="company_org_id" property="companyOrgId" jdbcType="VARCHAR" />
+    <result column="department_org_id" property="departmentOrgId" jdbcType="VARCHAR" />
+    <result column="order_status" property="orderStatus" jdbcType="INTEGER" />
+    <result column="event_type" property="eventType" jdbcType="INTEGER" />
+    <result column="order_type_id" property="orderTypeId" jdbcType="INTEGER" />
+    <result column="order_pid" property="orderPid" jdbcType="VARCHAR" />
+    <result column="tenant_id" property="tenantId" jdbcType="VARCHAR" />
+    <result column="process_instance_id" property="processInstanceId" jdbcType="VARCHAR" />
+    <result column="process_def_id" property="processDefId" jdbcType="VARCHAR" />
+    <result column="current_task_id" property="currentTaskId" jdbcType="VARCHAR" />
+    <result column="current_users" property="currentUsers" jdbcType="VARCHAR" />
+    <result column="current_task_name" property="currentTaskName" jdbcType="VARCHAR" />
+    <result column="create_by" property="createBy" jdbcType="VARCHAR" />
+    <result column="date_create" property="dateCreate" jdbcType="DATE" />
+    <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
+    <result column="date_update" property="dateUpdate" jdbcType="DATE" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    id, task_no, task_desc, order_user_id, send_time, send_by, plan_finish_date, finish_date, 
+    date_limit, urgency, address, contact_user, contact_phone, order_time, company_org_id, 
+    department_org_id, order_status, event_type, order_type_id, order_pid, tenant_id, 
+    process_instance_id, process_def_id, current_task_id, current_users, current_task_name, 
+    create_by, date_create, update_by, date_update
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from sc_work_order_manage
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from sc_work_order_manage
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.huaxu.order.entity.WorkOrderManage" >
+    insert into sc_work_order_manage (id, task_no, task_desc, 
+      order_user_id, send_time, send_by, 
+      plan_finish_date, finish_date, date_limit, 
+      urgency, address, contact_user, 
+      contact_phone, order_time, company_org_id, 
+      department_org_id, order_status, event_type, 
+      order_type_id, order_pid, tenant_id, 
+      process_instance_id, process_def_id, current_task_id, 
+      current_users, current_task_name, create_by, 
+      date_create, update_by, date_update
+      )
+    values (#{id,jdbcType=INTEGER}, #{taskNo,jdbcType=VARCHAR}, #{taskDesc,jdbcType=VARCHAR}, 
+      #{orderUserId,jdbcType=VARCHAR}, #{sendTime,jdbcType=DATE}, #{sendBy,jdbcType=VARCHAR}, 
+      #{planFinishDate,jdbcType=DATE}, #{finishDate,jdbcType=DATE}, #{dateLimit,jdbcType=VARCHAR}, 
+      #{urgency,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{contactUser,jdbcType=VARCHAR}, 
+      #{contactPhone,jdbcType=VARCHAR}, #{orderTime,jdbcType=VARCHAR}, #{companyOrgId,jdbcType=VARCHAR}, 
+      #{departmentOrgId,jdbcType=VARCHAR}, #{orderStatus,jdbcType=INTEGER}, #{eventType,jdbcType=INTEGER}, 
+      #{orderTypeId,jdbcType=INTEGER}, #{orderPid,jdbcType=VARCHAR}, #{tenantId,jdbcType=VARCHAR}, 
+      #{processInstanceId,jdbcType=VARCHAR}, #{processDefId,jdbcType=VARCHAR}, #{currentTaskId,jdbcType=VARCHAR}, 
+      #{currentUsers,jdbcType=VARCHAR}, #{currentTaskName,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, 
+      #{dateCreate,jdbcType=DATE}, #{updateBy,jdbcType=VARCHAR}, #{dateUpdate,jdbcType=DATE}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.huaxu.order.entity.WorkOrderManage" >
+    insert into sc_work_order_manage
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        id,
+      </if>
+      <if test="taskNo != null" >
+        task_no,
+      </if>
+      <if test="taskDesc != null" >
+        task_desc,
+      </if>
+      <if test="orderUserId != null" >
+        order_user_id,
+      </if>
+      <if test="sendTime != null" >
+        send_time,
+      </if>
+      <if test="sendBy != null" >
+        send_by,
+      </if>
+      <if test="planFinishDate != null" >
+        plan_finish_date,
+      </if>
+      <if test="finishDate != null" >
+        finish_date,
+      </if>
+      <if test="dateLimit != null" >
+        date_limit,
+      </if>
+      <if test="urgency != null" >
+        urgency,
+      </if>
+      <if test="address != null" >
+        address,
+      </if>
+      <if test="contactUser != null" >
+        contact_user,
+      </if>
+      <if test="contactPhone != null" >
+        contact_phone,
+      </if>
+      <if test="orderTime != null" >
+        order_time,
+      </if>
+      <if test="companyOrgId != null" >
+        company_org_id,
+      </if>
+      <if test="departmentOrgId != null" >
+        department_org_id,
+      </if>
+      <if test="orderStatus != null" >
+        order_status,
+      </if>
+      <if test="eventType != null" >
+        event_type,
+      </if>
+      <if test="orderTypeId != null" >
+        order_type_id,
+      </if>
+      <if test="orderPid != null" >
+        order_pid,
+      </if>
+      <if test="tenantId != null" >
+        tenant_id,
+      </if>
+      <if test="processInstanceId != null" >
+        process_instance_id,
+      </if>
+      <if test="processDefId != null" >
+        process_def_id,
+      </if>
+      <if test="currentTaskId != null" >
+        current_task_id,
+      </if>
+      <if test="currentUsers != null" >
+        current_users,
+      </if>
+      <if test="currentTaskName != null" >
+        current_task_name,
+      </if>
+      <if test="createBy != null" >
+        create_by,
+      </if>
+      <if test="dateCreate != null" >
+        date_create,
+      </if>
+      <if test="updateBy != null" >
+        update_by,
+      </if>
+      <if test="dateUpdate != null" >
+        date_update,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="taskNo != null" >
+        #{taskNo,jdbcType=VARCHAR},
+      </if>
+      <if test="taskDesc != null" >
+        #{taskDesc,jdbcType=VARCHAR},
+      </if>
+      <if test="orderUserId != null" >
+        #{orderUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="sendTime != null" >
+        #{sendTime,jdbcType=DATE},
+      </if>
+      <if test="sendBy != null" >
+        #{sendBy,jdbcType=VARCHAR},
+      </if>
+      <if test="planFinishDate != null" >
+        #{planFinishDate,jdbcType=DATE},
+      </if>
+      <if test="finishDate != null" >
+        #{finishDate,jdbcType=DATE},
+      </if>
+      <if test="dateLimit != null" >
+        #{dateLimit,jdbcType=VARCHAR},
+      </if>
+      <if test="urgency != null" >
+        #{urgency,jdbcType=VARCHAR},
+      </if>
+      <if test="address != null" >
+        #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="contactUser != null" >
+        #{contactUser,jdbcType=VARCHAR},
+      </if>
+      <if test="contactPhone != null" >
+        #{contactPhone,jdbcType=VARCHAR},
+      </if>
+      <if test="orderTime != null" >
+        #{orderTime,jdbcType=VARCHAR},
+      </if>
+      <if test="companyOrgId != null" >
+        #{companyOrgId,jdbcType=VARCHAR},
+      </if>
+      <if test="departmentOrgId != null" >
+        #{departmentOrgId,jdbcType=VARCHAR},
+      </if>
+      <if test="orderStatus != null" >
+        #{orderStatus,jdbcType=INTEGER},
+      </if>
+      <if test="eventType != null" >
+        #{eventType,jdbcType=INTEGER},
+      </if>
+      <if test="orderTypeId != null" >
+        #{orderTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="orderPid != null" >
+        #{orderPid,jdbcType=VARCHAR},
+      </if>
+      <if test="tenantId != null" >
+        #{tenantId,jdbcType=VARCHAR},
+      </if>
+      <if test="processInstanceId != null" >
+        #{processInstanceId,jdbcType=VARCHAR},
+      </if>
+      <if test="processDefId != null" >
+        #{processDefId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskId != null" >
+        #{currentTaskId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentUsers != null" >
+        #{currentUsers,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskName != null" >
+        #{currentTaskName,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null" >
+        #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        #{dateUpdate,jdbcType=DATE},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.huaxu.order.entity.WorkOrderManage" >
+    update sc_work_order_manage
+    <set >
+      <if test="taskNo != null" >
+        task_no = #{taskNo,jdbcType=VARCHAR},
+      </if>
+      <if test="taskDesc != null" >
+        task_desc = #{taskDesc,jdbcType=VARCHAR},
+      </if>
+      <if test="orderUserId != null" >
+        order_user_id = #{orderUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="sendTime != null" >
+        send_time = #{sendTime,jdbcType=DATE},
+      </if>
+      <if test="sendBy != null" >
+        send_by = #{sendBy,jdbcType=VARCHAR},
+      </if>
+      <if test="planFinishDate != null" >
+        plan_finish_date = #{planFinishDate,jdbcType=DATE},
+      </if>
+      <if test="finishDate != null" >
+        finish_date = #{finishDate,jdbcType=DATE},
+      </if>
+      <if test="dateLimit != null" >
+        date_limit = #{dateLimit,jdbcType=VARCHAR},
+      </if>
+      <if test="urgency != null" >
+        urgency = #{urgency,jdbcType=VARCHAR},
+      </if>
+      <if test="address != null" >
+        address = #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="contactUser != null" >
+        contact_user = #{contactUser,jdbcType=VARCHAR},
+      </if>
+      <if test="contactPhone != null" >
+        contact_phone = #{contactPhone,jdbcType=VARCHAR},
+      </if>
+      <if test="orderTime != null" >
+        order_time = #{orderTime,jdbcType=VARCHAR},
+      </if>
+      <if test="companyOrgId != null" >
+        company_org_id = #{companyOrgId,jdbcType=VARCHAR},
+      </if>
+      <if test="departmentOrgId != null" >
+        department_org_id = #{departmentOrgId,jdbcType=VARCHAR},
+      </if>
+      <if test="orderStatus != null" >
+        order_status = #{orderStatus,jdbcType=INTEGER},
+      </if>
+      <if test="eventType != null" >
+        event_type = #{eventType,jdbcType=INTEGER},
+      </if>
+      <if test="orderTypeId != null" >
+        order_type_id = #{orderTypeId,jdbcType=INTEGER},
+      </if>
+      <if test="orderPid != null" >
+        order_pid = #{orderPid,jdbcType=VARCHAR},
+      </if>
+      <if test="tenantId != null" >
+        tenant_id = #{tenantId,jdbcType=VARCHAR},
+      </if>
+      <if test="processInstanceId != null" >
+        process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
+      </if>
+      <if test="processDefId != null" >
+        process_def_id = #{processDefId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskId != null" >
+        current_task_id = #{currentTaskId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentUsers != null" >
+        current_users = #{currentUsers,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskName != null" >
+        current_task_name = #{currentTaskName,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null" >
+        create_by = #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        date_create = #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        update_by = #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        date_update = #{dateUpdate,jdbcType=DATE},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.huaxu.order.entity.WorkOrderManage" >
+    update sc_work_order_manage
+    set task_no = #{taskNo,jdbcType=VARCHAR},
+      task_desc = #{taskDesc,jdbcType=VARCHAR},
+      order_user_id = #{orderUserId,jdbcType=VARCHAR},
+      send_time = #{sendTime,jdbcType=DATE},
+      send_by = #{sendBy,jdbcType=VARCHAR},
+      plan_finish_date = #{planFinishDate,jdbcType=DATE},
+      finish_date = #{finishDate,jdbcType=DATE},
+      date_limit = #{dateLimit,jdbcType=VARCHAR},
+      urgency = #{urgency,jdbcType=VARCHAR},
+      address = #{address,jdbcType=VARCHAR},
+      contact_user = #{contactUser,jdbcType=VARCHAR},
+      contact_phone = #{contactPhone,jdbcType=VARCHAR},
+      order_time = #{orderTime,jdbcType=VARCHAR},
+      company_org_id = #{companyOrgId,jdbcType=VARCHAR},
+      department_org_id = #{departmentOrgId,jdbcType=VARCHAR},
+      order_status = #{orderStatus,jdbcType=INTEGER},
+      event_type = #{eventType,jdbcType=INTEGER},
+      order_type_id = #{orderTypeId,jdbcType=INTEGER},
+      order_pid = #{orderPid,jdbcType=VARCHAR},
+      tenant_id = #{tenantId,jdbcType=VARCHAR},
+      process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
+      process_def_id = #{processDefId,jdbcType=VARCHAR},
+      current_task_id = #{currentTaskId,jdbcType=VARCHAR},
+      current_users = #{currentUsers,jdbcType=VARCHAR},
+      current_task_name = #{currentTaskName,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=VARCHAR},
+      date_create = #{dateCreate,jdbcType=DATE},
+      update_by = #{updateBy,jdbcType=VARCHAR},
+      date_update = #{dateUpdate,jdbcType=DATE}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 327 - 0
operation_manager/src/main/resources/mapper/task/PlanManageMapper.xml

@@ -0,0 +1,327 @@
+<?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="com.huaxu.task.dao.PlanManageMapper" >
+  <resultMap id="BaseResultMap" type="com.huaxu.task.entity.PlanManage" >
+    <id column="id" property="id" jdbcType="INTEGER" />
+    <result column="plan_id" property="planId" jdbcType="VARCHAR" />
+    <result column="plan_name" property="planName" jdbcType="VARCHAR" />
+    <result column="plan_user_id" property="planUserId" jdbcType="VARCHAR" />
+    <result column="user_id" property="userId" jdbcType="VARCHAR" />
+    <result column="plan_date" property="planDate" jdbcType="DATE" />
+    <result column="plan_start_date" property="planStartDate" jdbcType="DATE" />
+    <result column="plan_end_date" property="planEndDate" jdbcType="DATE" />
+    <result column="task_content" property="taskContent" jdbcType="VARCHAR" />
+    <result column="task_area_shape" property="taskAreaShape" jdbcType="VARCHAR" />
+    <result column="task_area_name" property="taskAreaName" jdbcType="VARCHAR" />
+    <result column="task_type" property="taskType" jdbcType="INTEGER" />
+    <result column="plan_status" property="planStatus" jdbcType="INTEGER" />
+    <result column="tenant_id" property="tenantId" jdbcType="VARCHAR" />
+    <result column="process_instance_id" property="processInstanceId" jdbcType="VARCHAR" />
+    <result column="process_def_id" property="processDefId" jdbcType="VARCHAR" />
+    <result column="current_task_id" property="currentTaskId" jdbcType="VARCHAR" />
+    <result column="current_users" property="currentUsers" jdbcType="VARCHAR" />
+    <result column="current_task_name" property="currentTaskName" jdbcType="VARCHAR" />
+    <result column="create_by" property="createBy" jdbcType="VARCHAR" />
+    <result column="date_create" property="dateCreate" jdbcType="DATE" />
+    <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
+    <result column="date_update" property="dateUpdate" jdbcType="DATE" />
+
+    <association property="planUser" javaType="com.huaxu.entity.UserEntity">
+      <id column="plan_user_id" property="id" jdbcType="INTEGER"/>
+      <result column="plan_user_name" property="username"/>
+    </association>
+
+    <association property="user" javaType="com.huaxu.entity.UserEntity">
+      <id column="user_id" property="id" jdbcType="INTEGER"/>
+      <result column="user_name" property="username"/>
+    </association>
+
+    <association property="createBy" javaType="com.huaxu.entity.UserEntity">
+      <id column="create_by_id" property="id" jdbcType="INTEGER"/>
+      <result column="create_by_name" property="username"/>
+    </association>
+
+    <association property="updateBy" javaType="com.huaxu.entity.UserEntity">
+      <id column="update_by_id" property="id" jdbcType="INTEGER"/>
+      <result column="update_by_name" property="username"/>
+    </association>
+
+  </resultMap>
+  <sql id="Base_Column_List" >
+    id, plan_id, plan_name, plan_user_id, user_id, plan_date, plan_start_date, plan_end_date, 
+    task_content, task_area_shape, task_area_name, task_type, plan_status, tenant_id, 
+    process_instance_id, process_def_id, current_task_id, current_users, current_task_name, 
+    create_by, date_create, update_by, date_update
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from sc_plan_manage
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from sc_plan_manage
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.huaxu.task.entity.PlanManage" >
+    insert into sc_plan_manage (id, plan_id, plan_name, 
+      plan_user_id, user_id, plan_date, 
+      plan_start_date, plan_end_date, task_content, 
+      task_area_shape, task_area_name, task_type, 
+      plan_status, tenant_id, process_instance_id, 
+      process_def_id, current_task_id, current_users, 
+      current_task_name, create_by, date_create, 
+      update_by, date_update)
+    values (#{id,jdbcType=INTEGER}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, 
+      #{planUserId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{planDate,jdbcType=DATE}, 
+      #{planStartDate,jdbcType=DATE}, #{planEndDate,jdbcType=DATE}, #{taskContent,jdbcType=VARCHAR}, 
+      #{taskAreaShape,jdbcType=VARCHAR}, #{taskAreaName,jdbcType=VARCHAR}, #{taskType,jdbcType=INTEGER}, 
+      #{planStatus,jdbcType=INTEGER}, #{tenantId,jdbcType=VARCHAR}, #{processInstanceId,jdbcType=VARCHAR}, 
+      #{processDefId,jdbcType=VARCHAR}, #{currentTaskId,jdbcType=VARCHAR}, #{currentUsers,jdbcType=VARCHAR}, 
+      #{currentTaskName,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{dateCreate,jdbcType=DATE}, 
+      #{updateBy,jdbcType=VARCHAR}, #{dateUpdate,jdbcType=DATE})
+  </insert>
+  <insert id="insertSelective" parameterType="com.huaxu.task.entity.PlanManage" >
+    insert into sc_plan_manage
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        id,
+      </if>
+      <if test="planId != null" >
+        plan_id,
+      </if>
+      <if test="planName != null" >
+        plan_name,
+      </if>
+      <if test="planUserId != null" >
+        plan_user_id,
+      </if>
+      <if test="userId != null" >
+        user_id,
+      </if>
+      <if test="planDate != null" >
+        plan_date,
+      </if>
+      <if test="planStartDate != null" >
+        plan_start_date,
+      </if>
+      <if test="planEndDate != null" >
+        plan_end_date,
+      </if>
+      <if test="taskContent != null" >
+        task_content,
+      </if>
+      <if test="taskAreaShape != null" >
+        task_area_shape,
+      </if>
+      <if test="taskAreaName != null" >
+        task_area_name,
+      </if>
+      <if test="taskType != null" >
+        task_type,
+      </if>
+      <if test="planStatus != null" >
+        plan_status,
+      </if>
+      <if test="tenantId != null" >
+        tenant_id,
+      </if>
+      <if test="processInstanceId != null" >
+        process_instance_id,
+      </if>
+      <if test="processDefId != null" >
+        process_def_id,
+      </if>
+      <if test="currentTaskId != null" >
+        current_task_id,
+      </if>
+      <if test="currentUsers != null" >
+        current_users,
+      </if>
+      <if test="currentTaskName != null" >
+        current_task_name,
+      </if>
+      <if test="createBy != null" >
+        create_by,
+      </if>
+      <if test="dateCreate != null" >
+        date_create,
+      </if>
+      <if test="updateBy != null" >
+        update_by,
+      </if>
+      <if test="dateUpdate != null" >
+        date_update,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="planId != null" >
+        #{planId,jdbcType=VARCHAR},
+      </if>
+      <if test="planName != null" >
+        #{planName,jdbcType=VARCHAR},
+      </if>
+      <if test="planUserId != null" >
+        #{planUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="userId != null" >
+        #{userId,jdbcType=VARCHAR},
+      </if>
+      <if test="planDate != null" >
+        #{planDate,jdbcType=DATE},
+      </if>
+      <if test="planStartDate != null" >
+        #{planStartDate,jdbcType=DATE},
+      </if>
+      <if test="planEndDate != null" >
+        #{planEndDate,jdbcType=DATE},
+      </if>
+      <if test="taskContent != null" >
+        #{taskContent,jdbcType=VARCHAR},
+      </if>
+      <if test="taskAreaShape != null" >
+        #{taskAreaShape,jdbcType=VARCHAR},
+      </if>
+      <if test="taskAreaName != null" >
+        #{taskAreaName,jdbcType=VARCHAR},
+      </if>
+      <if test="taskType != null" >
+        #{taskType,jdbcType=INTEGER},
+      </if>
+      <if test="planStatus != null" >
+        #{planStatus,jdbcType=INTEGER},
+      </if>
+      <if test="tenantId != null" >
+        #{tenantId,jdbcType=VARCHAR},
+      </if>
+      <if test="processInstanceId != null" >
+        #{processInstanceId,jdbcType=VARCHAR},
+      </if>
+      <if test="processDefId != null" >
+        #{processDefId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskId != null" >
+        #{currentTaskId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentUsers != null" >
+        #{currentUsers,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskName != null" >
+        #{currentTaskName,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null" >
+        #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        #{dateUpdate,jdbcType=DATE},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.huaxu.task.entity.PlanManage" >
+    update sc_plan_manage
+    <set >
+      <if test="planId != null" >
+        plan_id = #{planId,jdbcType=VARCHAR},
+      </if>
+      <if test="planName != null" >
+        plan_name = #{planName,jdbcType=VARCHAR},
+      </if>
+      <if test="planUserId != null" >
+        plan_user_id = #{planUserId,jdbcType=VARCHAR},
+      </if>
+      <if test="userId != null" >
+        user_id = #{userId,jdbcType=VARCHAR},
+      </if>
+      <if test="planDate != null" >
+        plan_date = #{planDate,jdbcType=DATE},
+      </if>
+      <if test="planStartDate != null" >
+        plan_start_date = #{planStartDate,jdbcType=DATE},
+      </if>
+      <if test="planEndDate != null" >
+        plan_end_date = #{planEndDate,jdbcType=DATE},
+      </if>
+      <if test="taskContent != null" >
+        task_content = #{taskContent,jdbcType=VARCHAR},
+      </if>
+      <if test="taskAreaShape != null" >
+        task_area_shape = #{taskAreaShape,jdbcType=VARCHAR},
+      </if>
+      <if test="taskAreaName != null" >
+        task_area_name = #{taskAreaName,jdbcType=VARCHAR},
+      </if>
+      <if test="taskType != null" >
+        task_type = #{taskType,jdbcType=INTEGER},
+      </if>
+      <if test="planStatus != null" >
+        plan_status = #{planStatus,jdbcType=INTEGER},
+      </if>
+      <if test="tenantId != null" >
+        tenant_id = #{tenantId,jdbcType=VARCHAR},
+      </if>
+      <if test="processInstanceId != null" >
+        process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
+      </if>
+      <if test="processDefId != null" >
+        process_def_id = #{processDefId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskId != null" >
+        current_task_id = #{currentTaskId,jdbcType=VARCHAR},
+      </if>
+      <if test="currentUsers != null" >
+        current_users = #{currentUsers,jdbcType=VARCHAR},
+      </if>
+      <if test="currentTaskName != null" >
+        current_task_name = #{currentTaskName,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null" >
+        create_by = #{createBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateCreate != null" >
+        date_create = #{dateCreate,jdbcType=DATE},
+      </if>
+      <if test="updateBy != null" >
+        update_by = #{updateBy,jdbcType=VARCHAR},
+      </if>
+      <if test="dateUpdate != null" >
+        date_update = #{dateUpdate,jdbcType=DATE},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.huaxu.task.entity.PlanManage" >
+    update sc_plan_manage
+    set plan_id = #{planId,jdbcType=VARCHAR},
+      plan_name = #{planName,jdbcType=VARCHAR},
+      plan_user_id = #{planUserId,jdbcType=VARCHAR},
+      user_id = #{userId,jdbcType=VARCHAR},
+      plan_date = #{planDate,jdbcType=DATE},
+      plan_start_date = #{planStartDate,jdbcType=DATE},
+      plan_end_date = #{planEndDate,jdbcType=DATE},
+      task_content = #{taskContent,jdbcType=VARCHAR},
+      task_area_shape = #{taskAreaShape,jdbcType=VARCHAR},
+      task_area_name = #{taskAreaName,jdbcType=VARCHAR},
+      task_type = #{taskType,jdbcType=INTEGER},
+      plan_status = #{planStatus,jdbcType=INTEGER},
+      tenant_id = #{tenantId,jdbcType=VARCHAR},
+      process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
+      process_def_id = #{processDefId,jdbcType=VARCHAR},
+      current_task_id = #{currentTaskId,jdbcType=VARCHAR},
+      current_users = #{currentUsers,jdbcType=VARCHAR},
+      current_task_name = #{currentTaskName,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=VARCHAR},
+      date_create = #{dateCreate,jdbcType=DATE},
+      update_by = #{updateBy,jdbcType=VARCHAR},
+      date_update = #{dateUpdate,jdbcType=DATE}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 2 - 0
pom.xml

@@ -13,6 +13,8 @@
         <module>user_center</module>
         <module>gateway</module>
         <module>common</module>
+        <module>message</module>
+        <module>operation_manager</module>
     </modules>
 
     <!--父工程打包方式为pom-->