act_id, act_name, act_status, act_alert_version, alert_win, alert_win_pic, alert_win_loc,
skip_type, skip_url, create_time
SELECT LAST_INSERT_ID()
insert into app_activity (act_name, act_status, act_alert_version,
alert_win, alert_win_pic, alert_win_loc,
skip_type, skip_url, create_time
)
values (#{actName,jdbcType=VARCHAR}, #{actStatus,jdbcType=TINYINT}, #{actAlertVersion,jdbcType=VARCHAR},
#{alertWin,jdbcType=BIT}, #{alertWinPic,jdbcType=VARCHAR}, #{alertWinLoc,jdbcType=TINYINT},
#{skipType,jdbcType=TINYINT}, #{skipUrl,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into app_activity
act_name,
act_status,
act_alert_version,
alert_win,
alert_win_pic,
alert_win_loc,
skip_type,
skip_url,
create_time,
#{actName,jdbcType=VARCHAR},
#{actStatus,jdbcType=TINYINT},
#{actAlertVersion,jdbcType=VARCHAR},
#{alertWin,jdbcType=BIT},
#{alertWinPic,jdbcType=VARCHAR},
#{alertWinLoc,jdbcType=TINYINT},
#{skipType,jdbcType=TINYINT},
#{skipUrl,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
update app_activity
act_name = #{actName,jdbcType=VARCHAR},
act_status = #{actStatus,jdbcType=TINYINT},
act_alert_version = #{actAlertVersion,jdbcType=VARCHAR},
alert_win = #{alertWin,jdbcType=BIT},
alert_win_pic = #{alertWinPic,jdbcType=VARCHAR},
alert_win_loc = #{alertWinLoc,jdbcType=TINYINT},
skip_type = #{skipType,jdbcType=TINYINT},
skip_url = #{skipUrl,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
where act_id = #{actId,jdbcType=INTEGER}
update app_activity
set act_name = #{actName,jdbcType=VARCHAR},
act_status = #{actStatus,jdbcType=TINYINT},
act_alert_version = #{actAlertVersion,jdbcType=VARCHAR},
alert_win = #{alertWin,jdbcType=BIT},
alert_win_pic = #{alertWinPic,jdbcType=VARCHAR},
alert_win_loc = #{alertWinLoc,jdbcType=TINYINT},
skip_type = #{skipType,jdbcType=TINYINT},
skip_url = #{skipUrl,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where act_id = #{actId,jdbcType=INTEGER}
delete from app_activity
where act_id = #{actId,jdbcType=INTEGER}