//package com.agentdriving.driver; // //import com.agentdriving.driver.modular.system.model.WeatherCity; //import com.agentdriving.driver.modular.system.service.IAccountChangeDetailService; //import com.agentdriving.driver.modular.system.service.IOrderService; //import com.agentdriving.driver.modular.system.service.IWeatherCityService; //import com.agentdriving.driver.modular.system.util.ResultUtil; //import com.agentdriving.driver.modular.system.util.juhe.WeatherCityInfo; //import com.agentdriving.driver.modular.system.util.juhe.WeatherUtil; //import com.agentdriving.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.Calendar; //import java.util.Date; // // //@RunWith(SpringRunner.class) //@SpringBootTest //public class GunsApplicationTest { // // @Autowired // private IOrderService orderService; // // // @Test // public void test() throws Exception { // SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // Integer hour1 = 11; // Calendar s = Calendar.getInstance(); // s.setTime(new Date()); // s.set(Calendar.HOUR_OF_DAY, hour1); // System.err.println(sdf.format(s.getTime())); // // Integer hour2 = 16; // Calendar e = Calendar.getInstance(); // e.setTime(new Date()); // e.set(Calendar.HOUR_OF_DAY, hour1 <= hour2 ? hour2 : hour2 + 24); // System.err.println(sdf.format(e.getTime())); // } //}