diff options
| author | default <default@DESKTOP-7FEGRP2> | 2018-11-21 16:40:21 +0800 |
|---|---|---|
| committer | default <default@DESKTOP-7FEGRP2> | 2018-11-21 16:40:21 +0800 |
| commit | 41a3e036cb28c1a1e557b613d759f2492bcf784a (patch) | |
| tree | a7d63d853c8f934638ec3c5effaf68fd8ff5c42e | |
| parent | 4a6d79d33cd4c8ed09ab8eddedec9673fa03baa2 (diff) | |
update
| -rw-r--r-- | nms_sync/src/com/nms/interceptor/SyncMissionResultStatisticalInterceptor.java | 8 |
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;
}
|
