| | |
| | | //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.IWeatherCityService; |
| | | //import com.supersavedriving.driver.modular.system.util.juhe.WeatherCityInfo; |
| | | //import com.supersavedriving.driver.modular.system.util.juhe.WeatherUtil; |
| | |
| | | //import org.springframework.boot.test.context.SpringBootTest; |
| | | //import org.springframework.test.context.junit4.SpringRunner; |
| | | // |
| | | //import java.util.ArrayList; |
| | | //import java.util.List; |
| | | // |
| | | //@RunWith(SpringRunner.class) |
| | | //@SpringBootTest |
| | | //public class GunsApplicationTest { |
| | | // |
| | | // @Autowired |
| | | // private IWeatherCityService weatherCityService; |
| | | // private IAccountChangeDetailService accountChangeDetailService; |
| | | // |
| | | // |
| | | // @Test |
| | | // public void test(){ |
| | | // List<WeatherCityInfo> weatherCities = WeatherUtil.queryCityList(); |
| | | // List<WeatherCity> list = new ArrayList<>(); |
| | | // for (WeatherCityInfo weatherCityInfo : weatherCities) { |
| | | // WeatherCity weatherCity1 = new WeatherCity(); |
| | | // BeanUtils.copyProperties(weatherCityInfo, weatherCity1); |
| | | // list.add(weatherCity1); |
| | | // } |
| | | // weatherCityService.insertBatch(list); |
| | | // accountChangeDetailService.deductionInsurance(); |
| | | // } |
| | | //} |