Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
ac5ff03d
提交
ac5ff03d
编写于
1月 25, 2022
作者:
xignzi006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:
上级
30357556
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
58 行增加
和
4 行删除
+58
-4
pom.xml
modules/ibizlab-generator-core/pom.xml
+1
-1
AppEntityModel.java
...rc/main/java/cn/ibizlab/codegen/model/AppEntityModel.java
+7
-2
ModelStorage.java
.../src/main/java/cn/ibizlab/codegen/model/ModelStorage.java
+9
-1
SystemModel.java
...e/src/main/java/cn/ibizlab/codegen/model/SystemModel.java
+20
-0
WorkflowModel.java
...src/main/java/cn/ibizlab/codegen/model/WorkflowModel.java
+19
-0
TemplateFileType.java
.../java/cn/ibizlab/codegen/templating/TemplateFileType.java
+2
-0
未找到文件。
modules/ibizlab-generator-core/pom.xml
浏览文件 @
ac5ff03d
...
...
@@ -156,7 +156,7 @@
<dependency>
<groupId>
net.ibizsys.model
</groupId>
<artifactId>
ibiz-model
</artifactId>
<version>
0.
3.0
</version>
<version>
0.
2.23
</version>
<exclusions>
<exclusion>
<artifactId>
slf4j-simple
</artifactId>
...
...
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/AppEntityModel.java
浏览文件 @
ac5ff03d
...
...
@@ -69,8 +69,13 @@ public class AppEntityModel extends BaseModel{
}
// 初始化界面行为
keyField
=
getAppDataEntity
().
getPSDataEntity
().
getKeyPSDEField
().
getCodeName
();
majorField
=
getAppDataEntity
().
getPSDataEntity
().
getMajorPSDEField
().
getCodeName
();
try
{
keyField
=
getAppDataEntity
().
getPSDataEntity
().
getKeyPSDEField
().
getCodeName
();
majorField
=
getAppDataEntity
().
getPSDataEntity
().
getMajorPSDEField
().
getCodeName
();
}
catch
(
Exception
e
){
}
if
(
getAppDataEntity
().
getAllPSAppDEUIActions
()
!=
null
){
getAppDataEntity
().
getAllPSAppDEUIActions
().
forEach
(
appDEUIAction
->{
JSONObject
actionJson
=
new
JSONObject
();
...
...
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/ModelStorage.java
浏览文件 @
ac5ff03d
...
...
@@ -113,7 +113,7 @@ public class ModelStorage {
CliOption
opt
=
newCliOption
(
TemplateFileType
.
apiDto
)
.
setCliSubType
(
dto
.
getType
())
.
baseData
(
dto
,
dto
.
getCodeName
())
.
set
(
"apiDtos"
,
dto
.
getCodeName
()).
set
(
"apis"
,
dto
.
getApi
().
getCodeName
().
toLowerCase
());
.
set
(
"apiDtos"
,
dto
.
getCodeName
()).
set
(
"apis"
,
dto
.
getApi
().
getCodeName
().
toLowerCase
())
.
set
(
"modules"
,
item
.
getEntity
().
getModule
())
;
rt
.
addOption
(
opt
);
});
});
...
...
@@ -146,6 +146,14 @@ public class ModelStorage {
getSystemModel
().
getWorkflows
().
forEach
(
item
->
{
CliOption
opt
=
newCliOption
(
TemplateFileType
.
workflow
)
.
baseData
(
item
,
item
.
getCodeName
().
toString
())
.
set
(
"wf"
,
item
.
getWFVer
().
getWFCodeName
());
rt
.
addOption
(
opt
);
});
}
else
if
(
type
.
equals
(
TemplateFileType
.
sysUtil
))
{
getSystemModel
().
getSysUtils
().
forEach
(
item
->
{
CliOption
opt
=
newCliOption
(
TemplateFileType
.
sysUtil
)
.
baseData
(
item
,
item
.
getCodeName
().
toString
());
rt
.
addOption
(
opt
);
});
...
...
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/SystemModel.java
浏览文件 @
ac5ff03d
...
...
@@ -142,6 +142,26 @@ public class SystemModel extends BaseModel {
return
getWorkflowsMap
().
values
();
}
private
Map
<
String
,
SysUtilModel
>
sysUtilModelMap
;
public
synchronized
Map
<
String
,
SysUtilModel
>
getSysUtilModelMaps
()
{
if
(
sysUtilModelMap
==
null
)
{
try
{
sysUtilModelMap
=
new
LinkedHashMap
<>();
getSystem
().
getAllPSSysUtils
().
forEach
(
iPSSysUtil
->
{
sysUtilModelMap
.
put
(
iPSSysUtil
.
getCodeName
(),
new
SysUtilModel
(
iPSSysUtil
));
});
}
catch
(
Exception
e
)
{
}
}
return
sysUtilModelMap
;
}
public
Collection
<
SysUtilModel
>
getSysUtils
()
{
return
getSysUtilModelMaps
().
values
();
}
public
boolean
isHasMsgTemplate
()
{
return
!
ObjectUtils
.
isEmpty
(
getSystem
().
getAllPSSysMsgTempls
());
}
...
...
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/model/WorkflowModel.java
浏览文件 @
ac5ff03d
...
...
@@ -10,6 +10,7 @@ import net.ibizsys.model.dataentity.action.IPSDEAction;
import
net.ibizsys.model.dataentity.action.IPSDELogicAction
;
import
net.ibizsys.model.dataentity.action.IPSDEScriptAction
;
import
net.ibizsys.model.wf.*
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.DigestUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
...
...
@@ -515,5 +516,23 @@ public class WorkflowModel extends BaseModel{
return
fieldCond
;
}
public
List
<
IPSWFLink
>
getLinks
()
{
List
<
IPSWFLink
>
links
=
new
ArrayList
<>();
IPSWFProcess
startProcess
=
getWFVer
().
getStartPSWFProcess
();
getProcessLink
(
startProcess
,
links
);
return
links
;
}
public
void
getProcessLink
(
IPSWFProcess
process
,
List
<
IPSWFLink
>
links
)
{
List
<
IPSWFLink
>
processLinks
=
process
.
getPSWFLinks
();
if
(
CollectionUtils
.
isEmpty
(
processLinks
))
return
;
for
(
IPSWFLink
link
:
processLinks
)
{
if
(
links
.
stream
().
anyMatch
(
l
->
l
.
getId
().
equals
(
link
.
getId
())))
continue
;
links
.
add
(
link
);
getProcessLink
(
link
.
getToPSWFProcess
(),
links
);
}
}
}
modules/ibizlab-generator-core/src/main/java/cn/ibizlab/codegen/templating/TemplateFileType.java
浏览文件 @
ac5ff03d
...
...
@@ -10,6 +10,7 @@ public enum TemplateFileType {
entity
(
Constants
.
ENTITIES
),
module
(
Constants
.
MODULES
),
workflow
(
Constants
.
WORKFLOWS
),
sysUtil
(
Constants
.
SYSUTILS
),
subService
(
Constants
.
SUB_SERVICEAPIS
),
subEntity
(
Constants
.
SUB_ENTITIES
),
api
(
Constants
.
APIS
),
...
...
@@ -52,6 +53,7 @@ public enum TemplateFileType {
public
static
final
String
APPS
=
"apps"
;
public
static
final
String
ENTITIES
=
"entities"
;
public
static
final
String
WORKFLOWS
=
"workflows"
;
public
static
final
String
SYSUTILS
=
"syUtils"
;
public
static
final
String
SUB_SERVICEAPIS
=
"subServiceApis"
;
public
static
final
String
SUB_ENTITIES
=
"subEntities"
;
public
static
final
String
API_ENTITIES
=
"apiEntities"
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录