Multi-agent was introduced to study the issue of multilateral and multi-attribute fair negotiation in e-commerce. In this paper, a mathematical model is established through the Hungarian solution to solve the problem. Taking into account the multi-attribute and multilateral conditions and fairness in the negotiation, the real negotiation information is simulated in the form of randomly generated data, and the evaluation profit system and bilateral negotiation model are established to solve the problem and then the profit matrix can be obtained. Analogy 0-1 assignment problem is solved by Hungarian solution. Through numerical experiments and analysis, it indicates that this algorithm can obtain the overall maximum profit value that the system can achieve, and make the number of matching people as large as possible to achieve better negotiation results.