KKSU
2024-03-01 c0c1c7efd3c521375d2a063bd523396bd11aa265
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
 
 
/**
 * @author wzy
 * @date 2022-06-02
 **/
@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);
    }
 
}