insert into contract_type_spec(spec_type, spec_name, spec_holdplace, spec_value_type, spec_cd, store_id,
spec_show, contract_type_id, required, list_show)
values (#{specType}, #{specName}, #{specHoldplace}, #{specValueType}, #{specCd}, #{storeId}, #{specShow},
#{contractTypeId}, #{required}, #{listShow})
update contract_type_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.store_id= #{storeId}
, t.spec_show= #{specShow}
, t.contract_type_id= #{contractTypeId}
, t.required= #{required}
, t.list_show= #{listShow}
where 1=1
and t.spec_cd= #{specCd}