From c8e2fab9ae930401aabdd6c2d461aa6b8828829f Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 05 六月 2023 14:56:31 +0800 Subject: [PATCH] 更新支付功能 --- driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java | 103 +++++++++++++++++++++++++++------------------------ 1 files changed, 55 insertions(+), 48 deletions(-) diff --git a/driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java b/driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java index f46a29c..884bbf1 100644 --- a/driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java +++ b/driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java @@ -1,49 +1,56 @@ -package com.supersavedriving.driver; - -import com.alibaba.fastjson.JSON; -import com.baomidou.mybatisplus.mapper.EntityWrapper; -import com.supersavedriving.driver.modular.system.model.DriverBank; -import com.supersavedriving.driver.modular.system.model.WeatherCity; -import com.supersavedriving.driver.modular.system.service.*; -import com.supersavedriving.driver.modular.system.util.ResultUtil; -import com.supersavedriving.driver.modular.system.util.juhe.WeatherCityInfo; -import com.supersavedriving.driver.modular.system.util.juhe.WeatherUtil; -import com.supersavedriving.driver.modular.system.warpper.PerformanceSummaryWarpper; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.beans.BeanUtils; -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 IOrderService orderService; - - @Autowired - private IDriverService driverService; - - @Autowired - private IDriverBankService driverBankService; - - - @Test - public void test() throws Exception { -// ResultUtil resultUtil = driverService.microenterprise(1, "蒲芝兵", "510823198911154858" -// , "15828353127", "https://10pz685243.zicp.fun/supersavedriving/base/driver/microenterpriseCallback"); +//package com.supersavedriving.driver; +// +//import com.alibaba.fastjson.JSON; +//import com.baomidou.mybatisplus.mapper.EntityWrapper; +//import com.supersavedriving.driver.modular.system.model.DriverBank; +//import com.supersavedriving.driver.modular.system.model.WeatherCity; +//import com.supersavedriving.driver.modular.system.service.*; +//import com.supersavedriving.driver.modular.system.util.ResultUtil; +//import com.supersavedriving.driver.modular.system.util.juhe.WeatherCityInfo; +//import com.supersavedriving.driver.modular.system.util.juhe.WeatherUtil; +//import com.supersavedriving.driver.modular.system.warpper.PerformanceSummaryWarpper; +//import org.junit.Test; +//import org.junit.runner.RunWith; +//import org.springframework.beans.BeanUtils; +//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 IOrderService orderService; +// +// @Autowired +// private IDriverService driverService; +// +// @Autowired +// private IDriverBankService driverBankService; +// +// +// @Test +// public void test() throws Exception { +//// ResultUtil resultUtil = driverService.microenterprise(1, "蒲芝兵", "510823198911154858" +//// , "15828353127", "https://10pz685243.zicp.fun/supersavedriving/base/driver/microenterpriseCallback"); +//// System.err.println(JSON.toJSONString(resultUtil)); +// +// +//// DriverBank driverId = driverBankService.selectOne(new EntityWrapper<DriverBank>().eq("driverId", 1)); +//// System.err.println(JSON.toJSONString(driverId)); +// +// +//// ResultUtil resultUtil = driverBankService.addDriverBank(1, "蒲芝兵", "15828353127" +//// , "510823198911154858", "6212264402094114687"); +//// System.err.println(JSON.toJSONString(resultUtil)); +// +// +//// ResultUtil resultUtil1 = driverBankService.delDriverBank(1, 1); +//// System.err.println(JSON.toJSONString(resultUtil1)); +// +// ResultUtil resultUtil = driverService.balanceRecharge(1, 1D); // System.err.println(JSON.toJSONString(resultUtil)); - - -// DriverBank driverId = driverBankService.selectOne(new EntityWrapper<DriverBank>().eq("driverId", 1)); -// System.err.println(JSON.toJSONString(driverId)); - - - ResultUtil resultUtil = driverBankService.addDriverBank(1, "蒲芝兵", "15828353127" - , "510823198911154858", "6212264402094114687"); - System.err.println(JSON.toJSONString(resultUtil)); - } -} +// } +//} -- Gitblit v1.7.1