insert into community_space_person_time( space_id,csp_id,hours,time_id,community_id,state ) values ( #{spaceId},#{cspId},#{hours},#{timeId},#{communityId},#{state} ) update community_space_person_time t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.space_id= #{spaceId} , t.state = #{state} , t.hours= #{hours} , t.community_id= #{communityId} where 1=1 and t.time_id= #{timeId} and t.csp_id= #{cspId}