Skip to content

Commit 1d0befc

Browse files
author
heavyrian2012
committed
修正sql语句不规范问题
1 parent fae3a4e commit 1d0befc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/cn/wildfirechat/app/jpa/UserConferenceRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface UserConferenceRepository extends PagingAndSortingRepository<Use
1717
@Query(value = "delete from user_conference where user_id = ?1 and conference_id = ?2", nativeQuery = true)
1818
void deleteByUserIdAndConferenceId(String userId, String conferenceId);
1919

20-
@Query(value = "select c.* from user_conference uc, conference c where uc.user_id = ?1 and uc.conference_id = c.id and (c.end_time = 0 or c.end_time > ?2) order by id desc", nativeQuery = true)
20+
@Query(value = "select c.* from user_conference uc, conference c where uc.user_id = ?1 and uc.conference_id = c.id and (c.end_time = 0 or c.end_time > ?2) order by c.id desc", nativeQuery = true)
2121
List<ConferenceDTO> findByUserId(String userId, long now);
2222

2323
Optional<UserConference> findByUserIdAndConferenceId(String userId, String conferenceId);

0 commit comments

Comments
 (0)