| | |
| | | //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.service.impl.OrderServiceImpl; |
| | | //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.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.Calendar; |
| | | //import java.util.Date; |
| | | // |
| | | // |
| | | //@RunWith(SpringRunner.class) |
| | |
| | | // |
| | | // @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); |
| | | // Order order = orderService.selectById(1066); |
| | | // orderService.getOrderPrice(2, Double.valueOf(order.getActualMileage()) / 1000, order.getWaitTime(), order, null); |
| | | // } |
| | | //} |