|
@@ -1,6 +1,7 @@
|
|
|
package com.zhongshu.reward.server.core.dao;
|
|
|
|
|
|
import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
|
|
|
+import com.zhongshu.reward.client.type.ReceiptsStatus;
|
|
|
import com.zhongshu.reward.server.core.dao.extend.WalletReceiptsDaoExtend;
|
|
|
import com.zhongshu.reward.server.core.domain.WalletReceipts;
|
|
|
|
|
@@ -12,7 +13,7 @@ import java.util.List;
|
|
|
*/
|
|
|
public interface WalletReceiptsDao extends MongoDao<WalletReceipts>, WalletReceiptsDaoExtend {
|
|
|
|
|
|
- List<WalletReceipts> findByWallet_IdOrderByCreateTimeDesc(String walletId);
|
|
|
+ List<WalletReceipts> findByWallet_IdAndStatusOrderByCreateTimeDesc(String walletId, ReceiptsStatus status);
|
|
|
|
|
|
WalletReceipts findTopByOutTradeNo(String outTradeNo);
|
|
|
|