init import

This commit is contained in:
weiyunlong 2024-08-28 16:58:57 +08:00
parent 50f60e467a
commit d8bb1176f9
46 changed files with 881 additions and 0 deletions

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
/base/shkd-base-common/build.gradle
/base/shkd-base-helper/build.gradle
/fi/fi/shkd-fi-fi-business/build.gradle
/fi/fi/shkd-fi-fi-common/build.gradle
/fi/fi/shkd-fi-fi-mservice/build.gradle
/fi/fi/shkd-fi-fi-plugin/build.gradle
/fi/fi/shkd-fi-fi-report/build.gradle
/fi/fi/shkd-fi-fi-webapi/build.gradle
/shkd-cosmic-debug/build.gradle
/build.gradle

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

Binary file not shown.

View File

@ -0,0 +1,2 @@
#Wed Aug 14 14:47:57 CST 2024
gradle.version=7.6.3

Binary file not shown.

BIN
.gradle/file-system.probe Normal file

Binary file not shown.

View File

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

1
.idea/.name Normal file
View File

@ -0,0 +1 @@
shkd-cosmic

6
.idea/compiler.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>

27
.idea/gradle.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/base/shkd-base-common" />
<option value="$PROJECT_DIR$/base/shkd-base-helper" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-business" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-common" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-mservice" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-plugin" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-report" />
<option value="$PROJECT_DIR$/fi/fi/shkd-fi-fi-webapi" />
<option value="$PROJECT_DIR$/shkd-cosmic-debug" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

View File

@ -0,0 +1,8 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JavadocDeclaration" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ADDITIONAL_TAGS" value="description生成上传文件链接" />
</inspection_tool>
</profile>
</component>

35
.idea/jarRepositories.xml Normal file
View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven" />
<option name="name" value="maven" />
<option name="url" value="https://maven.aliyun.com/repository/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenLocal" />
<option name="name" value="MavenLocal" />
<option name="url" value="file:/$MAVEN_REPOSITORY$/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven2" />
<option name="name" value="maven2" />
<option name="url" value="https://maven.aliyun.com/repository/gradle-plugin" />
</remote-repository>
</component>
</project>

10
.idea/misc.xml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

45
config.gradle Normal file
View File

@ -0,0 +1,45 @@
/**
* This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
* If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
* Website: https://developer.kingdee.com/developer?productLineId=29
* Author: liebin.zheng
* Generate Date: 2024-08-14 14:47:09
*/
def cosmic_libs_path = System.getProperty('cosmic_libs_path')
def cosmic_home = null
if(cosmic_libs_path == null){
//println "NO 'cosmic_libs_path' property was setted in gradle.properties. "
//println "Try to find the 'cosmic_home' property in gradle.properties."
cosmic_home = System.getProperty('cosmic_home')
}
if(cosmic_home == null){
//println "NO 'cosmic_home' property was setted in gradle.properties. "
//println "Try to find the 'COSMIC_HOME' property in System environment."
cosmic_home = System.getenv('COSMIC_HOME')
}
if(cosmic_home != null){
cosmic_libs_path = "${cosmic_home}/mservice-cosmic/lib"
}
if(cosmic_libs_path == null){
throw new RuntimeException("Neither 'COSMIC_LIBS_PATH' was setted in System environment, nor 'cosmic_libs_path' property was setted in gradle.properties.")
}
println "The 'cosmic_libs_path' is: '${cosmic_libs_path}'."
ext {
path = [
trd : "${cosmic_libs_path}/trd",
bos : "${cosmic_libs_path}/bos",
biz : "${cosmic_libs_path}/biz",
cus : "${cosmic_libs_path}/cus",
outputdir : "${cosmic_libs_path}/outputdir"
]
}

2
cosmic.properties Normal file
View File

@ -0,0 +1,2 @@
#Wed Aug 14 14:47:09 CST 2024
MCServerURL=http://isctest.dobechina.com:8090/appstore/dev_env/

BIN
docs/images/code1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
docs/images/idea-gradle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

26
gradle.properties Normal file
View File

@ -0,0 +1,26 @@
### ----------------------------
### This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
### If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
### Website: https://developer.kingdee.com/developer?productLineId=29
### Author: liebin.zheng
### Generate Date: 2024-08-14 14:47:09
### ----------------------------
systemProp.kddt_version=2.1.6
systemProp.template_type=multi
systemProp.groupId=shkd.cosmic
systemProp.artifactId=shkd-cosmic
systemProp.version=1.0.0
systemProp.jdk.version=1.8
systemProp.developer_flag=shkd
systemProp.project_dir=E:/db_workspace/zb_comic6
systemProp.cosmic_home=E:/db_workspace
#systemProp.cosmic_home=E:/zy_workspace
#systemProp.cosmic_libs_path=E:/zy_workspace/mservice-cosmic/lib
#systemProp.cosmic_static_path=E:/zy_workspace/static-file-service
#systemProp.res_url=http://isctest.dobechina.com:8090/appstore/dev_env/
#systemProp.zk_url=47.116.215.7:2181
#systemProp.mc_url=http://isctest.dobechina.com:8090/mc
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.caching=true
org.gradle.jvmargs=-Xms256m -Xmx1024m -XX:MaxMetaspaceSize=128m

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-7.6.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

240
gradlew vendored Normal file
View File

@ -0,0 +1,240 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx1024m" "-Xms256m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

91
gradlew.bat vendored Normal file
View File

@ -0,0 +1,91 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx1024m" "-Xms256m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

150
readme.md Normal file
View File

@ -0,0 +1,150 @@
# 金蝶云苍穹Gradle模板使用说明
## 1.启动服务
### 1) DebugApplication中设置好环境必要的参数
- setClusterNumber: 集群编码
- setTenantNumber: 租户编码
- setMcServerUrl: 设置MC服务地址
- setCosmicWepPort: 设置苍穹服务端口
- setConfigUrl: 设置zk服务地址及用户密码
- setFsServerUrl: 设置文件服务地址
- setImageServerUrl: 设置图像服务地址
例:
```java
cosmic.setClusterNumber("cosmic");
cosmic.setTenantNumber("sample");
cosmic.setMcServerUrl("http://127.0.0.1:8090");
cosmic.setCosmicWepPort(8080)
cosmic.setConfigUrl("127.0.0.1:2182?user=zk&password=xxxxxx");
cosmic.setFsServerUrl("127.0.0.1", 8100);
cosmic.setImageServerUrl("127.0.0.1", 8100);
```
### 2) 启动服务
```java
kd.cosmic.DebugApplication
```
首次运行请检查项目默认的JDK确保为1.8版本,否则会提示启动异常。
### 3) 登录
启动完毕后打开http://127.0.0.1:8080/ierp
注意此处的端口为setCosmicWepPort所配置的具体端口数值
## 2.更新环境
菜单操作路径:苍穹开发助手-->更新环境
将从MC服务器上更新最新包cosmic.zip、webapp.zip解压到统一的苍穹资源目录下可通过系统环境变量"COSMIC_HOME"或项目中gradle.properties的"systemProp.cosmic_home"配置项指定。
默认的web静态资源目录为System.getenv("COSMIC_HOME") + "/static-file-service",也可通过以下代码修改:
```java
cosmic.setWebResPath("xxx/static-file-service")
```
注意:更新版本时请先停止在正在跑或调试的工程,避免文件占用无法覆盖。
## 3.工程打包与部署
工程打包有多种方式可通过Idea或Eclipse中Gradle命令界面build菜单下的"buildJar"任务也可以打开CMD终端使用"gradle buildJar"命令方式实现。
```cmd
cd your_project_dir
gradle buildJar
```
Jar包部署有多种方式可通过Idea或Eclipse中Gradle命令界面build菜单下的"deployJar"任务也可以打开CMD终端使用"gradle deployJar"命令方式实现。
```cmd
cd your_project_dir
gradle deployJar
```
推荐开发工具自带的Gradle构建菜单进行工程的构建、清理及部署等任务。
Idea Gradle工具菜单如下图
![idea-gradle](docs/images/idea-gradle.png)
Eclipse Gradle工具菜单如下图
![idea-gradle](docs/images/eclipse-gradle.png)
## 6.金蝶代码扫描
右键项目工程目录,在右侧菜单中,点击“金蝶代码分析/金蝶代码扫描”功能,即可实现对该工程代码的静态代码扫描。
![code1](docs/images/code1.png)
## 5.插件选项
菜单操作路径File->Settings->苍穹开发助手
## 6.搜索工具窗
菜单操作路径View->Tool Windows->苍穹开发助手
若当前为苍穹工程(工程根目录下有cosmic.properties文件),苍穹开发助手自行显示,停靠在右上角。
提供文档检索功能。
## 7.菜单-登录开发者门户
未登录:苍穹开发助手(工具窗)-社区文章-可搜索“开发者社区”文档
登录后:苍穹开发助手(工具窗)-社区文章-可搜索“开发者社区+开发者门户”文档
## 8.常见问题
8.1. 忘记ZK账号密码可通过从MC服务查看的环境变量configUrl或可通过SQL在MC数据库实例中查询参考如下SQL
```sql
select t.furl, t.fusername, t.fpassword from t_mc_zookeeper t ;
```
## 9.相关文档
1、苍穹开发者工具下载与安装
https://developer.kingdee.com/article/418778103486608384
2、金蝶云·苍穹开发环境搭建
https://developer.kingdee.com/article/418816210550117376
3、金蝶云·苍穹开发者助手插件安装
https://developer.kingdee.com/article/476393455359492608
4、金蝶云·苍穹代码规范扫描介绍
https://developer.kingdee.com/article/476783839013202176
5、新版苍穹开发助手如何导入本地已有的项目或工程模块
https://developer.kingdee.com/article/517721581637036032
6、苍穹开发助手Debug工程启动报zookeeper认证错误-NoAuth
https://developer.kingdee.com/article/517758258006900992
7、苍穹debug工程启动或编译报GC错误: Out fo Memory或GC overhead limit
https://developer.kingdee.com/article/519826723685411072
8、启动苍穹本地debug服务的控制台日志卡在CuratorFrameworkImpl这一行
https://developer.kingdee.com/article/519891614198842112
9、IDEA启动命令行过长解决办法
https://vip.kingdee.com/article/357806944599232512
## 🤝 联系我们
请使用云之家扫描以下二维码。
### 苍穹开发者工具交流反馈群
![qrcode](docs/images/cosmic-studio-qrcode.png)

36
settings.gradle Normal file
View File

@ -0,0 +1,36 @@
/**
* This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
* If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
* Website: https://developer.kingdee.com/developer?productLineId=29
* Author: liebin.zheng
* Generate Date: 2024-08-14 14:47:09
*/
rootProject.name = System.getProperty('artifactId')
include(
'shkd-cosmic-debug',
':shkd-base-common',
':shkd-base-helper',
':shkd-fi-fi-common',
':shkd-fi-fi-business',
':shkd-fi-fi-plugin',
':shkd-fi-fi-report',
':shkd-fi-fi-mservice',
':shkd-fi-fi-webapi',
)
// -------------- --------------
//project(':shkd-cosmic-debug').projectDir = new File('shkd-cosmic-debug')
// -------------- --------------
project(':shkd-base-common').projectDir = new File('base/shkd-base-common')
project(':shkd-base-helper').projectDir = new File('base/shkd-base-helper')
// -------------- fi云-fi应用模块 --------------
project(':shkd-fi-fi-common').projectDir = new File('fi/fi/shkd-fi-fi-common')
project(':shkd-fi-fi-business').projectDir = new File('fi/fi/shkd-fi-fi-business')
project(':shkd-fi-fi-plugin').projectDir = new File('fi/fi/shkd-fi-fi-plugin')
project(':shkd-fi-fi-report').projectDir = new File('fi/fi/shkd-fi-fi-report')
project(':shkd-fi-fi-mservice').projectDir = new File('fi/fi/shkd-fi-fi-mservice')
project(':shkd-fi-fi-webapi').projectDir = new File('fi/fi/shkd-fi-fi-webapi')

View File

@ -0,0 +1,47 @@
/**
* This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
* If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
* Website: https://developer.kingdee.com/developer?productLineId=29
* Author: liebin.zheng
* Generate Date: 2024-08-14 14:47:09
*/
package shkd.cosmic.debug;
import kd.cosmic.debug.tools.CosmicLauncher;
/**
* 启动本地应用程序(微服务节点)
*/
public class DebugApplication {
public static void main(String[] args) {
// Thread.currentThread().setContextClassLoader(new KDSecurityClassLoader(Thread.currentThread().getContextClassLoader()));
CosmicLauncher cosmic = new CosmicLauncher(false);
cosmic.setClusterNumber("dobe-test");
cosmic.setTenantNumber("dobe");
// cosmic.setConfigUrl("127.0.0.1:2181?user=zk&password=xxx");
cosmic.setConfigUrl("47.116.215.7:2181?user=zookeeper&password=d@f*g:SGVsbG8==8q/SEAJkuojaiHbRywl6vDSJydRN8FDo+zV87UbTdomOa2RwYXNzd29yZA==");
// cosmic.setMcServerUrl("http://127.0.0.1:8090");
cosmic.setMcServerUrl("http://47.116.215.7:8090/mc");
// cosmic.setMcServerUrl("http://isctest.dobechina.com:8090/mc");
cosmic.setWebResPath("E:/zy_workspace/static-file-service");
// cosmic.setFsServerUrl("127.0.0.1", 8100);
// cosmic.setImageServerUrl("127.0.0.1", 8100);
cosmic.set("lightweightdeploy","true");//轻量级
//自定义本地苍穹调试服务的端口
cosmic.setCosmicWepPort(8881);
// cosmic.setDubboConfig(false, true, true);
cosmic.start();
}
}

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
Website: https://developer.kingdee.com/developer?productLineId=29
Author: liebin.zheng
Generate Date: 2024-08-14 14:47:09
-->
<configuration>
<property name="LOG_DIR" value="logs"/>
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n"/>
<logger name="org.apache.catalina.startup.DigesterFactory" level="ERROR"/>
<logger name="org.apache.catalina.util.LifecycleBase" level="ERROR"/>
<logger name="org.apache.coyote.http11.Http11NioProtocol" level="WARN"/>
<logger name="org.apache.sshd.common.util.SecurityUtils" level="WARN"/>
<logger name="org.apache.tomcat.util.net.NioSelectorPool" level="WARN"/>
<logger name="org.eclipse.jetty.util.component.AbstractLifeCycle" level="ERROR"/>
<logger name="org.hibernate.validator.internal.util.Version" level="WARN"/>
<logger name="org.springframework.boot.actuate.endpoint.jmx" level="WARN"/>
<logger name="kd.bos.dc.utils.AccountUtils" level="WARN"/>
<logger name="kd.bos.license" level="WARN"/>
<logger name="org.apache.zookeeper" level="WARN"/>
<logger name="kd.bos.portal.pluginnew" level="WARN" />
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<!--
<appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<file>${LOG_DIR}/cosmic_out.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<cleanHistoryOnStart>false</cleanHistoryOnStart>
<fileNamePattern>${LOG_DIR}/cosmic_out_%d{yyyyMMdd}_%i.log</fileNamePattern>
<maxFileSize>10MB</maxFileSize>
<maxHistory>7</maxHistory>
<totalSizeCap>0</totalSizeCap>
</rollingPolicy>
</appender>
-->
<appender name="kafka" class="kd.bos.logging.console.slf4j.logback.KafkaAppender">
<topic>{{clusterName}}-log</topic>
<brokerList>{{log.kafka.ip_port}}</brokerList>
<compressionType>none</compressionType>
<syncSend>false</syncSend>
<keySerializerClass>org.apache.kafka.common.serialization.StringSerializer</keySerializerClass>
<valueSerializerClass>org.apache.kafka.common.serialization.StringSerializer</valueSerializerClass>
</appender>
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="kafka" />
</root>
</configuration>

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
Website: https://developer.kingdee.com/developer?productLineId=29
Author: liebin.zheng
Generate Date: 2024-08-14 14:47:09
-->
<configuration>
<property name="LOG_DIR" value="logs"/>
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} %5p ${PID:- } --- [%t] %-40.40logger{39} : %m%n"/>
<logger name="org.apache.catalina.startup.DigesterFactory" level="ERROR"/>
<logger name="org.apache.catalina.util.LifecycleBase" level="ERROR"/>
<logger name="org.apache.coyote.http11.Http11NioProtocol" level="WARN"/>
<logger name="org.apache.sshd.common.util.SecurityUtils" level="WARN"/>
<logger name="org.apache.tomcat.util.net.NioSelectorPool" level="WARN"/>
<logger name="org.eclipse.jetty.util.component.AbstractLifeCycle" level="ERROR"/>
<logger name="org.hibernate.validator.internal.util.Version" level="WARN"/>
<logger name="org.springframework.boot.actuate.endpoint.jmx" level="WARN"/>
<logger name="kd.bos.dc.utils.AccountUtils" level="WARN"/>
<logger name="kd.bos.license" level="WARN"/>
<logger name="org.apache.zookeeper" level="INFO"/>
<logger name="kd.bos.portal.pluginnew" level="WARN" />
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
</appender>
<appender name="FILE"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<encoder>
<pattern>${LOG_PATTERN}</pattern>
</encoder>
<file>${LOG_DIR}/cosmic_out.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<cleanHistoryOnStart>false</cleanHistoryOnStart>
<fileNamePattern>${LOG_DIR}/cosmic_out_%d{yyyyMMdd}_%i.log</fileNamePattern>
<maxFileSize>10MB</maxFileSize>
<maxHistory>7</maxHistory>
<totalSizeCap>0</totalSizeCap>
</rollingPolicy>
</appender>
<!--
<appender name="kafka" class="kd.bos.logging.console.slf4j.logback.KafkaAppender">
<topic>{{clusterName}}-log</topic>
<brokerList>{{log.kafka.ip_port}}</brokerList>
<compressionType>none</compressionType>
<syncSend>false</syncSend>
<keySerializerClass>org.apache.kafka.common.serialization.StringSerializer</keySerializerClass>
<valueSerializerClass>org.apache.kafka.common.serialization.StringSerializer</valueSerializerClass>
</appender>
-->
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
</configuration>