Veronique před 5 měsíci
rodič
revize
833a0cb7a5

+ 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)