id, aid, notice_type, content, create_time, readed, uid, pid, rid, year
delete from notice
where id = #{id,jdbcType=VARCHAR}
insert into notice (id, aid, notice_type,
content, create_time, readed, uid, pid, rid, year
)
values (#{id,jdbcType=VARCHAR}, #{aid,jdbcType=VARCHAR}, #{noticeType,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{readed,jdbcType=INTEGER},
#{uid,jdbcType=VARCHAR}, #{pid,jdbcType=VARCHAR}, #{rid,jdbcType=VARCHAR}, #{year,jdbcType=INTEGER}
)
insert into notice
id,
aid,
notice_type,
content,
create_time,
readed,
uid,
pid,
rid,
year,
#{id,jdbcType=VARCHAR},
#{aid,jdbcType=VARCHAR},
#{noticeType,jdbcType=INTEGER},
#{content,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{readed,jdbcType=INTEGER},
#{uid,jdbcType=VARCHAR},
#{pid,jdbcType=VARCHAR},
#{rid,jdbcType=VARCHAR},
#{year,jdbcType=INTEGER},
update notice
aid = #{aid,jdbcType=VARCHAR},
notice_type = #{noticeType,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
readed = #{readed,jdbcType=INTEGER},
uid = #{uid,jdbcType=VARCHAR},
pid = #{pid,jdbcType=VARCHAR},
rid = #{rid,jdbcType=VARCHAR},
year = #{year,jdbcType=INTEGER},
where id = #{id,jdbcType=VARCHAR}
update notice
set aid = #{aid,jdbcType=VARCHAR},
notice_type = #{noticeType,jdbcType=INTEGER},
content = #{content,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
readed = #{readed,jdbcType=INTEGER},
uid = #{uid,jdbcType=VARCHAR},
pid = #{pid,jdbcType=VARCHAR},
rid = #{rid,jdbcType=VARCHAR},
year = #{year,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
update notice set readed = 1
where id in
#{item}
insert into notice (id, aid, notice_type, content, create_time, readed, uid, pid, rid, year)
values
(
#{item.id,jdbcType=VARCHAR}, #{item.aid,jdbcType=VARCHAR}, #{item.noticeType,jdbcType=INTEGER},
#{item.content,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.readed,jdbcType=INTEGER},
#{item.uid,jdbcType=VARCHAR}, #{item.pid,jdbcType=VARCHAR}, #{item.rid,jdbcType=VARCHAR},
#{item.year,jdbcType=INTEGER}
)