|
|
@ -11,6 +11,7 @@ |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="task_detail_id" jdbcType="BIGINT" property="taskDetailId" /> |
|
|
|
<result column="do_type" jdbcType="TINYINT" property="doType" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -72,7 +73,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, operator_id, project_id, operate_type, operation_time, created_at, updated_at, |
|
|
|
rec_status, task_detail_id |
|
|
|
rec_status, task_detail_id, do_type |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -107,12 +108,12 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
|
insert into t_sys_operation (id, operator_id, project_id, |
|
|
|
operate_type, operation_time, created_at, |
|
|
|
updated_at, rec_status, task_detail_id |
|
|
|
) |
|
|
|
updated_at, rec_status, task_detail_id, |
|
|
|
do_type) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{operatorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|
|
|
#{operateType,jdbcType=TINYINT}, #{operationTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{taskDetailId,jdbcType=BIGINT} |
|
|
|
) |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{taskDetailId,jdbcType=BIGINT}, |
|
|
|
#{doType,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
|
insert into t_sys_operation |
|
|
@ -144,6 +145,9 @@ |
|
|
|
<if test="taskDetailId != null"> |
|
|
|
task_detail_id, |
|
|
|
</if> |
|
|
|
<if test="doType != null"> |
|
|
|
do_type, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -173,6 +177,9 @@ |
|
|
|
<if test="taskDetailId != null"> |
|
|
|
#{taskDetailId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="doType != null"> |
|
|
|
#{doType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultType="java.lang.Long"> |
|
|
@ -211,6 +218,9 @@ |
|
|
|
<if test="record.taskDetailId != null"> |
|
|
|
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.doType != null"> |
|
|
|
do_type = #{record.doType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -226,7 +236,8 @@ |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT} |
|
|
|
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|
|
|
do_type = #{record.doType,jdbcType=TINYINT} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -258,6 +269,9 @@ |
|
|
|
<if test="taskDetailId != null"> |
|
|
|
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="doType != null"> |
|
|
|
do_type = #{doType,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -270,7 +284,8 @@ |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
task_detail_id = #{taskDetailId,jdbcType=BIGINT} |
|
|
|
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|
|
|
do_type = #{doType,jdbcType=TINYINT} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |