|  | @ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 | 
	
		
			
				|  |  | import javax.annotation.Resource;
 | 
	
		
			
				|  |  | import javax.servlet.http.HttpServletRequest;
 | 
	
		
			
				|  |  | import java.lang.reflect.Method;
 | 
	
		
			
				|  |  | import java.text.SimpleDateFormat;
 | 
	
		
			
				|  |  | import java.util.*;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /**
 | 
	
	
		
			
				|  | @ -103,6 +104,22 @@ public class DataCollectController extends BaseController {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping("compareServeTime")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public Result getJob(String time){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  |             if(df.parse(time).before(new Date())) {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 return Result.success("beforeServeTime");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             else
 | 
	
		
			
				|  |  |                 return Result.error("afterServeTime");
 | 
	
		
			
				|  |  |         }catch (Exception ex){
 | 
	
		
			
				|  |  |             return Result.error(ex.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 根据适配方案获取数据集列表
 | 
	
		
			
				|  |  |      */
 |