insert into charge_machine_order( amount,order_id,remark,port_id,person_name,machine_id,acct_detail_id,person_id,charge_hours, start_time,end_time,state,person_tel,community_id,energy,duration_price ) values ( #{amount},#{orderId},#{remark},#{portId},#{personName},#{machineId},#{acctDetailId},#{personId},#{chargeHours}, #{startTime},#{endTime},#{state},#{personTel},#{communityId},#{energy},#{durationPrice} ) update charge_machine_order t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.amount= #{amount} , t.remark= #{remark} , t.person_name= #{personName} , t.acct_detail_id= #{acctDetailId} , t.person_id= #{personId} , t.charge_hours= #{chargeHours} , t.start_time= #{startTime} , t.end_time= #{endTime} , t.state= #{state} , t.person_tel= #{personTel} , t.energy= #{energy} , t.duration_price= #{durationPrice} where 1=1 and t.order_id= #{orderId} and t.community_id= #{communityId} and t.machine_id= #{machineId} and t.port_id= #{portId}