|
@ -10,6 +10,7 @@ |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
|
|
<result column="task_detail_id" jdbcType="BIGINT" property="taskDetailId" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
@ -71,7 +72,7 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, operator_id, project_id, operate_type, operation_time, created_at, updated_at, |
|
|
id, operator_id, project_id, operate_type, operation_time, created_at, updated_at, |
|
|
rec_status |
|
|
rec_status, task_detail_id |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -106,10 +107,12 @@ |
|
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
insert into t_sys_operation (id, operator_id, project_id, |
|
|
insert into t_sys_operation (id, operator_id, project_id, |
|
|
operate_type, operation_time, created_at, |
|
|
operate_type, operation_time, created_at, |
|
|
updated_at, rec_status) |
|
|
updated_at, rec_status, task_detail_id |
|
|
|
|
|
) |
|
|
values (#{id,jdbcType=BIGINT}, #{operatorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{operatorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, |
|
|
#{operateType,jdbcType=TINYINT}, #{operationTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{operateType,jdbcType=TINYINT}, #{operationTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{taskDetailId,jdbcType=BIGINT} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysOperation"> |
|
|
insert into t_sys_operation |
|
|
insert into t_sys_operation |
|
@ -138,6 +141,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="taskDetailId != null"> |
|
|
|
|
|
task_detail_id, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
@ -164,6 +170,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="taskDetailId != null"> |
|
|
|
|
|
#{taskDetailId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysOperationExample" resultType="java.lang.Long"> |
|
@ -199,6 +208,9 @@ |
|
|
<if test="record.recStatus != null"> |
|
|
<if test="record.recStatus != null"> |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.taskDetailId != null"> |
|
|
|
|
|
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
@ -213,7 +225,8 @@ |
|
|
operation_time = #{record.operationTime,jdbcType=BIGINT}, |
|
|
operation_time = #{record.operationTime,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
@ -242,6 +255,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="taskDetailId != null"> |
|
|
|
|
|
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
@ -253,7 +269,8 @@ |
|
|
operation_time = #{operationTime,jdbcType=BIGINT}, |
|
|
operation_time = #{operationTime,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
|
|
task_detail_id = #{taskDetailId,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |