瀏覽代碼

2023-3-8 24小时违规记录代码优化。

chaiyunlong 2 年之前
父節點
當前提交
89794b1fda

+ 2 - 19
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabSubjectAccessRecordServiceImpl.java

@@ -240,6 +240,7 @@ public class LabSubjectAccessRecordServiceImpl implements ILabSubjectAccessRecor
         int i = 0;
         int i = 0;
         if(subAccessRecordList.size()>0)
         if(subAccessRecordList.size()>0)
         {
         {
+            i = labSubjectAccessRecordMapper.outTimeChangeStatus();
             List<LabViolationScoreSite> scoreSiteList = scoreSiteMapper.selectLabViolationScore();
             List<LabViolationScoreSite> scoreSiteList = scoreSiteMapper.selectLabViolationScore();
             Map<String,String> allMapScore = new HashMap <>();
             Map<String,String> allMapScore = new HashMap <>();
             Optional.ofNullable(scoreSiteList).orElseGet(Collections::emptyList)
             Optional.ofNullable(scoreSiteList).orElseGet(Collections::emptyList)
@@ -309,27 +310,9 @@ public class LabSubjectAccessRecordServiceImpl implements ILabSubjectAccessRecor
                             }
                             }
                         }
                         }
 
 
-
-
-
-
-//                        Map map = new HashMap();
-//                        map.put("joinUserId", a.getJoinUserId());
-//                        if (allMapScore.get(a.getViolationName())!=null) {
-//                            map.put("deductPoints", allMapScore.get(a.getViolationName()));
-//                        } else {
-//                            map.put("deductPoints", 0);
-//                        }
-//                        map.put("pointsType", "1");
-//                        map.put("reason", a.getViolationName());
-//                        remoteExamService.deductionPoints(map);
-//
-//                        LabNegativeListRecords records = negativeListRecordsMapper.findByUserId(a.getJoinUserId());
-//                        Integer score = 0;
-//                        LabNegativelistHistory history = labViolationServiceImpl.CovertHistory(vo);
                     });
                     });
             subMessageSendManager.SendBigViewUpdate(BigViewDataType.SUB_ONLINE);
             subMessageSendManager.SendBigViewUpdate(BigViewDataType.SUB_ONLINE);
-            i = labSubjectAccessRecordMapper.outTimeChangeStatus();
+
         }
         }
 
 
         return i;
         return i;