t.id_ AS id
, t.name_ AS name
, t.logo_ AS logo
, t.province_code_ AS provinceCode
, t.city_code_ AS cityCode
, t.region_code_ AS regionCode
, t.username_ AS username
, t.user_id_ AS userId
, t.phone_ AS phone
, t.enable_flag_ AS enableFlag
, t.update_time_ AS updateTime
, t.create_time_ AS createTime
, t.brief_Introduction_ AS briefIntroduction
insert into tenant_info
(name_,logo_,brief_Introduction_,province_code_,city_code_,region_code_,username_,phone_)
values (#{param.name},#{param.logo},#{param.briefIntroduction},#{param.provinceCode},#{param.cityCode},#{param.regionCode},#{param.username},#{param.phone})
update tenant_info
set
name_ = #{param.name},
logo_ = #{param.logo},
province_code_ = #{param.provinceCode},
city_code_ = #{param.cityCode},
region_code_ = #{param.regionCode},
brief_introduction_= #{param.briefIntroduction},
username_ = #{param.username},
phone_ = #{param.phone}
WHERE id_ = #{param.id}
update tenant_info
set enable_flag_ = 0
where id_ = #{id}
update teacher
set settlement_from_ = 'TEACHER'
where tenant_id_ = #{id}
update tenant_apply_record
set status_ = 'PASS'
where id_ =#{id}
update tenant_apply_record
set status_ = 'UNPASS'
where id_ =#{id}
update tenant_info set user_id_ = #{newId} and phone_ =#{phone} where user_id_ = #{oldId}
update tenant_info
set phone_ = #{phone}
where user_id_ = #{userId}