|
|
@ -9,6 +9,7 @@ |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
|
<result column="open_id" jdbcType="VARCHAR" property="openId" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -69,7 +70,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, official_id, user_id, attention_status, created_at, updated_at, rec_status |
|
|
|
id, official_id, user_id, attention_status, created_at, updated_at, rec_status, open_id |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.ptos_tall.bean.po.WxOfficialUserExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -104,10 +105,10 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.ptos_tall.bean.po.WxOfficialUser"> |
|
|
|
insert into t_wx_official_user (id, official_id, user_id, |
|
|
|
attention_status, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
rec_status, open_id) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{officialId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, |
|
|
|
#{attentionStatus,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
#{recStatus,jdbcType=TINYINT}, #{openId,jdbcType=VARCHAR}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.ptos_tall.bean.po.WxOfficialUser"> |
|
|
|
insert into t_wx_official_user |
|
|
@ -133,6 +134,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status, |
|
|
|
</if> |
|
|
|
<if test="openId != null"> |
|
|
|
open_id, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -156,6 +160,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
#{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="openId != null"> |
|
|
|
#{openId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.ptos_tall.bean.po.WxOfficialUserExample" resultType="java.lang.Long"> |
|
|
@ -188,6 +195,9 @@ |
|
|
|
<if test="record.recStatus != null"> |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.openId != null"> |
|
|
|
open_id = #{record.openId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -201,7 +211,8 @@ |
|
|
|
attention_status = #{record.attentionStatus,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|
|
|
open_id = #{record.openId,jdbcType=VARCHAR} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -227,6 +238,9 @@ |
|
|
|
<if test="recStatus != null"> |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="openId != null"> |
|
|
|
open_id = #{openId,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -237,7 +251,8 @@ |
|
|
|
attention_status = #{attentionStatus,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT}, |
|
|
|
open_id = #{openId,jdbcType=VARCHAR} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |