Przeglądaj źródła

代码漏洞修改

xuxiaofei 2 lat temu
rodzic
commit
5ec9fdb179

+ 0 - 1
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/onemachine/service/OneMachineService.java

@@ -379,7 +379,6 @@ public class OneMachineService implements ValidationSignInPerInfo {
                     return ResultData.result(subjectAccessRecord.getId());
                 } else if (signEnum.equals(SignEnum.SIGN_OUT)) {
                     redisService.deleteObject(verifyKey);
-//                    return ResultData.result(subjectAccessRecordService.out(Long.parseLong(s), user.getUserId()));
                     subjectAccessRecordService.out(Long.parseLong(s), user.getUserId());
 
                     //学生登陆时 给奖励分

+ 0 - 2
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/BigViewServiceImpl.java

@@ -116,8 +116,6 @@ public class BigViewServiceImpl {
             sub.setAddress(Optional.ofNullable(subAddrrMap.get(sub.getLayoutId())).map(SubAddrr::addrrPlus).orElse(StrUtil.EMPTY));
             // subDept 实验室分类
             sub.setSubDept(DictUtils.getDictCacheLable("subject_class",sub.getSubDept()));
-            // 风险等级
-            //sub.setSubClassVO(labSubjectManagerService.getSubClassVO(sub.getId()));
             sub.setSubClassVO(null);
         });
 

+ 3 - 5
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabAudioSynthesisServiceImpl.java

@@ -159,7 +159,7 @@ public class LabAudioSynthesisServiceImpl implements ILabAudioSynthesisService
             pro.waitFor();
             this.stop();
         } catch (Exception e) {
-
+            log.error("exec异常:"+e);
         }
     }
 
@@ -178,10 +178,8 @@ public class LabAudioSynthesisServiceImpl implements ILabAudioSynthesisService
             br = new BufferedReader(isr);
             String str;
             // 通过readLine()方法按行读取字符串
-            while ((str = br.readLine()) != null) {
-            }
         } catch (IOException e) {
-
+            log.error("output异常:"+e);
         } finally {
             close(br, isr, stream);
         }
@@ -191,7 +189,7 @@ public class LabAudioSynthesisServiceImpl implements ILabAudioSynthesisService
             try {
                 ac.close();
             } catch (Exception e) {
-
+                log.error("close异常:"+e);
             }
         }
     }

+ 0 - 11
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabBuildFloorLayoutServiceImpl.java

@@ -32,17 +32,6 @@ public class LabBuildFloorLayoutServiceImpl implements ILabBuildFloorLayoutServi
 
     @Override
     public List <LabBuildFloorLayoutVo> selectLabBuildFloorLayoutList(LabBuildFloorLayout labBuildFloorLayout) {
-//        List<SysDictData> dictDatas = DictUtils.getDictCache("layout_room_type");
-//        SysDictData sysDictData = new SysDictData();
-//        sysDictData.setDictLabel("其他");
-//        sysDictData.setDictValue("-99");
-//        dictDatas.add(sysDictData);
-//        Consumer<LabBuildFloorLayoutVo> consumer = c->Optional.ofNullable(dictDatas).orElseGet(Collections::emptyList)
-//                .stream()
-//                .filter(b->b.getDictValue().equals(c.getRoomType()+""))
-//                .forEach(b->{
-//                    c.setRoomTypeName(b.getDictLabel());
-//                });
         return labBuildFloorLayoutMapper.selectLabBuildFloorLayoutList(labBuildFloorLayout);
     }
 

+ 5 - 0
zd-modules/zd-modules-laboratory/src/main/java/com/zd/laboratory/service/impl/LabCheckMachineMsgServiceImpl.java

@@ -226,6 +226,8 @@ public class LabCheckMachineMsgServiceImpl implements ILabCheckMachineMsgService
         LabCheckConfig checkConfigInfo = labCheckConfigService.getCheckConfigInfo();
         if (checkConfigInfo != null) {
             boolean senMsg = false;
+            //String count="您有新的整改报告需要审批,请注意查看";//发送的内容
+
             LabCheckRecord checkRecord = labCheckRecordService.selectLabCheckRecordById(checkRecordId);
 
             if (checkRecord != null) {
@@ -359,6 +361,7 @@ public class LabCheckMachineMsgServiceImpl implements ILabCheckMachineMsgService
                     labMessageContent.setSendMode(2);
                     labMessageContent.setSendRange(3);
                     labMessageContent.setMessClass(1);
+                    //labMessageContent.setContent(checkConfigInfo.getCheckAppMsg());
                     labMessageContent.setContent(count != null ? count : checkConfigInfo.getCheckAppMsg());
                     labMessageContent.setUserIds(userId + "");
 
@@ -371,6 +374,7 @@ public class LabCheckMachineMsgServiceImpl implements ILabCheckMachineMsgService
                     labCheckMachineMsg.setCheckRecordId(checkRecordId);
                     labCheckMachineMsg.setType(type);
                     labCheckMachineMsg.setCheckMsg(checkConfigInfo.getRectifyAioMsg());
+                    //labCheckMachineMsg.setCheckMsg(count!=null?count:checkConfigInfo.getRectifyAioMsg());
                     SaveUtil.setCommonAttr(labCheckMachineMsg);
 
                     senMsg = true;
@@ -381,6 +385,7 @@ public class LabCheckMachineMsgServiceImpl implements ILabCheckMachineMsgService
                     labMessageContent.setSendMode(2);
                     labMessageContent.setSendRange(3);
                     labMessageContent.setMessClass(1);
+                    //labMessageContent.setContent(checkConfigInfo.getCheckAppMsg());
                     labMessageContent.setContent(count != null ? count : checkConfigInfo.getRectifyAppMsg());
                     labMessageContent.setUserIds(userId + "");
                 }