| | |
| | | import org.springframework.data.jpa.repository.Modifying; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.stereotype.Repository; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | |
| | | List<User> findAllByIdIn(List<Long> userIdList); |
| | | |
| | | @Modifying |
| | | @Query(value = "update User u set u.hash = :hash ,u.salt = :salt ,u.gmtModified = :time where u.id = :uid") |
| | | @Query(value = "update User u set u.hash = :hash ,u.salt = :salt ,u.gmtModified = :time where u.id = :uid") |
| | | Integer updatePassword(Long uid, String hash, String salt, LocalDateTime time); |
| | | |
| | | @Transactional |
| | | @Modifying |
| | | @Query(value = "update User u set u.hash = :hash ,u.gmtModified = :time where u.id = :uid") |
| | | Integer resetPassword(Long uid, String hash, LocalDateTime time); |
| | | |
| | | @Modifying |
| | | @Query(value = "update User u set u.status = :status ,u.gmtModified = :time where u.id = :uid") |
| | |
| | | User getUserInfoByIdAndSellInfo(Long evaluateUserId); |
| | | @Query(value = "select u from User u where u.id = :uid and u.status in (1,2)") |
| | | User getById(Long uid); |
| | | |
| | | } |