| | |
| | | //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.Order; |
| | | //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; |
| | | // import com.alibaba.fastjson.JSON; |
| | | // import com.alibaba.fastjson.JSONObject; |
| | | // import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | // import com.supersavedriving.driver.modular.system.model.*; |
| | | // import com.supersavedriving.driver.modular.system.service.*; |
| | | // import com.supersavedriving.driver.modular.system.service.impl.OrderServiceImpl; |
| | | // import com.supersavedriving.driver.modular.system.util.MallBook.model.Complete; |
| | | // import com.supersavedriving.driver.modular.system.util.MallBook.model.InterfaceResponse; |
| | | // import com.supersavedriving.driver.modular.system.util.MallBook.model.PamentOrderUser; |
| | | // import com.supersavedriving.driver.modular.system.util.MallBook.util.TrhRequest; |
| | | // import com.supersavedriving.driver.modular.system.util.ResultUtil; |
| | | // import com.supersavedriving.driver.modular.system.util.UUIDUtil; |
| | | // 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.OrderPriceWarpper; |
| | | // 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; |
| | | // |
| | | // import java.text.SimpleDateFormat; |
| | | // import java.util.*; |
| | | // |
| | | // |
| | | //@RunWith(SpringRunner.class) |
| | |
| | | // @Autowired |
| | | // private IDriverBankService driverBankService; |
| | | // |
| | | // @Autowired |
| | | // private IAppUserService appUserService; |
| | | // |
| | | // @Autowired |
| | | // private ISystemConfigService systemConfigService; |
| | | // |
| | | // @Autowired |
| | | // private IAccountChangeDetailService accountChangeDetailService; |
| | | // |
| | | // @Autowired |
| | | // private IRevenueService revenueService; |
| | | // |
| | | // @Autowired |
| | | // private IRechargeRecordService rechargeRecordService; |
| | | // |
| | | // @Autowired |
| | | // private IAgentService agentService; |
| | | // |
| | | // @Autowired |
| | | // private IDivisionRecordService divisionRecordService; |
| | | // |
| | | // |
| | | // |
| | | // |
| | | // @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)); |
| | | // |
| | | // Order order = orderService.selectById(2019); |
| | | // orderService.saveRevenue(order); |
| | | // OrderPriceWarpper orderPriceWarpper = orderService.queryOrderPrice(1, 1136L); |
| | | // System.err.println(orderPriceWarpper); |
| | | // } |
| | | // |
| | | //} |