insert into work_copy( copy_id,staff_name,state,community_id,store_id,work_id,staff_id ) values ( #{copyId},#{staffName},#{state},#{communityId},#{storeId},#{workId},#{staffId} ) update work_copy t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.staff_name= #{staffName} , t.state= #{state} , t.staff_id= #{staffId} where 1=1 and t.copy_id= #{copyId} and t.community_id= #{communityId} and t.store_id= #{storeId} and t.work_id= #{workId}