Aiming at the problems of the incomplete recommendation and sparsity of session data in session recommendation, a new multi-granularity and multi-interest contrast-enhanced hypergraph convolutional network (MGMI-CEHCN) model for session recommendation is proposed. The session data are modeled as a heterogeneous hypergraph, the information is embedded by the hypergraph using two granularities of item price and category, and then the information between different granularities is fused, while the final item embedding is obtained through multi-layer convolution. Finally, an interest perceptron is used to detect multiple potential interests for each item, and a decentralized interest extraction network based on a gated recurrent unit (GRU) is used to integrate the user’s final interests and obtain a global session representation through a soft attention mechanism; a local session representation is generated with the help of a weighted line graph convolutional network. A further joint contrast enhancement strategy is used to maximize the mutual information between the global session representation and local session representation, to improve the recommendation performance. Experiments on several real datasets showed that the recommendation performance of the MGMI-CEHCN model outperformed the current mainstream models. On Cosmetics, the P@20 reached up to 55.25% and M@20 reached up to 38.26%, improvements of 3.06% and 3.09%, respectively; on Diginetica-buy, the P@20 reached up to 65.60% and M@20 reached up to 27.47%, improvements of 2.47% and 6.64%, respectively, which proved the validity of the model.