|
@@ -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>
|