id,create_by, create_time, update_time, update_by,
del_flag,shop_id,shop_name,region_id,commission_rate_more,commission_rate_one,business_hour_begin,business_hour_end,status,type,is_delivery,cooking_time,shoprank,is_price_lock,join_time
delete from t_shop_takeaway
where shop_id = #{shopId,jdbcType=VARCHAR}
insert into t_shop_takeaway (id,create_by, create_time, update_time, update_by,
del_flag,shop_id, shop_name,region_id,commission_rate_more, commission_rate_one, business_hour_begin, business_hour_end, status, type, is_delivery, cooking_time, shoprank, is_price_lock, join_time)
values (#{id,jdbcType=VARCHAR},#{createBy,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR},#{delFlag,jdbcType=INTEGER}
,#{shopId,jdbcType=VARCHAR},#{shopName,jdbcType=VARCHAR},#{regionId,jdbcType=VARCHAR}, #{commissionRateMore,jdbcType=DECIMAL}, #{commissionRateOne,jdbcType=DECIMAL}, #{businessHourBegin,jdbcType=VARCHAR}, #{businessHourEnd,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, #{isDelivery,jdbcType=INTEGER}, #{cookingTime,jdbcType=INTEGER}, #{shoprank,jdbcType=INTEGER}, #{isPriceLock,jdbcType=INTEGER}, #{joinTime,jdbcType=VARCHAR})
update t_shop_takeaway
shop_id = #{shopId,jdbcType=VARCHAR},
shop_name = #{shopName,jdbcType=VARCHAR},
region_id = #{regionId,jdbcType=VARCHAR},
commission_rate_more = #{commissionRateMore,jdbcType=DECIMAL},
commission_rate_one = #{commissionRateOne,jdbcType=DECIMAL},
business_hour_begin = #{businessHourBegin,jdbcType=VARCHAR},
business_hour_end = #{businessHourEnd,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
type = #{type,jdbcType=VARCHAR},
is_delivery = #{isDelivery,jdbcType=INTEGER},
cooking_time = #{cookingTime,jdbcType=INTEGER},
shoprank = #{shoprank,jdbcType=INTEGER},
is_price_lock = #{isPriceLock,jdbcType=INTEGER},
join_time = #{joinTime,jdbcType=VARCHAR},
where shop_id = #{shopId,jdbcType=VARCHAR}