|
|
@ -5,6 +5,7 @@ |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="member_id" jdbcType="BIGINT" property="memberId" /> |
|
|
|
<result column="role_id" jdbcType="BIGINT" property="roleId" /> |
|
|
|
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -68,7 +69,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, member_id, role_id, created_at, updated_at, rec_status |
|
|
|
id, member_id, role_id, sequence, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProMemberRoleShowExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -102,11 +103,11 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProMemberRoleShow"> |
|
|
|
insert into t_pro_member_role_show (id, member_id, role_id, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
sequence, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
#{sequence,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProMemberRoleShow"> |
|
|
|
insert into t_pro_member_role_show |
|
|
@ -120,6 +121,9 @@ |
|
|
|
<if test="roleId != null"> |
|
|
|
role_id, |
|
|
|
</if> |
|
|
|
<if test="sequence != null"> |
|
|
|
sequence, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at, |
|
|
|
</if> |
|
|
@ -140,6 +144,9 @@ |
|
|
|
<if test="roleId != null"> |
|
|
|
#{roleId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="sequence != null"> |
|
|
|
#{sequence,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -169,6 +176,9 @@ |
|
|
|
<if test="record.roleId != null"> |
|
|
|
role_id = #{record.roleId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.sequence != null"> |
|
|
|
sequence = #{record.sequence,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.createdAt != null"> |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -188,6 +198,7 @@ |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
|
role_id = #{record.roleId,jdbcType=BIGINT}, |
|
|
|
sequence = #{record.sequence,jdbcType=INTEGER}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -204,6 +215,9 @@ |
|
|
|
<if test="roleId != null"> |
|
|
|
role_id = #{roleId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="sequence != null"> |
|
|
|
sequence = #{sequence,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -220,6 +234,7 @@ |
|
|
|
update t_pro_member_role_show |
|
|
|
set member_id = #{memberId,jdbcType=BIGINT}, |
|
|
|
role_id = #{roleId,jdbcType=BIGINT}, |
|
|
|
sequence = #{sequence,jdbcType=INTEGER}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|