summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java b/nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java
index 9fb4da3..4ee540b 100644
--- a/nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java
+++ b/nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java
@@ -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;
}