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