public interface LoginLogDao extends org.springframework.data.jpa.repository.JpaRepository<LoginLog,java.lang.Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<LoginLog>, io.geewit.data.jpa.essential.repository.JpaBatchExecutor<LoginLog>
| 限定符和类型 | 方法和说明 |
|---|---|
LoginLog |
findByAccountId(java.lang.Long accountId) |
void |
updateLoginTime(java.lang.Long accountId,
java.lang.String loginName,
java.lang.Long userId,
java.util.Date loginTime) |
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushcount, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, savecount, exists, findAll, findOne@Transactional(readOnly=true) @Query(value="select l from LoginLog l where l.accountId = :accountId") LoginLog findByAccountId(@Param(value="accountId") java.lang.Long accountId)
@Transactional(rollbackFor=java.lang.Exception.class)
@Modifying(flushAutomatically=true,
clearAutomatically=true)
@Query(value="update LoginLog l set l.loginName = :loginName, l.loginName = :loginName, l.userId = :userId, l.loginTime = :loginTime where l.accountId = :accountId and :loginTime > l.loginTime")
void updateLoginTime(@Param(value="accountId")
java.lang.Long accountId,
@Param(value="loginName")
java.lang.String loginName,
@Param(value="userId")
java.lang.Long userId,
@Param(value="loginTime")
java.util.Date loginTime)