update pay_details set `state`=#{state},pay_time=#{time},trade_no=#{tradeNo} where id=#{id}