|
|
@ -8,6 +8,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="sort" jdbcType="INTEGER" property="sort" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -68,7 +69,7 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, project_id, user_id, created_at, updated_at, rec_status |
|
|
id, project_id, user_id, created_at, updated_at, rec_status, sort |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -102,11 +103,11 @@ |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysUserProject"> |
|
|
<insert id="insert" parameterType="com.ccsens.signin.bean.po.SysUserProject"> |
|
|
insert into t_sys_user_project (id, project_id, user_id, |
|
|
insert into t_sys_user_project (id, project_id, user_id, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, updated_at, rec_status, |
|
|
) |
|
|
sort) |
|
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, |
|
|
) |
|
|
#{sort,jdbcType=INTEGER}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysUserProject"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.signin.bean.po.SysUserProject"> |
|
|
insert into t_sys_user_project |
|
|
insert into t_sys_user_project |
|
|
@ -129,6 +130,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status, |
|
|
rec_status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="sort != null"> |
|
|
|
|
|
sort, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -149,6 +153,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="sort != null"> |
|
|
|
|
|
#{sort,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.signin.bean.po.SysUserProjectExample" resultType="java.lang.Long"> |
|
|
@ -178,6 +185,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.sort != null"> |
|
|
|
|
|
sort = #{record.sort,jdbcType=INTEGER}, |
|
|
|
|
|
</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" /> |
|
|
@ -190,7 +200,8 @@ |
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
user_id = #{record.userId,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}, |
|
|
|
|
|
sort = #{record.sort,jdbcType=INTEGER} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -213,6 +224,9 @@ |
|
|
<if test="recStatus != null"> |
|
|
<if test="recStatus != null"> |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="sort != null"> |
|
|
|
|
|
sort = #{sort,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -222,7 +236,8 @@ |
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
user_id = #{userId,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}, |
|
|
|
|
|
sort = #{sort,jdbcType=INTEGER} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |