Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
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
37
38
39
40
41
42
43
44
45
import cn.hutool.core.date.DateUtil;
import com.xzx.gc.GcPayApplication;
import com.xzx.gc.common.utils.RedisUtil;
import com.xzx.gc.model.pay.PayInfoReq;
import com.xzx.gc.pay.mapper.PayInfoMapper;
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;
 
 
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {GcPayApplication.class})
//@ActiveProfiles(profiles = {"dev"})
public class SpringTest {
 
 
    @Autowired
    private PayInfoMapper payInfoMapper;
 
    @Autowired
    private RedisUtil redisUtil;
 
 
 
 
 
    @Test
    public void test2(){
//        Map map = new HashMap();
//        map.put("userId","37");
//        map.put("money","100.0");
//        payMapper.updateMyMoneyByOrder(map);
 
        PayInfoReq payInfoReq=new PayInfoReq();
        payInfoReq.setPayOrderId("11");
        payInfoReq.setCreateTime(DateUtil.now());
        payInfoMapper.payInfoAdd(payInfoReq);
    }
 
 
 
 
}