Skip to content

Commit

Permalink
fix the sql
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Jan 22, 2024
1 parent 988c7d6 commit 6e2aa96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface RedPacketRepository extends JpaRepository<RedPacket, String>,
List<RedPacket> findByStatusAndChainId(@Param("status") Integer status, @Param("chainId") String chainId);


@Query(value = "select * from red_packet where status in (0,2 and chain_id = ?1 order by create_time desc", nativeQuery = true)
@Query(value = "select * from red_packet where status IN (0,2) and chain_id = ?1 order by create_time desc", nativeQuery = true)
List<RedPacket> findUnfinishedRedpacketByChainId(@Param("chainId") String chainId);

}
Expand Down

0 comments on commit 6e2aa96

Please sign in to comment.