在你传递多个参数的时候,Mapper中需要使用@Param注解 如下:就会出错 正确方式: 你可以看到,vehicleCapacity找不到,所以,你的@Param中,需要写入vehicleCapacity。