This commit is contained in:
default
2018-11-21 16:40:21 +08:00
parent 4a6d79d33c
commit 41a3e036cb

View File

@@ -101,14 +101,14 @@ public class SyncMissionResultStatisticalInterceptor implements Interceptor{
") t \r\n" +
"left join mission_state_table mst on mst.mission_id = t.mission_id \r\n" +
"where mst.is_loop = 0 and mst.mission_id=?",missionId);
boolean noThree=true;
/*boolean noThree=true;
if(null!=results&&results.size()>0) {
for (Record record : results) {
if(record.getInt("result")==3) {
if(record.getInt("result")==3||record.getInt("result")==40||record.getInt("result")==41) {
noThree=false;
}
}
}
}*/
// 判断任务结果有没有状态值为3的 如果有 则任务状态为在下发
Record result = Db.use().findFirst("select t.mission_id,t.ok,t.fail,t.total from (\r\n" +
"(select mrt.mission_id,sum(CASE mrt.result when 0 THEN 1 ELSE 0 end) ok,sum(CASE mrt.result when 1 then 1 when -1 then 1 else 0 end) fail,count(mrt.seq_id) total from mission_result_table1 mrt group by mrt.mission_id) union all \r\n" +
@@ -131,7 +131,7 @@ public class SyncMissionResultStatisticalInterceptor implements Interceptor{
}else {
status=32;
}
}else {
}else{
status=2;
}