Browse Source

获取影像时间由夜间更改为实时

LAPTOP-5NTQJPUS\LT 1 year ago
parent
commit
690463f3b0
1 changed files with 5 additions and 5 deletions
  1. 5 5
      DataFusion/src/com/zskk/task/DownloadTask.java

+ 5 - 5
DataFusion/src/com/zskk/task/DownloadTask.java

@@ -21,10 +21,10 @@ public class DownloadTask implements ITask {
 	@Override
 	public void run() {
 		// TODO Auto-generated method stub
-		String[] strNow = new SimpleDateFormat("HH:mm:ss").format(new Date()).toString().split(":");
-		//获取时(24小时制)		
-		Integer hInt = Integer.parseInt(strNow[0]);
-		if ((hInt <= 6 && hInt >=0) || (hInt <= 24 && hInt >=20)) {
+//		String[] strNow = new SimpleDateFormat("HH:mm:ss").format(new Date()).toString().split(":");
+//		//获取时(24小时制)		
+//		Integer hInt = Integer.parseInt(strNow[0]);
+//		if ((hInt <= 6 && hInt >=0) || (hInt <= 24 && hInt >=20)) {
 			DataService dService = ServiceFactory.getService(DataService.class);
 			Record recordfind = Db.use("local").findFirst("select * from study where status=1 order by createAt asc");
 //			recordfind.set("status", 2);
@@ -41,7 +41,7 @@ public class DownloadTask implements ITask {
 			recordfind.set("status", 3);
 			recordfind.set("updateAt", getDateStr());
 			Db.use("local").update("study", recordfind);
-		}
+//		}
 	}
 
 	@Override