update
This commit is contained in:
@@ -186,10 +186,8 @@ public class SyncMissionResultStatisticalInterceptor implements Interceptor{
|
|||||||
}
|
}
|
||||||
Db.update("mission_state_table", missionTableInfo);
|
Db.update("mission_state_table", missionTableInfo);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 修改周期任务的执行状态
|
// 修改周期任务的执行状态
|
||||||
if(null!=loopmissionStateTableInfo) {
|
|
||||||
Record result = Db.use().findFirst("select lmst.mission_id missionId, t.ok, t.fail, t.total\r\n" +
|
Record result = Db.use().findFirst("select lmst.mission_id missionId, t.ok, t.fail, t.total\r\n" +
|
||||||
"from (select mrt.mission_id, \r\n" +
|
"from (select mrt.mission_id, \r\n" +
|
||||||
"ifnull(sum(case mrt.result when 0 then 1 else 0 end), 0) ok, \r\n" +
|
"ifnull(sum(case mrt.result when 0 then 1 else 0 end), 0) ok, \r\n" +
|
||||||
@@ -215,8 +213,8 @@ public class SyncMissionResultStatisticalInterceptor implements Interceptor{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(null!=loopmissionStateTableInfo&&!isInsert) {
|
if(isInsert) {
|
||||||
missionState = loopmissionStateTableInfo.getInt("mission_state");
|
missionState = loopmissionStateTableInfo.getInt("mission_state");
|
||||||
Integer missionTableInfoState = missionTableInfo.getInt("mission_state");
|
Integer missionTableInfoState = missionTableInfo.getInt("mission_state");
|
||||||
switch(missionState) {
|
switch(missionState) {
|
||||||
@@ -247,7 +245,7 @@ public class SyncMissionResultStatisticalInterceptor implements Interceptor{
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(null!=loopmissionStateTableInfo) {
|
|
||||||
Record missionStateTableResult =new Record();
|
Record missionStateTableResult =new Record();
|
||||||
missionStateTableResult.set("mission_id", loopmissionStateTableInfo.get("mission_id"));
|
missionStateTableResult.set("mission_id", loopmissionStateTableInfo.get("mission_id"));
|
||||||
if(status!=null) {
|
if(status!=null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user