post_id, user_openid, community_id, title, content, video_url, image_urls, is_deleted, is_official, is_public, location, created_at, updated_at INSERT INTO post ( post_id, user_openid, community_id, title, content, video_url, image_urls, is_deleted, is_official, is_public, location, created_at, updated_at ) VALUES ( #{postId}, #{userOpenid}, #{communityId}, #{title}, #{content}, #{videoUrl}, #{imageUrls}, #{isDeleted}, #{isOfficial}, #{is_public}, #{location}, #{createdAt}, #{updatedAt} ) UPDATE post SET user_openid = #{userOpenid}, community_id = #{communityId}, title = #{title}, content = #{content}, video_url = #{videoUrl}, image_urls = #{imageUrls}, is_deleted = #{isDeleted}, is_official = #{isOfficial}, is_public = #{is_public}, location = #{location}, created_at = #{createdAt}, updated_at = #{updatedAt} WHERE post_id = #{postId} UPDATE post SET is_deleted = 1, updated_at = CURRENT_TIMESTAMP WHERE post_id = #{postId}