Veronique 5 月之前
父節點
當前提交
833a0cb7a5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      conf/script/1000/init/Run_1_Script2DataBase.groovy

+ 2 - 0
conf/script/1000/init/Run_1_Script2DataBase.groovy

@@ -36,6 +36,8 @@ static def createRunnable(String appHome, SupplierInitService supplierService, R
             if (!redisService.hexists(keysService.getRedisKey(RedisKeys.KEY_BUSINESSSCRIPT, supplierCode), code)) {
                 //读取脚本信息
                 try (GroovyClassLoader groovyCl = new GroovyClassLoader(supplierService.getClass().getClassLoader(), ERPUtils.buildERPGroovyConfig())) {
+                    //添加公共commons目录
+                    groovyCl.addClasspath(directoryName + "commons")
                     groovyCl.addClasspath(x.getParent().toString())
 
                     String fileStr = ReadUTF8File.execute(x.toPath(), false, logger)