Bladeren bron

add mq自动添加常量

18339543638 3 jaren geleden
bovenliggende
commit
0a260365b6

+ 1 - 1
nb-auth/src/main/java/com/nb/auth/sa/DefaultSaTokenListener.java

@@ -31,7 +31,7 @@ public class DefaultSaTokenListener implements SaTokenListener {
     @Override
     public void doLogin(String loginType, Object loginId, String tokenValue, SaLoginModel loginModel) {
         AuthDelayMessage message = AuthDelayMessage.of(loginType, tokenValue, saTokenConfig.getActivityTimeout(), TimeUnit.SECONDS);
-        log.info("账号{}登录成功,tokenValue:{},loginType:{}",loginId,loginModel.getToken(),loginType);
+        log.info("账号{}登录成功,tokenValue:{},loginType:{}",loginId,tokenValue,loginType);
         delayMessageManager.add(new DelayMessage(message, AuthDelayConstant.AUTH_HANDLER, DelayMessageProperties.of(TimeUnit.SECONDS,saTokenConfig.getActivityTimeout())));
     }
 

+ 1 - 0
nb-service-api/web-service-api/src/main/java/com/nb/web/api/bean/UndoDeviceConfig.java

@@ -20,6 +20,7 @@ import java.util.Objects;
 @Data
 @ApiModel("撤泵所填信息")
 public class UndoDeviceConfig implements Serializable {
+    private final long serialVersionUID=1L;
     @ApiModelProperty("撤泵人")
     @NotNull(message = "撤泵人不能为空")
     private String undoBy;

+ 3 - 5
nb-service/web-service/src/main/java/com/nb/web/service/bus/hospital/script/PythonParse.java

@@ -25,7 +25,7 @@ public class PythonParse implements ScriptParse {
     private PyFunction pyFunction;
     private String script=null;
 
-    public PythonParse() {
+    static {
         Properties props = new Properties();
         props.setProperty("python.console.encoding", "UTF-8");
         props.put("python.home", "jython-standalone-2.7.1.jar");
@@ -35,13 +35,11 @@ public class PythonParse implements ScriptParse {
         Properties preprops = System.getProperties();
         PythonInterpreter.initialize(preprops, props, new String[0]);
         PySystemState systemState = Py.getSystemState();
-//        PyString standalone = new PyString("\\python-modules\\Lib");
-//        PyString xml = new PyString("E:\\software\\coffee-boot\\coffee-admin\\src\\main\\resources\\python");
-//        systemState.path.append(standalone);
         log.info("python path >>>>>>>>>>>>>>>>>:{}",systemState.path);
         PythonInterpreter.initialize(System.getProperties(), props, new String[] {});
+    }
+    public PythonParse() {
         interpreter = new PythonInterpreter();
-
     }
 
     @Override