donggaosheng пре 1 година
родитељ
комит
daf17dc8ea

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

@@ -214,6 +214,7 @@ public class LabExitLineVertexServiceImpl implements ILabExitLineVertexService {
                         String relayCode = relay.getRelayCode();
                         String commandStr = RelayConstants.AT_STACH + relay.getRelayBit() + "=" + RelayConstants.AT_CLOSE + RelayConstants.SPACE_WRAP;
                         NettyPushMsgService.push(relayCode, commandStr.getBytes());
+                        Thread.sleep(timeWaitConfigUtils.getWaitTime());
                     } catch (IOException e) {
                         logger.error("异常信息:", e);
                     }
@@ -353,6 +354,7 @@ public class LabExitLineVertexServiceImpl implements ILabExitLineVertexService {
                                 String relayCode = a.getRelayCode();
                                 String commandStr = RelayConstants.AT_STACH + a.getRelayBit() + "=" + RelayConstants.AT_OPEN + RelayConstants.SPACE_WRAP;
                                 NettyPushMsgService.push(relayCode, commandStr.getBytes());
+                                Thread.sleep(timeWaitConfigUtils.getWaitTime());
                             } catch (IOException e) {
                                 logger.error("异常信息:", e);
                             }

+ 6 - 1
zd-modules/zd-modules-system/src/main/java/com/zd/system/service/impl/SysStudentServiceImpl.java

@@ -1119,7 +1119,12 @@ public class SysStudentServiceImpl implements ISysStudentService {
                 List<SysPost> sysPostList = postMapper.selectPostList(post);
                 if(!sysPostList.isEmpty()){
                     if(sysPostList.get(0).getRoleIds()!=null && !"".equals(sysPostList.get(0).getRoleIds())){
-                        Long[] roleIds = Arrays.asList(sysPostList.get(0).getRoleIds().split(",")).stream().map(a->Long.parseLong(a+"")).toArray((Long[]::new));
+                        String[] roleIdsStr = sysPostList.get(0).getRoleIds().split(",");
+                        Long[] roleIds = new Long[roleIdsStr.length];
+                        for(int x=0;x<roleIdsStr.length;x++){
+                            roleIds[x] = Long.parseLong(roleIdsStr[x]);
+                        }
+//                        Long[] roleIds = Arrays.asList(sysPostList.get(0).getRoleIds().split(",")).stream().map(a->Long.parseLong(a+"")).toArray((Long[]::new));
                         newSysUser.setRoleIds(roleIds);
                     }
                 }