id, region_id, region_path, want_shop_area_id, create_time, update_time, create_user_id, update_user_id,
deleted
delete from xfsg_region_area_config
where id = #{id,jdbcType=BIGINT}
SELECT LAST_INSERT_ID()
insert into xfsg_region_area_config
region_id,
region_path,
want_shop_area_id,
create_time,
update_time,
create_user_id,
update_user_id,
deleted,
#{regionId,jdbcType=BIGINT},
#{regionPath,jdbcType=VARCHAR},
#{wantShopAreaId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{createUserId,jdbcType=VARCHAR},
#{updateUserId,jdbcType=VARCHAR},
#{deleted,jdbcType=BIT},
update xfsg_region_area_config
region_id = #{regionId,jdbcType=BIGINT},
region_path = #{regionPath,jdbcType=VARCHAR},
want_shop_area_id = #{wantShopAreaId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
create_user_id = #{createUserId,jdbcType=VARCHAR},
update_user_id = #{updateUserId,jdbcType=VARCHAR},
deleted = #{deleted,jdbcType=BIT},
where id = #{id,jdbcType=BIGINT}
and t.id = #{id,jdbcType=BIGINT}
and t.region_id = #{regionId,jdbcType=BIGINT}
and t.region_path = #{regionPath,jdbcType=VARCHAR}
and t.want_shop_area_id = #{wantShopAreaId,jdbcType=BIGINT}
and t.create_time = #{createTime,jdbcType=TIMESTAMP}
and t.update_time = #{updateTime,jdbcType=TIMESTAMP}
and t.create_user_id = #{createUserId,jdbcType=VARCHAR}
and t.update_user_id = #{updateUserId,jdbcType=VARCHAR}
and t.deleted = #{deleted,jdbcType=BIT}
delete from xfsg_region_area_config
where region_id = #{regionId}
delete from xfsg_region_area_config
where want_shop_area_id in
#{wantShopAreaId}
insert into xfsg_region_area_config
(
region_id,
region_path,
want_shop_area_id,
create_time,
create_user_id,
update_time,
update_user_id
)
values
(
#{entity.regionId},
#{entity.regionPath},
#{entity.wantShopAreaId},
now(),
#{entity.createUserId},
now(),
#{entity.updateUserId}
)
ON DUPLICATE KEY UPDATE
update_time = now()