From b50c961c49851d140d77d549db34a9f6400dadd4 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期二, 19 八月 2025 19:03:10 +0800 Subject: [PATCH] 跨城推广 --- DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java | 73 +++++++++++++----------------------- 1 files changed, 26 insertions(+), 47 deletions(-) diff --git a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java index 9d80039..83ca537 100644 --- a/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java +++ b/DriverQYTTravel/guns-admin/src/test/java/com/stylefeng/guns/GunsApplicationTest.java @@ -1,47 +1,26 @@ -package com.stylefeng.guns; - -import com.stylefeng.guns.modular.system.model.Driver; -import com.stylefeng.guns.modular.system.service.IDriverService; -import com.stylefeng.guns.modular.system.util.zhenglian.ZhengLianUtil; -import com.stylefeng.guns.modular.system.util.zhenglian.model.TokenRequest; -import com.stylefeng.guns.modular.system.util.zhenglian.model.TradeTerminalInfo; -import com.stylefeng.guns.modular.system.util.zhenglian.model.ZLUserInfo; -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.data.mongodb.core.MongoTemplate; -import org.springframework.test.context.junit4.SpringRunner; - -@RunWith(SpringRunner.class) -@SpringBootTest -public class GunsApplicationTest { - - @Autowired - private MongoTemplate mongoTemplate; - @Autowired - private IDriverService driverService; - - - @Test - public void test() { - - Driver driver = driverService.selectById(14); - TokenRequest tokenRequest = new TokenRequest(); - tokenRequest.setAppUserId(driver.getEmpId().toString()); - tokenRequest.setUserName(driver.getName()); - tokenRequest.setCertNo(driver.getIdCard()); - tokenRequest.setPhone(driver.getPhone()); - TradeTerminalInfo tradeTerminalInfo = new TradeTerminalInfo(); - tradeTerminalInfo.setIp("127.0.0.1"); - tradeTerminalInfo.setTerminal("1"); - tradeTerminalInfo.setMac(""); - ZLUserInfo userInfo = null; - try { - userInfo = ZhengLianUtil.getUserInfo("11448158", tradeTerminalInfo); - } catch (Exception e) { - throw new RuntimeException(e); - } - System.err.println(userInfo); - } -} +//package com.stylefeng.guns; +// +//import com.stylefeng.guns.modular.specialTrain.server.IOrderPrivateCarService; +//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 +//public class GunsApplicationTest { +// +// @Autowired +// private IOrderPrivateCarService orderPrivateCarService; +// +// +// @Test +// public void test() { +// try { +// orderPrivateCarService.queryMoneyInfo(369); +// } catch (Exception e) { +// throw new RuntimeException(e); +// } +// } +//} -- Gitblit v1.7.1