a.id AS "id",
a.venue_name AS "venueName",
a.venue_longitude AS "venueLongitude",
a.venue_latitude AS "venueLatitude",
a.venue_address AS "venueAddress",
a.venue_phone AS "venuePhone",
a.create_time AS "createTime",
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.show_location AS "showLocation",
b.image_min_url AS "imageMinUrl",
b.image_max_url AS "imageMaxUrl"
left join cku_image b on a.id = b.groomer_venue_id
INSERT INTO cku_handler_venue(
id,
venue_name,
venue_longitude,
venue_latitude,
venue_address,
venue_phone,
create_time,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
show_location
) VALUES (
#{id},
#{venueName},
#{venueLongitude},
#{venueLatitude},
#{venueAddress},
#{venuePhone},
#{createTime},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{showLocation}
)
UPDATE cku_handler_venue SET
venue_name = #{venueName},
venue_longitude = #{venueLongitude},
venue_latitude = #{venueLatitude},
venue_address = #{venueAddress},
venue_phone = #{venuePhone},
create_time = #{createTime},
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
show_location = #{showLocation}
WHERE id = #{id}
UPDATE cku_handler_venue SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}