错误原因是我自己写JPA的sql语句时,参数的顺序错了:
@Query(value = "update MOBILE.apply set status=?3 where sender_id=?1 and receiver_id=2",nativeQuery = true)
正确的:
@Query(value = "update MOBILE.apply set status=?1 where sender_id=?2 and receiver_id=3",nativeQuery = true)