|
@@ -7,20 +7,20 @@ import com.jfinal.plugin.activerecord.Record;
|
|
|
import com.jfinal.plugin.cron4j.ITask;
|
|
|
import com.zskk.tools.ExecUtil;
|
|
|
|
|
|
-public class CGetTask implements ITask {
|
|
|
+public class CMoveTask implements ITask {
|
|
|
|
|
|
@Override
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
- Record studyidfind = Db.use("local").findFirst("select * from study where status =1 or status =4 order by createAt asc");
|
|
|
+ Record studyidfind = Db.use("local").findFirst("select * from study where status =1 or status =2 order by createAt asc");
|
|
|
if (studyidfind == null) {
|
|
|
return;
|
|
|
}
|
|
|
- studyidfind.set("status", 2);
|
|
|
+ studyidfind.set("status", 4);
|
|
|
Db.use("local").update("study", studyidfind);
|
|
|
- String execCmd = ExecUtil.execCmd("/zskk_system/other/cget.sh " + studyidfind.getStr("studyuid"));
|
|
|
+ String execCmd = ExecUtil.execCmd("/zskk_system/other/cmove.sh " + studyidfind.getStr("studyuid"));
|
|
|
if (execCmd.contains("Connection refused")) {
|
|
|
- studyidfind.set("status", 4);
|
|
|
+ studyidfind.set("status", 2);
|
|
|
Db.use("local").update("study", studyidfind);
|
|
|
return;
|
|
|
}
|