|
@@ -7,9 +7,9 @@
|
|
|
<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="plan_date" property="planDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="plan_start_date" property="planStartDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="plan_end_date" property="planEndDate" jdbcType="TIMESTAMP" />
|
|
|
<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" />
|
|
@@ -22,9 +22,9 @@
|
|
|
<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="date_create" property="dateCreate" jdbcType="TIMESTAMP" />
|
|
|
<result column="update_by" property="updateBy" jdbcType="VARCHAR" />
|
|
|
- <result column="date_update" property="dateUpdate" jdbcType="DATE" />
|
|
|
+ <result column="date_update" property="dateUpdate" jdbcType="TIMESTAMP" />
|
|
|
|
|
|
<!-- <association property="planUser" javaType="com.huaxu.entity.UserEntity">
|
|
|
<id column="plan_user_id" property="id" jdbcType="INTEGER"/>
|
|
@@ -64,24 +64,7 @@
|
|
|
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="," >
|
|
@@ -172,13 +155,13 @@
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="planDate != null" >
|
|
|
- #{planDate,jdbcType=DATE},
|
|
|
+ #{planDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="planStartDate != null" >
|
|
|
- #{planStartDate,jdbcType=DATE},
|
|
|
+ #{planStartDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="planEndDate != null" >
|
|
|
- #{planEndDate,jdbcType=DATE},
|
|
|
+ #{planEndDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="taskContent != null" >
|
|
|
#{taskContent,jdbcType=VARCHAR},
|
|
@@ -217,13 +200,13 @@
|
|
|
#{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="dateCreate != null" >
|
|
|
- #{dateCreate,jdbcType=DATE},
|
|
|
+ #{dateCreate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null" >
|
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="dateUpdate != null" >
|
|
|
- #{dateUpdate,jdbcType=DATE},
|
|
|
+ #{dateUpdate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -243,13 +226,13 @@
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="planDate != null" >
|
|
|
- plan_date = #{planDate,jdbcType=DATE},
|
|
|
+ plan_date = #{planDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="planStartDate != null" >
|
|
|
- plan_start_date = #{planStartDate,jdbcType=DATE},
|
|
|
+ plan_start_date = #{planStartDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="planEndDate != null" >
|
|
|
- plan_end_date = #{planEndDate,jdbcType=DATE},
|
|
|
+ plan_end_date = #{planEndDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="taskContent != null" >
|
|
|
task_content = #{taskContent,jdbcType=VARCHAR},
|
|
@@ -288,43 +271,17 @@
|
|
|
create_by = #{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="dateCreate != null" >
|
|
|
- date_create = #{dateCreate,jdbcType=DATE},
|
|
|
+ date_create = #{dateCreate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null" >
|
|
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="dateUpdate != null" >
|
|
|
- date_update = #{dateUpdate,jdbcType=DATE},
|
|
|
+ date_update = #{dateUpdate,jdbcType=TIMESTAMP},
|
|
|
</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>
|
|
|
|
|
|
<select id="selectPlanTagId" resultType="java.lang.String" parameterType="java.lang.String" >
|
|
|
select plan_id
|