insert into attr_spec( spec_type,spec_name,spec_holdplace,spec_value_type,spec_cd,spec_id,spec_show,required,table_name,list_show,domain ) values ( #{specType},#{specName},#{specHoldplace},#{specValueType},#{specCd},#{specId},#{specShow},#{required},#{tableName},#{listShow},#{domain} ) update attr_spec t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.spec_type= #{specType} , t.spec_name= #{specName} , t.spec_holdplace= #{specHoldplace} , t.spec_value_type= #{specValueType} , t.spec_show= #{specShow} , t.required= #{required} , t.table_name= #{tableName} , t.list_show= #{listShow} , t.domain= #{domain} , t.spec_cd= #{specCd} where 1=1 and t.spec_id= #{specId}