@Transactional
@Query(value="select *,(ABS(angle_1-?1)+ABS(angle_2-?2)+ABS(angle_3-?3)) as matching from side_statistic_result HAVING matching is not null ORDER by matching asc limit 1", nativeQuery=true)
SideStatisticResult findMatchingResult(double angle1, double angle2, double angle3);
上面可以,但是*和matching换一个位置后会报找不到字段的错误