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);
|
}
|
|
}
|