insert into contract_change_plan_detail_attr( attr_id,contract_id,detail_id,spec_cd,store_id,value ) values ( #{attrId},#{contractId},#{detailId},#{specCd},#{storeId},#{value} ) update contract_change_plan_detail_attr t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.contract_id= #{contractId} , t.detail_id= #{detailId} , t.spec_cd= #{specCd} , t.store_id= #{storeId} , t.value= #{value} where 1=1 and t.attr_id= #{attrId}