insert into meter_machine_factory_spec(
spec_id,spec_name,factory_id,remark
) values (
#{specId},#{specName},#{factoryId},#{remark}
)
update meter_machine_factory_spec t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.spec_name= #{specName}
, t.factory_id= #{factoryId}
, t.remark= #{remark}
where 1=1
and t.spec_id= #{specId}