a.id AS "id", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag", a.card_id AS "CardID", a.sport_time_total AS "sportTimeTotal", a.sport_order AS "sportOrder", a.sport_count AS "sportCount", a.other_1 AS "Other1", a.other_2 AS "Other2", a.other_3 AS "Other3" INSERT INTO sporttotal( id, create_by, create_date, update_by, update_date, remarks, del_flag, card_id, sport_time_total, sport_order, sport_count, other_1, other_2, other_3 ) VALUES ( #{id}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag}, #{CardID}, #{sportTimeTotal}, #{sportOrder}, #{sportCount}, #{Other1}, #{Other2}, #{Other3} ) UPDATE sporttotal SET update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks}, card_id = #{CardID}, sport_time_total = #{sportTimeTotal}, sport_order = #{sportOrder}, sport_count = #{sportCount}, other_1 = #{Other1}, other_2 = #{Other2}, other_3 = #{Other3} WHERE id = #{id} DELETE FROM sporttotal WHERE id = #{id} UPDATE sporttotal SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}