insert into charge_machine_order_acct( amount,cmoa_id,order_id,acct_detail_id,acct_id,start_time,remark,end_time,community_id,energy ) values ( #{amount},#{cmoaId},#{orderId},#{acctDetailId},#{acctId},#{startTime},#{remark},#{endTime},#{communityId},#{energy} ) update charge_machine_order_acct t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.amount= #{amount} , t.acct_detail_id= #{acctDetailId} , t.acct_id= #{acctId} , t.start_time= #{startTime} , t.remark= #{remark} , t.end_time= #{endTime} , t.energy= #{energy} where 1=1 and t.cmoa_id= #{cmoaId} and t.community_id= #{communityId} and t.order_id= #{orderId}