|
|
@ -13,6 +13,7 @@ |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="member_id" jdbcType="BIGINT" property="memberId" /> |
|
|
|
<result column="history_remark" jdbcType="VARCHAR" property="historyRemark" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -74,7 +75,7 @@ |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, deliver_id, deliver_type, deliver_record_id, do_type, role_id, content, created_at, |
|
|
|
updated_at, rec_status, member_id |
|
|
|
updated_at, rec_status, member_id, history_remark |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -110,11 +111,13 @@ |
|
|
|
insert into t_pro_deliver_history_record (id, deliver_id, deliver_type, |
|
|
|
deliver_record_id, do_type, role_id, |
|
|
|
content, created_at, updated_at, |
|
|
|
rec_status, member_id) |
|
|
|
rec_status, member_id, history_remark |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{deliverId,jdbcType=BIGINT}, #{deliverType,jdbcType=TINYINT}, |
|
|
|
#{deliverRecordId,jdbcType=BIGINT}, #{doType,jdbcType=TINYINT}, #{roleId,jdbcType=BIGINT}, |
|
|
|
#{content,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{memberId,jdbcType=BIGINT}) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{memberId,jdbcType=BIGINT}, #{historyRemark,jdbcType=VARCHAR} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|
|
|
insert into t_pro_deliver_history_record |
|
|
@ -152,6 +155,9 @@ |
|
|
|
<if test="memberId != null"> |
|
|
|
member_id, |
|
|
|
</if> |
|
|
|
<if test="historyRemark != null"> |
|
|
|
history_remark, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -187,6 +193,9 @@ |
|
|
|
<if test="memberId != null"> |
|
|
|
#{memberId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="historyRemark != null"> |
|
|
|
#{historyRemark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample" resultType="java.lang.Long"> |
|
|
@ -231,6 +240,9 @@ |
|
|
|
<if test="record.memberId != null"> |
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.historyRemark != null"> |
|
|
|
history_remark = #{record.historyRemark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -248,7 +260,8 @@ |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT} |
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
|
history_remark = #{record.historyRemark,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -286,6 +299,9 @@ |
|
|
|
<if test="memberId != null"> |
|
|
|
member_id = #{memberId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="historyRemark != null"> |
|
|
|
history_remark = #{historyRemark,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -300,7 +316,8 @@ |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
member_id = #{memberId,jdbcType=BIGINT} |
|
|
|
member_id = #{memberId,jdbcType=BIGINT}, |
|
|
|
history_remark = #{historyRemark,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |