insert into business_fast_user(
fast_user_id,fast_user_title,user_name,user_id,operate,fast_user_context,start_time,end_time,community_id,b_id,state
) values (
#{fastUserId},#{fastUserTitle},#{userName},#{userId},#{operate},#{fastUserContext},#{startTime},#{endTime},
#{communityId},#{bId},#{state}
insert into fast_user(
fast_user_id,fast_user_title,user_name,user_id,operate,fast_user_context,start_time,end_time,community_id,b_id,state
) select
fast_user_id,fast_user_title,user_name,user_id,operate,fast_user_context,start_time,end_time,community_id,b_id,state
from business_fast_user t where 1=1
and t.fast_user_id= #{fastUserId}
and t.fast_user_title= #{fastUserTitle}
and t.user_name= #{userName}
and t.user_id= #{userId}
and t.operate= 'ADD'
and t.start_time= #{startTime}
and t.end_time= #{endTime}
and t.community_id= #{communityId}
and t.b_id= #{bId}
update fast_user t set t.status_cd = #{statusCd}
, t.fast_user_title= #{fastUserTitle}
, t.user_name= #{userName}
, t.user_id= #{userId}
, t.fast_user_context= #{fastUserContext}
, t.start_time= #{startTime}
, t.end_time= #{endTime}
, t.community_id= #{communityId}
, t.state= #{state}
where 1=1
and t.fast_user_id= #{fastUserId}
and t.b_id= #{bId}