feat(web): 优化hql语句
This commit is contained in:
@@ -32,6 +32,10 @@ public interface ConfirmationRepository extends SimpleRepository<Confirmation, L
|
|||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
@Modifying
|
@Modifying
|
||||||
@Query("update Confirmation confirmation set confirmation.state = ?2, confirmation.modifiedUser = ?3, confirmation.modifiedTime = current_timestamp where confirmation.id = ?1")
|
@Query("update Confirmation confirmation \n" +
|
||||||
|
"set confirmation.state = ?2, \n" +
|
||||||
|
" confirmation.modifiedUser = ?3, \n" +
|
||||||
|
" confirmation.modifiedTime = current_timestamp \n" +
|
||||||
|
"where confirmation.id = ?1")
|
||||||
void updateStateById(Long id, Confirmation.State state, User modifiedUser);
|
void updateStateById(Long id, Confirmation.State state, User modifiedUser);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user