insert into user_question_answer(
score,owner_name,link,user_qa_id,state,owner_id,community_id,room_id,room_name,qa_id
) values (
#{score},#{ownerName},#{link},#{userQaId},#{state},#{ownerId},#{communityId},#{roomId},#{roomName},#{qaId}
)
insert into user_question_answer(
score,owner_name,link,user_qa_id,state,owner_id,community_id,room_id,room_name,qa_id
) values
(
#{item.score},#{item.ownerName},#{item.link},#{item.userQaId},#{item.state},#{item.ownerId},#{item.communityId},#{item.roomId},#{item.roomName},#{item.qaId}
)
update user_question_answer t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.score= #{score}
, t.owner_name= #{ownerName}
, t.link= #{link}
, t.state= #{state}
, t.owner_id= #{ownerId}
, t.community_id= #{communityId}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
where 1=1
and t.user_qa_id= #{userQaId}
and t.qa_id= #{qaId}