id, app_id, type,
status, next_notify_time, last_execute_time, notify_times, max_notify_times,
create_time
INSERT INTO notify_task (
app_id, type,
status, next_notify_time, notify_times, max_notify_times,
`transaction`, refund
) VALUES (
#{appId}, #{type},
#{status}, #{nextNotifyTime}, #{notifyTimes}, #{maxNotifyTimes},
#{transaction, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler},
#{refund, typeHandler=cn.iocoder.common.framework.mybatis.JSONTypeHandler}
)
UPDATE notify_task
, status = #{status}
, next_notify_time = #{nextNotifyTime}
, last_execute_time = #{lastExecuteTime}
, notify_times = #{notifyTimes}
WHERE id = #{id}