sv_venue
id,
number,
name,
address,
longitude,
latitude,
type,
status,
list_image,
business_time,
business_start_time,
business_end_time,
business_start_date,
business_end_date,
price,
contact,
phone,
description,
platform_id,
card_content,
created_id,
modified_id,
created_time,
modified_time,
code_url,
deleted,
limit_day,
limit_week,
limit_no_day,
limit_no_week,
copy_week,
copy_time,
copy_target,
copy_control,
pay_style,
time_pay_hour
#{id, jdbcType=INTEGER},
#{name, jdbcType=VARCHAR},
#{address, jdbcType=VARCHAR},
#{longitude, jdbcType=VARCHAR},
#{latitude, jdbcType=VARCHAR},
#{type, jdbcType=TINYINT},
#{listImage, jdbcType=VARCHAR},
#{businessTime, jdbcType=VARCHAR},
#{price, jdbcType=DECIMAL},
#{contact, jdbcType=VARCHAR},
#{phone, jdbcType=VARCHAR},
#{description, jdbcType=LONGTEXT},
#{platformId, jdbcType=INTEGER},
#{cardContent, jdbcType=INTEGER},
#{createdId, jdbcType=INTEGER},
#{modifiedId, jdbcType=INTEGER},
#{createdTime, jdbcType=TIMESTAMP},
#{modifiedTime, jdbcType=TIMESTAMP},
#{deleted, jdbcType=TINYINT},
#{limit_day, jdbcType=TINYINT},
#{limit_week, jdbcType=TINYINT},
#{limit_no_day, jdbcType=TINYINT},
#{limit_no_week, jdbcType=TINYINT},
#{copy_week, jdbcType=TINYINT},
#{copy_time, jdbcType=TIMESTAMP},
#{copy_target, jdbcType=TINYINT},
#{copy_control, jdbcType=TINYINT}
#{pay_style, jdbcType=TINYINT}
#{time_pay_hour, jdbcType=TINYINT}
INSERT INTO
id,
name,
address,
longitude,
latitude,
type,
list_image,
business_time,
price,
contact,
phone,
description,
geo_hash,
platform_id,
card_content,
business_start_time ,
business_end_time,
business_start_date ,
business_end_date,
created_id,
modified_id,
created_time,
modified_time,
deleted,
limit_day,
limit_week,
limit_no_day,
limit_no_week,
copy_week,
copy_time,
copy_target,
copy_control,
pay_style,
time_pay_hour,
#{id},
#{name},
#{address},
#{longitude},
#{latitude},
#{type},
#{listImage},
#{businessTime},
#{price},
#{contact},
#{phone},
#{description},
#{geoHash},
#{platformId},
#{cardContent},
#{businessStartTime} ,
#{businessEndTime},
#{businessStartDate} ,
#{businessEndDate},
#{createdId},
#{modifiedId},
#{createdTime},
#{modifiedTime},
#{deleted},
#{limitDay},
#{limitWeek},
#{limitNoDay},
#{limitNoWeek},
#{copyWeek},
#{copyTime},
#{copyTarget},
#{copyControl},
#{payStyle},
#{timePayHour},
UPDATE
SET
deleted = 1
WHERE
id = #{id}
UPDATE
SET
deleted = 1
WHERE
id IN
#{item}
UPDATE
name = #{name},
address = #{address},
longitude = #{longitude},
latitude = #{latitude},
type = #{type},
list_image = #{listImage},
business_time = #{businessTime},
business_start_time = #{businessStartTime},
business_end_time = #{businessEndTime},
business_start_date = #{businessStartDate},
business_end_date = #{businessEndDate},
price = #{price},
contact = #{contact},
phone = #{phone},
description = #{description},
geo_hash = #{geoHash},
platform_id = #{platformId},
card_content = #{cardContent},
created_id = #{createdId},
modified_id = #{modifiedId},
created_time = #{createdTime},
modified_time = #{modifiedTime},
deleted = #{deleted},
code_url = #{codeUrl},
limit_day = #{limitDay},
limit_week = #{limitWeek},
limit_no_day = #{limitNoDay},
limit_no_week = #{limitNoWeek},
copy_week = #{copyWeek},
copy_time = #{copyTime},
copy_target = #{copyTarget},
copy_control = #{copyControl},
pay_style = #{payStyle},
time_pay_hour = #{timePayHour},
WHERE id = #{id}
UPDATE sv_venue
SET status = #{status}
where id = #{id}
update sv_venue set number = number + #{number} where id = #{venueId}
update sv_venue set number = #{number} where id = #{venueId}
INSERT INTO sv_venue_member (`member_id`, `venue_id`) VALUES (#{memberId},#{venueId})
delete from sv_venue_member where member_id = #{memberId} and venue_id = #{venueId}