Jet impingement-based heat transfer enhancement is widely employed due to the significant mass, momentum, and energy it accompanied. While the steady jet with high energy flux is commonly favored, it still exhibit few defects, including heat transfer deterioration away from the stagnation point and mutual flow interference in the jet arrays, which are particularly critical in demanding applications. Recently, the sweeping jet has been proposed to resolve the above challenges owing to its self-excited and self-sustaining unsteady oscillation. However, current research predominately focuses on impinging on the flat surface, neglecting impinging on the concave surface, such as internal cooling at the gas turbine blade leading-edge as well as the hot gas de-icing at the aircraft wing leading-edge. Understanding the heat transfer characteristics in these scenarios is crucial as they notably differ from those on flat surfaces. Therefore, this paper investigates the heat transfer characteristics and the related essential flow dynamics of a sweeping jet with a Reynolds number of 2577 impinging on a concave surface, and those of a steady jet under the same conditions are compared. The jet-to-wall distance and the curvature of the impingement surface are 4 and 10 times the jet's hydraulic diameter, respectively. To correctly capture the three-dimensional characteristics of the sweeping jet, this research employs the Reynolds stress model for turbulence modeling and the Generalized k-ω (GEKO) model for better calibration of the jet's spreading and dissipation rates, as well as the characteristics of trapped vortex generated due to the confined concave flow channel. The study initially focuses on the average Nusselt number on the impingement surface, revealing a 15.2% increase in heat transfer intensity of the sweeping jet compared to the steady jet, and the sweeping jet covers a larger area with enhanced uniformity. Subsequent analysis on streamlines in two perpendicular planes and Q criterion iso-surfaces in the spatial domain shows the formation of a trapped vortex ring with a constant location around the jet, restricting the effective cooling range to its inner side and thus resulting in a steep temperature rise on the two lateral sides of the vortex ring. The stability of the trapped vortex is enhanced by the curved impingement wall in the oscillation plane, which on the one hand forces the high-temperature fluid that has exchanged heat with the wall to repeatedly wash the same location, and on the other hand significantly reduces the jet oscillation angle compared to a free sweeping jet. Consequently, the heat transfer intensity of the sweeping jet is lower in the main oscillation plane than in the non-oscillation plane. Analysis of the near-wall flow parameters indicates that the sweeping jet generates higher velocity and turbulence kinetic energy in the wall jet zone far away from the stagnation point compared to the steady jet, which results in a higher local heat transfer intensity. The unsteady transverse oscillation of the sweeping jet disturbs the wall jet zone and disrupts the formation of the wall boundary layer, causing a higher velocity gradient at the wall and hence the lower thicknesses of the velocity boundary layer and the thermal boundary layer than those of the steady jet. In conclusion, this study reveals the flow and heat transfer features of the sweeping jet impingement on confined concave surface, with the influence of the trapped vortex ring mattering significantly. The findings provide a reference for designing a more effective jet arrangement. Future work will focus on investigating the effects of jet Reynolds number and impingement distance variations on the trapped vortex ring, and how to mitigate the adverse effects of the trapped vortex ring on impingement heat transfer.