id, content, starttime, endtime, allday, color, userid, is_valid , update_time , update_user_id,alarmtime a.id AS "id", a.content AS "title", a.starttime AS "start", a.endtime AS "end", a.allday AS "allday", a.color AS "color", a.userid AS "userid", a.alarmtime as "alarmtime" LEFT JOIN t_sys_user user ON user.id = a.userid and a.ID = #{id} and a.starttime = #{start,jdbcType=VARCHAR} and a.endtime = #{end,jdbcType=VARCHAR} and a.allday = #{allday,jdbcType=VARCHAR} and a.userid = #{userid,jdbcType=VARCHAR} and a.is_valid = #{isValid,jdbcType=TINYINT} and a.update_time = #{updateTime,jdbcType=TIMESTAMP} and a.update_user_id = #{updateUserId,jdbcType=VARCHAR} order by ${sorting} limit #{offset}, #{limit} delete from cp_calendar_agenda where id = #{id,jdbcType=VARCHAR} insert into cp_calendar_agenda (id, content, starttime, endtime, allday, color, userid,is_valid,update_time,update_user_id,alarmtime) values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{start,jdbcType=VARCHAR}, #{end,jdbcType=VARCHAR}, #{allday,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},#{isValid,jdbcType=TINYINT},#{updateTime,jdbcType=VARCHAR},#{updateUserId,jdbcType=VARCHAR},#{alarmtime,jdbcType=VARCHAR}) update cp_calendar_agenda content = #{title,jdbcType=VARCHAR}, starttime = #{start,jdbcType=VARCHAR}, endtime = #{end,jdbcType=VARCHAR}, allday = #{allday,jdbcType=VARCHAR}, color = #{color,jdbcType=VARCHAR}, userid = #{userid,jdbcType=VARCHAR}, is_valid = #{isValid,jdbcType=TINYINT}, update_time = #{updateTime,jdbcType=TIMESTAMP}, update_user_id = #{updateUserId,jdbcType=VARCHAR}, alarmtime = #{alarmtime,jdbcType=VARCHAR}, where id = #{id,jdbcType=VARCHAR} update cp_calendar_agenda set content = #{content,jdbcType=VARCHAR}, starttime = #{start,jdbcType=VARCHAR}, endtime = #{end,jdbcType=VARCHAR}, allday = #{allday,jdbcType=VARCHAR}, color = #{color,jdbcType=VARCHAR}, userid = #{userid,jdbcType=VARCHAR}, is_valid = #{isValid,jdbcType=TINYINT}, update_time = #{updateTime,jdbcType=VARCHAR}, update_user_id = #{updateUserId,jdbcType=VARCHAR}, alarmtime = #{alarmtime,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}