KKSU
2024-03-01 3f7956fa7435a2b581336dc067cf8f25c1719e1c
src/test/java/cc/mrbird/febs/ProfitTest.java
@@ -1,6 +1,12 @@
package cc.mrbird.febs;
import cc.mrbird.febs.mall.entity.TzInfo;
import cc.mrbird.febs.mall.mapper.TzInfoMapper;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.math.BigDecimal;
/**
@@ -10,6 +16,21 @@
@SpringBootTest
public class ProfitTest {
    @Autowired
    private TzInfoMapper tzInfoMapper;
    @Test
    public void insertTzInfo(){
        TzInfo tzInfo = new TzInfo();
        tzInfo.setType(4);
        tzInfo.setTzCode("红");
        tzInfo.setTzPercent(new BigDecimal("20"));
        tzInfoMapper.insert(tzInfo);
        TzInfo tzInfo1 = new TzInfo();
        tzInfo1.setType(4);
        tzInfo1.setTzCode("蓝");
        tzInfo1.setTzPercent(new BigDecimal("20"));
        tzInfoMapper.insert(tzInfo1);
    }
}