a.id AS "id",
a.hotel_phone AS "hotelPhone",
a.hotel_address AS "hotelAddress",
a.hotel_name AS "hotelName",
a.hotel_info AS "hotelInfo",
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"
INSERT INTO show_hotel(
id,
hotel_phone,
hotel_address,
hotel_name,
hotel_info,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag
) VALUES (
#{id},
#{hotelPhone},
#{hotelAddress},
#{hotelName},
#{hotelInfo},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag}
)
UPDATE show_hotel SET
hotel_phone = #{hotelPhone},
hotel_address = #{hotelAddress},
hotel_name = #{hotelName},
hotel_info = #{hotelInfo},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks}
WHERE id = #{id}
UPDATE show_hotel SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}