From 92e00dafd06ec748b51f565c7a4c98986a618de9 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期六, 03 六月 2023 02:01:40 +0800 Subject: [PATCH] 新增加分账功能 --- driver/guns-admin/src/test/java/com/supersavedriving/driver/GunsApplicationTest.java | 86 ++++++++++++++++++++++++++++--------------- 1 files changed, 56 insertions(+), 30 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 56d50ff..5cd2811 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,30 +1,56 @@ -//package com.supersavedriving.driver; -// -//import com.supersavedriving.driver.modular.system.model.WeatherCity; -//import com.supersavedriving.driver.modular.system.service.IAccountChangeDetailService; -//import com.supersavedriving.driver.modular.system.service.IOrderService; -//import com.supersavedriving.driver.modular.system.service.IWeatherCityService; -//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 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; -// -// -// @Test -// public void test() throws Exception { -// ResultUtil resultUtil = orderService.rejectionOrder(1, 1L); -// } -//} +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)); + } +} -- Gitblit v1.7.1