package com.izouma.jiashanxia.repo;

import com.izouma.jiashanxia.enums.TransactionType;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class CommissionRecordRepoTest {

    @Autowired
    private CommissionRecordRepo commissionRecordRepo;

    @Test
    public void sumByUserId() {
        System.out.println(commissionRecordRepo.sumByUserId(40L, TransactionType.WITHDRAW));
    }
}