insert into question_answer(qa_name, qa_type, start_time, remark, end_time, community_id, content, qa_id, state,
obj_type, obj_id)
values (#{qaName}, #{qaType}, #{startTime}, #{remark}, #{endTime}, #{communityId}, #{content}, #{qaId},
#{state}, #{objType}, #{objId})
update question_answer t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.qa_name= #{qaName}
, t.qa_type= #{qaType}
, t.start_time= #{startTime}
, t.remark= #{remark}
, t.end_time= #{endTime}
, t.state= #{state}
, t.content= #{content}
, t.obj_type= #{objType}
, t.obj_id= #{objId}
where 1=1
and t.qa_id= #{qaId}
and t.community_id= #{communityId}