insert into examine_staff_value(
owner_name,esv_id,es_id,staff_name,owner_id,community_id,project_id,examine_value,staff_id,room_id,room_name
) values (
#{ownerName},#{esvId},#{esId},#{staffName},#{ownerId},#{communityId},#{projectId},#{examineValue},#{staffId},#{roomId},#{roomName}
)
update examine_staff_value t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.owner_name= #{ownerName}
, t.es_id= #{esId}
, t.staff_name= #{staffName}
, t.owner_id= #{ownerId}
, t.examine_value= #{examineValue}
, t.room_id= #{roomId}
, t.room_name= #{roomName}
where 1=1
and t.esv_id= #{esvId}
and t.project_id= #{projectId}
and t.staff_id= #{staffId}
and t.community_id= #{communityId}
and t.es_year= #{esYear}