insert into charge_machine_spec(
spec_id,cms_id,machine_id,spec_name,spec_value,community_id
) values (
#{specId},#{cmsId},#{machineId},#{specName},#{specValue},#{communityId}
)
update charge_machine_spec t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.spec_id= #{specId}
, t.machine_id= #{machineId}
, t.spec_name= #{specName}
, t.spec_value= #{specValue}
, t.community_id= #{communityId}
where 1=1
and t.cms_id= #{cmsId}