|
@@ -11,9 +11,10 @@
|
|
|
<result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
<result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
|
<result column="pid" property="pid" jdbcType="VARCHAR" />
|
|
|
<result column="rid" property="rid" jdbcType="VARCHAR" />
|
|
<result column="rid" property="rid" jdbcType="VARCHAR" />
|
|
|
|
|
+ <result column="year" property="year" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
|
- id, aid, notice_type, content, create_time, readed, uid, pid, rid
|
|
|
|
|
|
|
+ id, aid, notice_type, content, create_time, readed, uid, pid, rid, year
|
|
|
</sql>
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
select
|
|
@@ -27,11 +28,11 @@
|
|
|
</delete>
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.Notice" >
|
|
<insert id="insert" parameterType="com.goafanti.common.model.Notice" >
|
|
|
insert into notice (id, aid, notice_type,
|
|
insert into notice (id, aid, notice_type,
|
|
|
- content, create_time, readed, uid, pid, rid
|
|
|
|
|
|
|
+ content, create_time, readed, uid, pid, rid, year
|
|
|
)
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{noticeType,jdbcType=INTEGER},
|
|
values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{noticeType,jdbcType=INTEGER},
|
|
|
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{readed,jdbcType=INTEGER},
|
|
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{readed,jdbcType=INTEGER},
|
|
|
- #{uid,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{rid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ #{uid,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{rid,jdbcType=VARCHAR}, #{year,jdbcType=INTEGER}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Notice" >
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.Notice" >
|
|
@@ -67,6 +68,10 @@
|
|
|
rid,
|
|
rid,
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
|
|
+ <if test="year != null" >
|
|
|
|
|
+ year,
|
|
|
|
|
+ </if>
|
|
|
|
|
+
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
<if test="id != null" >
|
|
@@ -98,6 +103,10 @@
|
|
|
<if test="rid != null" >
|
|
<if test="rid != null" >
|
|
|
#{rid,jdbcType=VARCHAR},
|
|
#{rid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="year != null" >
|
|
|
|
|
+ #{year,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Notice" >
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Notice" >
|
|
@@ -129,6 +138,10 @@
|
|
|
<if test="rid != null" >
|
|
<if test="rid != null" >
|
|
|
rid = #{rid,jdbcType=VARCHAR},
|
|
rid = #{rid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+
|
|
|
|
|
+ <if test="year != null" >
|
|
|
|
|
+ year = #{year,jdbcType=INTEGER},
|
|
|
|
|
+ </if>
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
@@ -143,7 +156,9 @@
|
|
|
uid = #{uid,jdbcType=VARCHAR},
|
|
uid = #{uid,jdbcType=VARCHAR},
|
|
|
pid = #{pid,jdbcType=VARCHAR},
|
|
pid = #{pid,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
- rid = #{rid,jdbcType=VARCHAR}
|
|
|
|
|
|
|
+ rid = #{rid,jdbcType=VARCHAR},
|
|
|
|
|
+
|
|
|
|
|
+ year = #{year,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
</update>
|
|
|
|
|
|