Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
68abc624
提交
68abc624
编写于
12月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
4d77b9f2
变更
57
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
57 个修改的文件
包含
3629 行增加
和
61 行删除
+3629
-61
view-config.json
app_Web/public/assets/json/view-config.json
+16
-0
auth-service-register.ts
app_Web/src/authservice/auth-service-register.ts
+2
-0
ibizappctrl-auth-service-base.ts
.../authservice/ibizappctrl/ibizappctrl-auth-service-base.ts
+44
-0
ibizappctrl-auth-service.ts
...b/src/authservice/ibizappctrl/ibizappctrl-auth-service.ts
+24
-0
ibizappeditor-auth-service-base.ts
...hservice/ibizappeditor/ibizappeditor-auth-service-base.ts
+44
-0
ibizappeditor-auth-service.ts
...c/authservice/ibizappeditor/ibizappeditor-auth-service.ts
+24
-0
en-US.ts
app_Web/src/locale/lang/en-US.ts
+4
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+4
-0
ibizappctrl_en_US.ts
...c/locale/lanres/entities/ibizappctrl/ibizappctrl_en_US.ts
+13
-0
ibizappctrl_zh_CN.ts
...c/locale/lanres/entities/ibizappctrl/ibizappctrl_zh_CN.ts
+12
-0
ibizappeditor_en_US.ts
...cale/lanres/entities/ibizappeditor/ibizappeditor_en_US.ts
+13
-0
ibizappeditor_zh_CN.ts
...cale/lanres/entities/ibizappeditor/ibizappeditor_zh_CN.ts
+12
-0
ibizappview_en_US.ts
...c/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
+110
-0
ibizappview_zh_CN.ts
...c/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
+110
-0
ibizappctrls.ts
app_Web/src/mock/entity/ibizappctrls/ibizappctrls.ts
+175
-0
ibizappeditors.ts
app_Web/src/mock/entity/ibizappeditors/ibizappeditors.ts
+175
-0
index.ts
app_Web/src/mock/index.ts
+2
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+16
-0
ibizsample0002-grid-view-base.vue
...bizsample0002-grid-view/ibizsample0002-grid-view-base.vue
+38
-12
entity-service-register.ts
app_Web/src/service/entity-service-register.ts
+2
-0
ibizappctrl-service-base.ts
app_Web/src/service/ibizappctrl/ibizappctrl-service-base.ts
+81
-0
ibizappctrl-service.ts
app_Web/src/service/ibizappctrl/ibizappctrl-service.ts
+25
-0
ibizappeditor-service-base.ts
...b/src/service/ibizappeditor/ibizappeditor-service-base.ts
+81
-0
ibizappeditor-service.ts
app_Web/src/service/ibizappeditor/ibizappeditor-service.ts
+25
-0
ibizappctrl-ui-service-base.ts
.../src/uiservice/ibizappctrl/ibizappctrl-ui-service-base.ts
+256
-0
ibizappctrl-ui-service.ts
app_Web/src/uiservice/ibizappctrl/ibizappctrl-ui-service.ts
+21
-0
ibizappeditor-ui-service-base.ts
.../uiservice/ibizappeditor/ibizappeditor-ui-service-base.ts
+256
-0
ibizappeditor-ui-service.ts
...b/src/uiservice/ibizappeditor/ibizappeditor-ui-service.ts
+21
-0
ibizappview-ui-service-base.ts
.../src/uiservice/ibizappview/ibizappview-ui-service-base.ts
+2
-0
ui-service-register.ts
app_Web/src/uiservice/ui-service-register.ts
+2
-0
main4-form-base.vue
...src/widgets/ibizsample0001/main4-form/main4-form-base.vue
+4
-4
application-web-prod.yml
.../demo-app-web/src/main/resources/application-web-prod.yml
+8
-0
IBIZAPPCTRL.java
.../main/java/cn/ibizlab/core/sample/domain/IBIZAPPCTRL.java
+151
-0
IBIZAPPEDITOR.java
...ain/java/cn/ibizlab/core/sample/domain/IBIZAPPEDITOR.java
+151
-0
IBIZAPPVIEW.java
.../main/java/cn/ibizlab/core/sample/domain/IBIZAPPVIEW.java
+15
-0
IBIZAPPCTRLSearchContext.java
.../ibizlab/core/sample/filter/IBIZAPPCTRLSearchContext.java
+54
-0
IBIZAPPEDITORSearchContext.java
...bizlab/core/sample/filter/IBIZAPPEDITORSearchContext.java
+54
-0
IBIZAPPCTRLMapper.java
...java/cn/ibizlab/core/sample/mapper/IBIZAPPCTRLMapper.java
+65
-0
IBIZAPPEDITORMapper.java
...va/cn/ibizlab/core/sample/mapper/IBIZAPPEDITORMapper.java
+65
-0
IIBIZAPPCTRLService.java
...a/cn/ibizlab/core/sample/service/IIBIZAPPCTRLService.java
+59
-0
IIBIZAPPEDITORService.java
...cn/ibizlab/core/sample/service/IIBIZAPPEDITORService.java
+59
-0
IBIZAPPCTRLServiceImpl.java
...zlab/core/sample/service/impl/IBIZAPPCTRLServiceImpl.java
+222
-0
IBIZAPPEDITORServiceImpl.java
...ab/core/sample/service/impl/IBIZAPPEDITORServiceImpl.java
+222
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+93
-41
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
IBIZAPPCTRLMapper.xml
...resources/mapper/sample/ibizappctrl/IBIZAPPCTRLMapper.xml
+39
-0
IBIZAPPEDITORMapper.xml
...urces/mapper/sample/ibizappeditor/IBIZAPPEDITORMapper.xml
+39
-0
IBIZAPPVIEWMapper.xml
...resources/mapper/sample/ibizappview/IBIZAPPVIEWMapper.xml
+3
-3
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+16
-0
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+284
-0
IBIZAPPCTRLDTO.java
.../src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPCTRLDTO.java
+132
-0
IBIZAPPEDITORDTO.java
...rc/main/java/cn/ibizlab/demoapi/dto/IBIZAPPEDITORDTO.java
+132
-0
IBIZAPPVIEWDTO.java
.../src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPVIEWDTO.java
+17
-0
IBIZAPPCTRLMapping.java
...n/java/cn/ibizlab/demoapi/mapping/IBIZAPPCTRLMapping.java
+15
-0
IBIZAPPEDITORMapping.java
...java/cn/ibizlab/demoapi/mapping/IBIZAPPEDITORMapping.java
+15
-0
IBIZAPPCTRLResource.java
...ain/java/cn/ibizlab/demoapi/rest/IBIZAPPCTRLResource.java
+52
-0
IBIZAPPEDITORResource.java
...n/java/cn/ibizlab/demoapi/rest/IBIZAPPEDITORResource.java
+52
-0
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
68abc624
...
...
@@ -223,6 +223,14 @@
"viewname"
:
"IBIZUNIProductIndexPickupDataView"
,
"viewtag"
:
"26707fe400fb3e535f06015ab393793b"
},
"ibizappvieweditview"
:
{
"title"
:
"应用视图编辑视图"
,
"caption"
:
"应用视图"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZAPPVIEWEditView"
,
"viewtag"
:
"27425bd0f023912440422d4ee90bb370"
},
"ibizorderdetaillistview"
:
{
"title"
:
"订单明细列表视图"
,
"caption"
:
"订单明细"
,
...
...
@@ -1439,6 +1447,14 @@
"viewname"
:
"IBIZHardwareEditView"
,
"viewtag"
:
"e30db3af513fb7b7bf44a8744ed5f7a4"
},
"ibizappviewgridview"
:
{
"title"
:
"应用视图表格视图"
,
"caption"
:
"应用视图"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZAPPVIEWGridView"
,
"viewtag"
:
"e3e4e02474933cacc98d320049dc1646"
},
"ibizbookupdatedefaultgridview"
:
{
"title"
:
"表格更新默认值"
,
"caption"
:
"表格更新默认值"
,
...
...
app_Web/src/authservice/auth-service-register.ts
浏览文件 @
68abc624
...
...
@@ -54,6 +54,7 @@ export class AuthServiceRegister {
this
.
allAuthService
.
set
(
'ibizsample0014'
,
()
=>
import
(
'@/authservice/ibizsample0014/ibizsample0014-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0001'
,
()
=>
import
(
'@/authservice/ibizsample0001/ibizsample0001-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0008'
,
()
=>
import
(
'@/authservice/ibizsample0008/ibizsample0008-auth-service'
));
this
.
allAuthService
.
set
(
'ibizappeditor'
,
()
=>
import
(
'@/authservice/ibizappeditor/ibizappeditor-auth-service'
));
this
.
allAuthService
.
set
(
'ibizbook'
,
()
=>
import
(
'@/authservice/ibizbook/ibizbook-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0015'
,
()
=>
import
(
'@/authservice/ibizsample0015/ibizsample0015-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0020'
,
()
=>
import
(
'@/authservice/ibizsample0020/ibizsample0020-auth-service'
));
...
...
@@ -72,6 +73,7 @@ export class AuthServiceRegister {
this
.
allAuthService
.
set
(
'ibizsample0003'
,
()
=>
import
(
'@/authservice/ibizsample0003/ibizsample0003-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/authservice/ibizsample0009/ibizsample0009-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/authservice/ibizsample0013/ibizsample0013-auth-service'
));
this
.
allAuthService
.
set
(
'ibizappctrl'
,
()
=>
import
(
'@/authservice/ibizappctrl/ibizappctrl-auth-service'
));
this
.
allAuthService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/authservice/ibizcustomer/ibizcustomer-auth-service'
));
this
.
allAuthService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/authservice/ibizcustom/ibizcustom-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/authservice/ibizsample0005/ibizsample0005-auth-service'
));
...
...
app_Web/src/authservice/ibizappctrl/ibizappctrl-auth-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
AuthService
from
'../auth-service'
;
/**
* 应用部件权限服务对象基类
*
* @export
* @class IBIZAPPCTRLAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZAPPCTRLAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZAPPCTRLAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZAPPCTRLAuthServiceBase
*/
public
getOPPrivs
(
mainSateOPPrivs
:
any
):
any
{
let
curDefaultOPPrivs
:
any
=
this
.
getSysOPPrivs
();
let
copyDefaultOPPrivs
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
curDefaultOPPrivs
));
if
(
mainSateOPPrivs
){
Object
.
assign
(
curDefaultOPPrivs
,
mainSateOPPrivs
);
}
// 统一资源优先
Object
.
keys
(
curDefaultOPPrivs
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
sysOPPrivsMap
.
get
(
name
)
&&
copyDefaultOPPrivs
[
name
]
===
0
){
curDefaultOPPrivs
[
name
]
=
copyDefaultOPPrivs
[
name
];
}
});
return
curDefaultOPPrivs
;
}
}
\ No newline at end of file
app_Web/src/authservice/ibizappctrl/ibizappctrl-auth-service.ts
0 → 100644
浏览文件 @
68abc624
import
IBIZAPPCTRLAuthServiceBase
from
'./ibizappctrl-auth-service-base'
;
/**
* 应用部件权限服务对象
*
* @export
* @class IBIZAPPCTRLAuthService
* @extends {IBIZAPPCTRLAuthServiceBase}
*/
export
default
class
IBIZAPPCTRLAuthService
extends
IBIZAPPCTRLAuthServiceBase
{
/**
* Creates an instance of IBIZAPPCTRLAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/authservice/ibizappeditor/ibizappeditor-auth-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
AuthService
from
'../auth-service'
;
/**
* 编辑器权限服务对象基类
*
* @export
* @class IBIZAPPEDITORAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZAPPEDITORAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZAPPEDITORAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZAPPEDITORAuthServiceBase
*/
public
getOPPrivs
(
mainSateOPPrivs
:
any
):
any
{
let
curDefaultOPPrivs
:
any
=
this
.
getSysOPPrivs
();
let
copyDefaultOPPrivs
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
curDefaultOPPrivs
));
if
(
mainSateOPPrivs
){
Object
.
assign
(
curDefaultOPPrivs
,
mainSateOPPrivs
);
}
// 统一资源优先
Object
.
keys
(
curDefaultOPPrivs
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
sysOPPrivsMap
.
get
(
name
)
&&
copyDefaultOPPrivs
[
name
]
===
0
){
curDefaultOPPrivs
[
name
]
=
copyDefaultOPPrivs
[
name
];
}
});
return
curDefaultOPPrivs
;
}
}
\ No newline at end of file
app_Web/src/authservice/ibizappeditor/ibizappeditor-auth-service.ts
0 → 100644
浏览文件 @
68abc624
import
IBIZAPPEDITORAuthServiceBase
from
'./ibizappeditor-auth-service-base'
;
/**
* 编辑器权限服务对象
*
* @export
* @class IBIZAPPEDITORAuthService
* @extends {IBIZAPPEDITORAuthServiceBase}
*/
export
default
class
IBIZAPPEDITORAuthService
extends
IBIZAPPEDITORAuthServiceBase
{
/**
* Creates an instance of IBIZAPPEDITORAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/locale/lang/en-US.ts
浏览文件 @
68abc624
...
...
@@ -13,6 +13,7 @@ import ibizordertype_en_US from '@locale/lanres/entities/ibizorder-type/ibizorde
import
ibizsample0014_en_US
from
'@locale/lanres/entities/ibizsample0014/ibizsample0014_en_US'
;
import
ibizsample0001_en_US
from
'@locale/lanres/entities/ibizsample0001/ibizsample0001_en_US'
;
import
ibizsample0008_en_US
from
'@locale/lanres/entities/ibizsample0008/ibizsample0008_en_US'
;
import
ibizappeditor_en_US
from
'@locale/lanres/entities/ibizappeditor/ibizappeditor_en_US'
;
import
ibizbook_en_US
from
'@locale/lanres/entities/ibizbook/ibizbook_en_US'
;
import
ibizsample0015_en_US
from
'@locale/lanres/entities/ibizsample0015/ibizsample0015_en_US'
;
import
ibizsample0020_en_US
from
'@locale/lanres/entities/ibizsample0020/ibizsample0020_en_US'
;
...
...
@@ -31,6 +32,7 @@ import ibizstorage_en_US from '@locale/lanres/entities/ibizstorage/ibizstorage_e
import
ibizsample0003_en_US
from
'@locale/lanres/entities/ibizsample0003/ibizsample0003_en_US'
;
import
ibizsample0009_en_US
from
'@locale/lanres/entities/ibizsample0009/ibizsample0009_en_US'
;
import
ibizsample0013_en_US
from
'@locale/lanres/entities/ibizsample0013/ibizsample0013_en_US'
;
import
ibizappctrl_en_US
from
'@locale/lanres/entities/ibizappctrl/ibizappctrl_en_US'
;
import
ibizcustomer_en_US
from
'@locale/lanres/entities/ibizcustomer/ibizcustomer_en_US'
;
import
ibizcustom_en_US
from
'@locale/lanres/entities/ibizcustom/ibizcustom_en_US'
;
import
ibizsample0005_en_US
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_en_US'
;
...
...
@@ -421,6 +423,7 @@ export default {
ibizsample0014
:
ibizsample0014_en_US
,
ibizsample0001
:
ibizsample0001_en_US
,
ibizsample0008
:
ibizsample0008_en_US
,
ibizappeditor
:
ibizappeditor_en_US
,
ibizbook
:
ibizbook_en_US
,
ibizsample0015
:
ibizsample0015_en_US
,
ibizsample0020
:
ibizsample0020_en_US
,
...
...
@@ -439,6 +442,7 @@ export default {
ibizsample0003
:
ibizsample0003_en_US
,
ibizsample0009
:
ibizsample0009_en_US
,
ibizsample0013
:
ibizsample0013_en_US
,
ibizappctrl
:
ibizappctrl_en_US
,
ibizcustomer
:
ibizcustomer_en_US
,
ibizcustom
:
ibizcustom_en_US
,
ibizsample0005
:
ibizsample0005_en_US
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
68abc624
...
...
@@ -13,6 +13,7 @@ import ibizordertype_zh_CN from '@locale/lanres/entities/ibizorder-type/ibizorde
import
ibizsample0014_zh_CN
from
'@locale/lanres/entities/ibizsample0014/ibizsample0014_zh_CN'
;
import
ibizsample0001_zh_CN
from
'@locale/lanres/entities/ibizsample0001/ibizsample0001_zh_CN'
;
import
ibizsample0008_zh_CN
from
'@locale/lanres/entities/ibizsample0008/ibizsample0008_zh_CN'
;
import
ibizappeditor_zh_CN
from
'@locale/lanres/entities/ibizappeditor/ibizappeditor_zh_CN'
;
import
ibizbook_zh_CN
from
'@locale/lanres/entities/ibizbook/ibizbook_zh_CN'
;
import
ibizsample0015_zh_CN
from
'@locale/lanres/entities/ibizsample0015/ibizsample0015_zh_CN'
;
import
ibizsample0020_zh_CN
from
'@locale/lanres/entities/ibizsample0020/ibizsample0020_zh_CN'
;
...
...
@@ -31,6 +32,7 @@ import ibizstorage_zh_CN from '@locale/lanres/entities/ibizstorage/ibizstorage_z
import
ibizsample0003_zh_CN
from
'@locale/lanres/entities/ibizsample0003/ibizsample0003_zh_CN'
;
import
ibizsample0009_zh_CN
from
'@locale/lanres/entities/ibizsample0009/ibizsample0009_zh_CN'
;
import
ibizsample0013_zh_CN
from
'@locale/lanres/entities/ibizsample0013/ibizsample0013_zh_CN'
;
import
ibizappctrl_zh_CN
from
'@locale/lanres/entities/ibizappctrl/ibizappctrl_zh_CN'
;
import
ibizcustomer_zh_CN
from
'@locale/lanres/entities/ibizcustomer/ibizcustomer_zh_CN'
;
import
ibizcustom_zh_CN
from
'@locale/lanres/entities/ibizcustom/ibizcustom_zh_CN'
;
import
ibizsample0005_zh_CN
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_zh_CN'
;
...
...
@@ -420,6 +422,7 @@ export default {
ibizsample0014
:
ibizsample0014_zh_CN
,
ibizsample0001
:
ibizsample0001_zh_CN
,
ibizsample0008
:
ibizsample0008_zh_CN
,
ibizappeditor
:
ibizappeditor_zh_CN
,
ibizbook
:
ibizbook_zh_CN
,
ibizsample0015
:
ibizsample0015_zh_CN
,
ibizsample0020
:
ibizsample0020_zh_CN
,
...
...
@@ -438,6 +441,7 @@ export default {
ibizsample0003
:
ibizsample0003_zh_CN
,
ibizsample0009
:
ibizsample0009_zh_CN
,
ibizsample0013
:
ibizsample0013_zh_CN
,
ibizappctrl
:
ibizappctrl_zh_CN
,
ibizcustomer
:
ibizcustomer_zh_CN
,
ibizcustom
:
ibizcustom_zh_CN
,
ibizsample0005
:
ibizsample0005_zh_CN
,
...
...
app_Web/src/locale/lanres/entities/ibizappctrl/ibizappctrl_en_US.ts
0 → 100644
浏览文件 @
68abc624
export
default
{
fields
:
{
ibizappctrlname
:
"应用部件名称"
,
ibizappctrlid
:
"应用部件标识"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
ibizappctrltype
:
"应用部件类型"
,
ctrldescription
:
"部件描述"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappctrl/ibizappctrl_zh_CN.ts
0 → 100644
浏览文件 @
68abc624
export
default
{
fields
:
{
ibizappctrlname
:
"应用部件名称"
,
ibizappctrlid
:
"应用部件标识"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
ibizappctrltype
:
"应用部件类型"
,
ctrldescription
:
"部件描述"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappeditor/ibizappeditor_en_US.ts
0 → 100644
浏览文件 @
68abc624
export
default
{
fields
:
{
createman
:
"建立人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
ibizappeditorname
:
"编辑器名称"
,
updateman
:
"更新人"
,
ibizappeditorid
:
"编辑器标识"
,
ibizappeditortype
:
"编辑器类型"
,
rditordescription
:
"编辑器描述"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappeditor/ibizappeditor_zh_CN.ts
0 → 100644
浏览文件 @
68abc624
export
default
{
fields
:
{
createman
:
"建立人"
,
updatedate
:
"更新时间"
,
createdate
:
"建立时间"
,
ibizappeditorname
:
"编辑器名称"
,
updateman
:
"更新人"
,
ibizappeditorid
:
"编辑器标识"
,
ibizappeditortype
:
"编辑器类型"
,
rditordescription
:
"编辑器描述"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
浏览文件 @
68abc624
...
...
@@ -10,5 +10,115 @@ export default {
ibizappviewtype
:
"应用视图类型"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"示例地址"
,
viewdescription
:
"视图描述"
,
},
views
:
{
editview
:
{
caption
:
"应用视图"
,
title
:
"应用视图编辑视图"
,
},
gridview
:
{
caption
:
"应用视图"
,
title
:
"应用视图表格视图"
,
},
},
main_form
:
{
details
:
{
group1
:
"应用视图基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"应用视图标识"
,
srfmajortext
:
"应用视图名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizappviewid
:
"应用视图标识"
,
ibizappviewname
:
"应用视图名称"
,
ibizappviewtype
:
"应用视图类型"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"示例地址"
,
viewdescription
:
"视图描述"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
ibizappviewname
:
"应用视图名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
nodata
:
""
,
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem5
:
{
caption
:
"Save And Close"
,
tip
:
"Save And Close Window"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"Export Data Model"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
浏览文件 @
68abc624
...
...
@@ -9,5 +9,115 @@ export default {
ibizappviewtype
:
"应用视图类型"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"示例地址"
,
viewdescription
:
"视图描述"
,
},
views
:
{
editview
:
{
caption
:
"应用视图"
,
title
:
"应用视图编辑视图"
,
},
gridview
:
{
caption
:
"应用视图"
,
title
:
"应用视图表格视图"
,
},
},
main_form
:
{
details
:
{
group1
:
"应用视图基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"应用视图标识"
,
srfmajortext
:
"应用视图名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
ibizappviewid
:
"应用视图标识"
,
ibizappviewname
:
"应用视图名称"
,
ibizappviewtype
:
"应用视图类型"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"示例地址"
,
viewdescription
:
"视图描述"
,
},
uiactions
:
{
},
},
main_grid
:
{
columns
:
{
ibizappviewname
:
"应用视图名称"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
},
nodata
:
""
,
uiactions
:
{
},
},
default_searchform
:
{
details
:
{
formpage1
:
"常规条件"
,
},
uiactions
:
{
},
},
editviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem5
:
{
caption
:
"保存并关闭"
,
tip
:
"保存并关闭"
,
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
deuiaction1
:
{
caption
:
"刷新"
,
tip
:
"刷新"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"导出数据模型"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
},
};
\ No newline at end of file
app_Web/src/mock/entity/ibizappctrls/ibizappctrls.ts
0 → 100644
浏览文件 @
68abc624
import
qs
from
'qs'
;
import
{
MockAdapter
}
from
'@/mock/mock-adapter'
;
const
mock
=
MockAdapter
.
getInstance
();
// 模拟数据
const
mockDatas
:
Array
<
any
>
=
[
];
//getwflink
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizappctrls
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: getwflink"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,[
{
"sequenceFlowId"
:
"dfdsfdsfdsfdsfds"
,
"sequenceFlowName"
:
"同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddlfldldfldsfds"
,
"refViewKey"
:
""
},
{
"sequenceFlowId"
:
"ddssdfdfdfdfsfdf"
,
"sequenceFlowName"
:
"不同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddfdsldlfdlldsf"
,
"refViewKey"
:
"workorder_ltform_editview"
}
]];
});
// getwfstep
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizappctrls
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: getwfstep"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
[
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-dfdfd"
,
"userTaskName"
:
"待审"
,
"cnt"
:
0
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
},
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-87927"
,
"userTaskName"
:
"待分配"
,
"cnt"
:
3
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
}
]];
});
// createBatch
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappctrls
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: createBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// updateBatch
mock
.
onPut
(
new
RegExp
(
/^
\/
ibizappctrls
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: updateBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// removeBatch
mock
.
onDelete
(
new
RegExp
(
/^
\/
ibizappctrls
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: removeBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappctrlid
,
tempValue
.
ibizappctrlid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
?
mockDatas
:
[]];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
let
url
=
config
.
url
.
split
(
'?'
)[
1
];
let
params
=
qs
.
parse
(
url
);
Object
.
assign
(
config
,
params
);
}
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
let
total
=
mockDatas
.
length
;
let
records
:
Array
<
any
>
=
[];
if
(
!
config
.
page
||
!
config
.
size
){
records
=
mockDatas
;
}
else
{
if
((
config
.
page
-
1
)
*
config
.
size
<
total
){
records
=
mockDatas
.
slice
(
config
.
page
,
config
.
size
);
}
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
records
?
records
:
[]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
app_Web/src/mock/entity/ibizappeditors/ibizappeditors.ts
0 → 100644
浏览文件 @
68abc624
import
qs
from
'qs'
;
import
{
MockAdapter
}
from
'@/mock/mock-adapter'
;
const
mock
=
MockAdapter
.
getInstance
();
// 模拟数据
const
mockDatas
:
Array
<
any
>
=
[
];
//getwflink
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizappeditors
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: getwflink"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,[
{
"sequenceFlowId"
:
"dfdsfdsfdsfdsfds"
,
"sequenceFlowName"
:
"同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddlfldldfldsfds"
,
"refViewKey"
:
""
},
{
"sequenceFlowId"
:
"ddssdfdfdfdfsfdf"
,
"sequenceFlowName"
:
"不同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddfdsldlfdlldsf"
,
"refViewKey"
:
"workorder_ltform_editview"
}
]];
});
// getwfstep
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizappeditors
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: getwfstep"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
[
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-dfdfd"
,
"userTaskName"
:
"待审"
,
"cnt"
:
0
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
},
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-87927"
,
"userTaskName"
:
"待分配"
,
"cnt"
:
3
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
}
]];
});
// createBatch
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappeditors
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: createBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// updateBatch
mock
.
onPut
(
new
RegExp
(
/^
\/
ibizappeditors
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: updateBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// removeBatch
mock
.
onDelete
(
new
RegExp
(
/^
\/
ibizappeditors
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: removeBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappeditors
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappeditorid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappeditors
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappeditorid
,
tempValue
.
ibizappeditorid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappeditors
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
?
mockDatas
:
[]];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappeditors
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappeditor 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
let
url
=
config
.
url
.
split
(
'?'
)[
1
];
let
params
=
qs
.
parse
(
url
);
Object
.
assign
(
config
,
params
);
}
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
let
total
=
mockDatas
.
length
;
let
records
:
Array
<
any
>
=
[];
if
(
!
config
.
page
||
!
config
.
size
){
records
=
mockDatas
;
}
else
{
if
((
config
.
page
-
1
)
*
config
.
size
<
total
){
records
=
mockDatas
.
slice
(
config
.
page
,
config
.
size
);
}
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
records
?
records
:
[]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
app_Web/src/mock/index.ts
浏览文件 @
68abc624
...
...
@@ -22,6 +22,7 @@ import './entity/ibizorder-types/ibizorder-types';
import
'./entity/ibizsample0014s/ibizsample0014s'
;
import
'./entity/ibizsample0001s/ibizsample0001s'
;
import
'./entity/ibizsample0008s/ibizsample0008s'
;
import
'./entity/ibizappeditors/ibizappeditors'
;
import
'./entity/ibizbooks/ibizbooks'
;
import
'./entity/ibizsample0015s/ibizsample0015s'
;
import
'./entity/ibizsample0020s/ibizsample0020s'
;
...
...
@@ -40,6 +41,7 @@ import './entity/ibizstorages/ibizstorages';
import
'./entity/ibizsample0003s/ibizsample0003s'
;
import
'./entity/ibizsample0009s/ibizsample0009s'
;
import
'./entity/ibizsample0013s/ibizsample0013s'
;
import
'./entity/ibizappctrls/ibizappctrls'
;
import
'./entity/ibizcustomers/ibizcustomers'
;
import
'./entity/ibizcustoms/ibizcustoms'
;
import
'./entity/ibizsample0005s/ibizsample0005s'
;
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
68abc624
...
...
@@ -231,6 +231,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZUNIProductIndexPickupDataView"
,
"viewtag"
:
"26707fe400fb3e535f06015ab393793b"
},
"ibizappvieweditview"
:
{
"title"
:
"应用视图编辑视图"
,
"caption"
:
"应用视图"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZAPPVIEWEditView"
,
"viewtag"
:
"27425bd0f023912440422d4ee90bb370"
},
"ibizorderdetaillistview"
:
{
"title"
:
"订单明细列表视图"
,
"caption"
:
"订单明细"
,
...
...
@@ -1447,6 +1455,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZHardwareEditView"
,
"viewtag"
:
"e30db3af513fb7b7bf44a8744ed5f7a4"
},
"ibizappviewgridview"
:
{
"title"
:
"应用视图表格视图"
,
"caption"
:
"应用视图"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZAPPVIEWGridView"
,
"viewtag"
:
"e3e4e02474933cacc98d320049dc1646"
},
"ibizbookupdatedefaultgridview"
:
{
"title"
:
"表格更新默认值"
,
"caption"
:
"表格更新默认值"
,
...
...
app_Web/src/pages/sample/ibizsample0002-grid-view/ibizsample0002-grid-view-base.vue
浏览文件 @
68abc624
...
...
@@ -1279,16 +1279,28 @@ export default class IBIZSample0002GridViewBase extends Vue {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
const
openPopOver
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$apppopover
.
openPop
(
$event
,
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
openIndexViewTab
(
data
);
const
view
:
any
=
{
viewname
:
'ibizsample0002-edit-view'
,
height
:
600
,
width
:
400
,
title
:
this
.
$t
(
'entities.ibizsample0002.views.editview.title'
),
placement
:
'POPOVER'
,
};
openPopOver
(
view
,
data
);
}
...
...
@@ -1320,17 +1332,31 @@ export default class IBIZSample0002GridViewBase extends Vue {
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizsample0002s'
,
parameterName
:
'ibizsample0002'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
if
(
fullargs
&&
fullargs
.
copymode
){
Object
.
assign
(
data
,{
copymode
:
true
});
}
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
const
openPopOver
=
(
view
:
any
,
data
:
any
)
=>
{
let
container
:
Subject
<
any
>
=
this
.
$apppopover
.
openPop
(
$event
,
view
,
tempContext
,
data
);
container
.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
if
(
!
xData
||
!
(
xData
.
refresh
instanceof
Function
))
{
return
;
}
xData
.
refresh
(
result
.
datas
);
});
}
openIndexViewTab
(
data
);
const
view
:
any
=
{
viewname
:
'ibizsample0002-edit-view'
,
height
:
600
,
width
:
400
,
title
:
this
.
$t
(
'entities.ibizsample0002.views.editview.title'
),
placement
:
'POPOVER'
,
};
openPopOver
(
view
,
data
);
}
...
...
app_Web/src/service/entity-service-register.ts
浏览文件 @
68abc624
...
...
@@ -54,6 +54,7 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'ibizsample0014'
,
()
=>
import
(
'@/service/ibizsample0014/ibizsample0014-service'
));
this
.
allEntityService
.
set
(
'ibizsample0001'
,
()
=>
import
(
'@/service/ibizsample0001/ibizsample0001-service'
));
this
.
allEntityService
.
set
(
'ibizsample0008'
,
()
=>
import
(
'@/service/ibizsample0008/ibizsample0008-service'
));
this
.
allEntityService
.
set
(
'ibizappeditor'
,
()
=>
import
(
'@/service/ibizappeditor/ibizappeditor-service'
));
this
.
allEntityService
.
set
(
'ibizbook'
,
()
=>
import
(
'@/service/ibizbook/ibizbook-service'
));
this
.
allEntityService
.
set
(
'ibizsample0015'
,
()
=>
import
(
'@/service/ibizsample0015/ibizsample0015-service'
));
this
.
allEntityService
.
set
(
'ibizsample0020'
,
()
=>
import
(
'@/service/ibizsample0020/ibizsample0020-service'
));
...
...
@@ -72,6 +73,7 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'ibizsample0003'
,
()
=>
import
(
'@/service/ibizsample0003/ibizsample0003-service'
));
this
.
allEntityService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/service/ibizsample0009/ibizsample0009-service'
));
this
.
allEntityService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/service/ibizsample0013/ibizsample0013-service'
));
this
.
allEntityService
.
set
(
'ibizappctrl'
,
()
=>
import
(
'@/service/ibizappctrl/ibizappctrl-service'
));
this
.
allEntityService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/service/ibizcustomer/ibizcustomer-service'
));
this
.
allEntityService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/service/ibizcustom/ibizcustom-service'
));
this
.
allEntityService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/service/ibizsample0005/ibizsample0005-service'
));
...
...
app_Web/src/service/ibizappctrl/ibizappctrl-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 应用部件服务对象基类
*
* @export
* @class IBIZAPPCTRLServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZAPPCTRLServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZAPPCTRLServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZAPPCTRLServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibizappctrl'
;
this
.
APPDEKEY
=
'ibizappctrlid'
;
this
.
APPDENAME
=
'ibizappctrls'
;
this
.
APPDETEXT
=
'ibizappctrlname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibizappctrls/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibizappctrl/ibizappctrl-service.ts
0 → 100644
浏览文件 @
68abc624
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZAPPCTRLServiceBase
from
'./ibizappctrl-service-base'
;
/**
* 应用部件服务对象
*
* @export
* @class IBIZAPPCTRLService
* @extends {IBIZAPPCTRLServiceBase}
*/
export
default
class
IBIZAPPCTRLService
extends
IBIZAPPCTRLServiceBase
{
/**
* Creates an instance of IBIZAPPCTRLService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/service/ibizappeditor/ibizappeditor-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 编辑器服务对象基类
*
* @export
* @class IBIZAPPEDITORServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZAPPEDITORServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZAPPEDITORServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZAPPEDITORServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibizappeditor'
;
this
.
APPDEKEY
=
'ibizappeditorid'
;
this
.
APPDENAME
=
'ibizappeditors'
;
this
.
APPDETEXT
=
'ibizappeditorname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibizappeditors/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibizappeditor/ibizappeditor-service.ts
0 → 100644
浏览文件 @
68abc624
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZAPPEDITORServiceBase
from
'./ibizappeditor-service-base'
;
/**
* 编辑器服务对象
*
* @export
* @class IBIZAPPEDITORService
* @extends {IBIZAPPEDITORServiceBase}
*/
export
default
class
IBIZAPPEDITORService
extends
IBIZAPPEDITORServiceBase
{
/**
* Creates an instance of IBIZAPPEDITORService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappctrl/ibizappctrl-ui-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZAPPCTRLService
from
'@/service/ibizappctrl/ibizappctrl-service'
;
import
IBIZAPPCTRLAuthService
from
'@/authservice/ibizappctrl/ibizappctrl-auth-service'
;
/**
* 应用部件UI服务对象基类
*
* @export
* @class IBIZAPPCTRLUIServiceBase
*/
export
default
class
IBIZAPPCTRLUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
dataService
:
IBIZAPPCTRLService
=
new
IBIZAPPCTRLService
();
/**
* 所有关联视图
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZAPPCTRLUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZAPPCTRLAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibizappctrl
:
srfkey
});
const
curData
:
any
=
result
.
data
;
//判断当前数据模式,默认为true,todo
const
iRealDEModel
:
boolean
=
true
;
let
bDataInWF
:
boolean
=
false
;
let
bWFMode
:
any
=
false
;
// 计算数据模式
if
(
this
.
isEnableWorkflow
)
{
bDataInWF
=
await
this
.
dataService
.
testDataInWF
({
stateValue
:
this
.
stateValue
,
stateField
:
this
.
stateField
},
curData
);
if
(
bDataInWF
)
{
bDataInWF
=
true
;
bWFMode
=
await
this
.
dataService
.
testUserExistWorklist
(
null
,
curData
);
}
}
let
strPDTViewParam
:
string
=
await
this
.
getDESDDEViewPDTParam
(
curData
,
bDataInWF
,
bWFMode
);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return
this
.
allViewMap
.
get
(
strPDTViewParam
);
}
/**
* 获取实际的数据类型
*
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
async
getDESDDEViewPDTParam
(
curData
:
any
,
bDataInWF
:
boolean
,
bWFMode
:
boolean
){
let
strPDTParam
:
string
=
''
;
if
(
bDataInWF
)
{
// 判断数据是否在流程中
}
//多表单,todo
const
multiFormDEField
:
string
|
null
=
null
;
if
(
multiFormDEField
)
{
const
objFormValue
:
string
=
curData
[
multiFormDEField
];
if
(
!
Environment
.
isAppMode
){
return
'MOBEDITVIEW:'
+
objFormValue
;
}
return
'EDITVIEW:'
+
objFormValue
;
}
if
(
!
Environment
.
isAppMode
){
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`MOBEDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'MOBEDITVIEW:'
;
}
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`EDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'EDITVIEW:'
;
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
getDEMainStateTag
(
curData
:
any
){
if
(
this
.
mainStateFields
.
length
===
0
)
return
null
;
this
.
mainStateFields
.
forEach
((
singleMainField
:
any
)
=>
{
if
(
!
(
singleMainField
in
curData
)){
console
.
warn
(
`当前数据对象不包含属性「
${
singleMainField
}
」,根据「
${
singleMainField
}
」属性进行的主状态计算默认为空值`
);
}
})
for
(
let
i
=
0
;
i
<=
1
;
i
++
)
{
let
strTag
:
string
=
(
curData
[
this
.
mainStateFields
[
0
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
0
]]
!==
""
)?(
i
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
0
]]}
`
:
""
:
""
;
if
(
this
.
mainStateFields
.
length
>=
2
)
{
for
(
let
j
=
0
;
j
<=
1
;
j
++
)
{
let
strTag2
:
string
=
(
curData
[
this
.
mainStateFields
[
1
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
1
]]
!==
""
)?
`
${
strTag
}
__
${(
j
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
1
]]}
`
:
""
}
`
:
strTag
;
if
(
this
.
mainStateFields
.
length
>=
3
)
{
for
(
let
k
=
0
;
k
<=
1
;
k
++
)
{
let
strTag3
:
string
=
(
curData
[
this
.
mainStateFields
[
2
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
2
]]
!==
""
)?
`
${
strTag2
}
__
${(
k
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
2
]]}
`
:
""
}
`
:
strTag2
;
// 判断是否存在
return
this
.
allDeMainStateMap
.
get
(
strTag3
);
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag2
);
}
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag
);
}
}
return
null
;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZAPPCTRLUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappctrl/ibizappctrl-ui-service.ts
0 → 100644
浏览文件 @
68abc624
import
IBIZAPPCTRLUIServiceBase
from
'./ibizappctrl-ui-service-base'
;
/**
* 应用部件UI服务对象
*
* @export
* @class IBIZAPPCTRLUIService
*/
export
default
class
IBIZAPPCTRLUIService
extends
IBIZAPPCTRLUIServiceBase
{
/**
* Creates an instance of IBIZAPPCTRLUIService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPCTRLUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappeditor/ibizappeditor-ui-service-base.ts
0 → 100644
浏览文件 @
68abc624
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZAPPEDITORService
from
'@/service/ibizappeditor/ibizappeditor-service'
;
import
IBIZAPPEDITORAuthService
from
'@/authservice/ibizappeditor/ibizappeditor-auth-service'
;
/**
* 编辑器UI服务对象基类
*
* @export
* @class IBIZAPPEDITORUIServiceBase
*/
export
default
class
IBIZAPPEDITORUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
dataService
:
IBIZAPPEDITORService
=
new
IBIZAPPEDITORService
();
/**
* 所有关联视图
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZAPPEDITORUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZAPPEDITORAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibizappeditor
:
srfkey
});
const
curData
:
any
=
result
.
data
;
//判断当前数据模式,默认为true,todo
const
iRealDEModel
:
boolean
=
true
;
let
bDataInWF
:
boolean
=
false
;
let
bWFMode
:
any
=
false
;
// 计算数据模式
if
(
this
.
isEnableWorkflow
)
{
bDataInWF
=
await
this
.
dataService
.
testDataInWF
({
stateValue
:
this
.
stateValue
,
stateField
:
this
.
stateField
},
curData
);
if
(
bDataInWF
)
{
bDataInWF
=
true
;
bWFMode
=
await
this
.
dataService
.
testUserExistWorklist
(
null
,
curData
);
}
}
let
strPDTViewParam
:
string
=
await
this
.
getDESDDEViewPDTParam
(
curData
,
bDataInWF
,
bWFMode
);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return
this
.
allViewMap
.
get
(
strPDTViewParam
);
}
/**
* 获取实际的数据类型
*
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
async
getDESDDEViewPDTParam
(
curData
:
any
,
bDataInWF
:
boolean
,
bWFMode
:
boolean
){
let
strPDTParam
:
string
=
''
;
if
(
bDataInWF
)
{
// 判断数据是否在流程中
}
//多表单,todo
const
multiFormDEField
:
string
|
null
=
null
;
if
(
multiFormDEField
)
{
const
objFormValue
:
string
=
curData
[
multiFormDEField
];
if
(
!
Environment
.
isAppMode
){
return
'MOBEDITVIEW:'
+
objFormValue
;
}
return
'EDITVIEW:'
+
objFormValue
;
}
if
(
!
Environment
.
isAppMode
){
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`MOBEDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'MOBEDITVIEW:'
;
}
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`EDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'EDITVIEW:'
;
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
getDEMainStateTag
(
curData
:
any
){
if
(
this
.
mainStateFields
.
length
===
0
)
return
null
;
this
.
mainStateFields
.
forEach
((
singleMainField
:
any
)
=>
{
if
(
!
(
singleMainField
in
curData
)){
console
.
warn
(
`当前数据对象不包含属性「
${
singleMainField
}
」,根据「
${
singleMainField
}
」属性进行的主状态计算默认为空值`
);
}
})
for
(
let
i
=
0
;
i
<=
1
;
i
++
)
{
let
strTag
:
string
=
(
curData
[
this
.
mainStateFields
[
0
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
0
]]
!==
""
)?(
i
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
0
]]}
`
:
""
:
""
;
if
(
this
.
mainStateFields
.
length
>=
2
)
{
for
(
let
j
=
0
;
j
<=
1
;
j
++
)
{
let
strTag2
:
string
=
(
curData
[
this
.
mainStateFields
[
1
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
1
]]
!==
""
)?
`
${
strTag
}
__
${(
j
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
1
]]}
`
:
""
}
`
:
strTag
;
if
(
this
.
mainStateFields
.
length
>=
3
)
{
for
(
let
k
=
0
;
k
<=
1
;
k
++
)
{
let
strTag3
:
string
=
(
curData
[
this
.
mainStateFields
[
2
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
2
]]
!==
""
)?
`
${
strTag2
}
__
${(
k
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
2
]]}
`
:
""
}
`
:
strTag2
;
// 判断是否存在
return
this
.
allDeMainStateMap
.
get
(
strTag3
);
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag2
);
}
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag
);
}
}
return
null
;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZAPPEDITORUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappeditor/ibizappeditor-ui-service.ts
0 → 100644
浏览文件 @
68abc624
import
IBIZAPPEDITORUIServiceBase
from
'./ibizappeditor-ui-service-base'
;
/**
* 编辑器UI服务对象
*
* @export
* @class IBIZAPPEDITORUIService
*/
export
default
class
IBIZAPPEDITORUIService
extends
IBIZAPPEDITORUIServiceBase
{
/**
* Creates an instance of IBIZAPPEDITORUIService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPEDITORUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappview/ibizappview-ui-service-base.ts
浏览文件 @
68abc624
...
...
@@ -96,6 +96,8 @@ export default class IBIZAPPVIEWUIServiceBase extends UIService {
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'ibizappviews'
,
component
:
'ibizappviewedit-view'
});
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'ibizappviews'
,
component
:
'ibizappviewgrid-view'
});
}
/**
...
...
app_Web/src/uiservice/ui-service-register.ts
浏览文件 @
68abc624
...
...
@@ -54,6 +54,7 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'ibizsample0014'
,
()
=>
import
(
'@/uiservice/ibizsample0014/ibizsample0014-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0001'
,
()
=>
import
(
'@/uiservice/ibizsample0001/ibizsample0001-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0008'
,
()
=>
import
(
'@/uiservice/ibizsample0008/ibizsample0008-ui-service'
));
this
.
allUIService
.
set
(
'ibizappeditor'
,
()
=>
import
(
'@/uiservice/ibizappeditor/ibizappeditor-ui-service'
));
this
.
allUIService
.
set
(
'ibizbook'
,
()
=>
import
(
'@/uiservice/ibizbook/ibizbook-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0015'
,
()
=>
import
(
'@/uiservice/ibizsample0015/ibizsample0015-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0020'
,
()
=>
import
(
'@/uiservice/ibizsample0020/ibizsample0020-ui-service'
));
...
...
@@ -72,6 +73,7 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'ibizsample0003'
,
()
=>
import
(
'@/uiservice/ibizsample0003/ibizsample0003-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/uiservice/ibizsample0009/ibizsample0009-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/uiservice/ibizsample0013/ibizsample0013-ui-service'
));
this
.
allUIService
.
set
(
'ibizappctrl'
,
()
=>
import
(
'@/uiservice/ibizappctrl/ibizappctrl-ui-service'
));
this
.
allUIService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/uiservice/ibizcustomer/ibizcustomer-ui-service'
));
this
.
allUIService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/uiservice/ibizcustom/ibizcustom-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/uiservice/ibizsample0005/ibizsample0005-ui-service'
));
...
...
app_Web/src/widgets/ibizsample0001/main4-form/main4-form-base.vue
浏览文件 @
68abc624
...
...
@@ -399,7 +399,7 @@
:value="data.f25"
editortype=""
:pickupView="{ viewname: 'ibizsample0002-pickup-view', title: $t('entities.ibizsample0002.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
0, height: 0, placement: '
', isRedirectView: false }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
400, height: 600, placement: 'POPOVER
', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
...
...
@@ -452,7 +452,7 @@
:value="data.f27"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizsample0002-pickup-view', title: $t('entities.ibizsample0002.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
0, height: 0, placement: '
', isRedirectView: false }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
400, height: 600, placement: 'POPOVER
', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
...
...
@@ -509,7 +509,7 @@
:value="data.f29"
editortype=""
:pickupView="{ viewname: 'ibizsample0002-pickup-view', title: $t('entities.ibizsample0002.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
0, height: 0, placement: '
', isRedirectView: false }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
400, height: 600, placement: 'POPOVER
', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
...
...
@@ -534,7 +534,7 @@
valueitem='ibizsample0002id'
:value="data.formitem5"
editortype="linkonly"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
0, height: 0, placement: '
', isRedirectView: false }"
:linkview="{ viewname: 'IBIZSample0002EditView', title: $t('entities.ibizsample0002.views.editview.title'), deResParameters: [], parameters: [{ pathName: 'ibizsample0002s', parameterName: 'ibizsample0002' }, { pathName: 'editview', parameterName: 'editview' } ], width:
400, height: 600, placement: 'POPOVER
', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
...
...
demo-app/demo-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
68abc624
...
...
@@ -67,6 +67,10 @@ zuul:
path
:
/ibizsample0008s/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizappeditor
:
path
:
/ibizappeditors/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizbook
:
path
:
/ibizbooks/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
...
...
@@ -139,6 +143,10 @@ zuul:
path
:
/ibizsample0013s/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizappctrl
:
path
:
/ibizappctrls/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizcustomer
:
path
:
/ibizcustomers/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZAPPCTRL.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[应用部件]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"T_IBIZAPPCTRL"
,
resultMap
=
"IBIZAPPCTRLResultMap"
)
public
class
IBIZAPPCTRL
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 应用部件名称
*/
@TableField
(
value
=
"ibizappctrlname"
)
@JSONField
(
name
=
"ibizappctrlname"
)
@JsonProperty
(
"ibizappctrlname"
)
private
String
ibizappctrlname
;
/**
* 应用部件标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibizappctrlid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"ibizappctrlid"
)
@JsonProperty
(
"ibizappctrlid"
)
private
String
ibizappctrlid
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 应用部件类型
*/
@TableField
(
value
=
"ibizappctrltype"
)
@JSONField
(
name
=
"ibizappctrltype"
)
@JsonProperty
(
"ibizappctrltype"
)
private
String
ibizappctrltype
;
/**
* 部件描述
*/
@TableField
(
value
=
"ctrldescription"
)
@JSONField
(
name
=
"ctrldescription"
)
@JsonProperty
(
"ctrldescription"
)
private
String
ctrldescription
;
/**
* 设置 [应用部件名称]
*/
public
void
setIbizappctrlname
(
String
ibizappctrlname
)
{
this
.
ibizappctrlname
=
ibizappctrlname
;
this
.
modify
(
"ibizappctrlname"
,
ibizappctrlname
);
}
/**
* 设置 [应用部件类型]
*/
public
void
setIbizappctrltype
(
String
ibizappctrltype
)
{
this
.
ibizappctrltype
=
ibizappctrltype
;
this
.
modify
(
"ibizappctrltype"
,
ibizappctrltype
);
}
/**
* 设置 [部件描述]
*/
public
void
setCtrldescription
(
String
ctrldescription
)
{
this
.
ctrldescription
=
ctrldescription
;
this
.
modify
(
"ctrldescription"
,
ctrldescription
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"ibizappctrlid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZAPPEDITOR.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[编辑器]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"T_IBIZAPPEDITOR"
,
resultMap
=
"IBIZAPPEDITORResultMap"
)
public
class
IBIZAPPEDITOR
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 建立时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEDATE
)
@TableField
(
value
=
"createdate"
,
fill
=
FieldFill
.
INSERT
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 编辑器名称
*/
@TableField
(
value
=
"ibizappeditorname"
)
@JSONField
(
name
=
"ibizappeditorname"
)
@JsonProperty
(
"ibizappeditorname"
)
private
String
ibizappeditorname
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 编辑器标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibizappeditorid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"ibizappeditorid"
)
@JsonProperty
(
"ibizappeditorid"
)
private
String
ibizappeditorid
;
/**
* 编辑器类型
*/
@TableField
(
value
=
"ibizappeditortype"
)
@JSONField
(
name
=
"ibizappeditortype"
)
@JsonProperty
(
"ibizappeditortype"
)
private
String
ibizappeditortype
;
/**
* 编辑器描述
*/
@TableField
(
value
=
"rditordescription"
)
@JSONField
(
name
=
"rditordescription"
)
@JsonProperty
(
"rditordescription"
)
private
String
rditordescription
;
/**
* 设置 [编辑器名称]
*/
public
void
setIbizappeditorname
(
String
ibizappeditorname
)
{
this
.
ibizappeditorname
=
ibizappeditorname
;
this
.
modify
(
"ibizappeditorname"
,
ibizappeditorname
);
}
/**
* 设置 [编辑器类型]
*/
public
void
setIbizappeditortype
(
String
ibizappeditortype
)
{
this
.
ibizappeditortype
=
ibizappeditortype
;
this
.
modify
(
"ibizappeditortype"
,
ibizappeditortype
);
}
/**
* 设置 [编辑器描述]
*/
public
void
setRditordescription
(
String
rditordescription
)
{
this
.
rditordescription
=
rditordescription
;
this
.
modify
(
"rditordescription"
,
rditordescription
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"ibizappeditorid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZAPPVIEW.java
浏览文件 @
68abc624
...
...
@@ -113,6 +113,13 @@ public class IBIZAPPVIEW extends EntityMP implements Serializable {
@JSONField
(
name
=
"instanceaddress"
)
@JsonProperty
(
"instanceaddress"
)
private
String
instanceaddress
;
/**
* 视图描述
*/
@TableField
(
value
=
"viewdescription"
)
@JSONField
(
name
=
"viewdescription"
)
@JsonProperty
(
"viewdescription"
)
private
String
viewdescription
;
...
...
@@ -148,6 +155,14 @@ public class IBIZAPPVIEW extends EntityMP implements Serializable {
this
.
modify
(
"instanceaddress"
,
instanceaddress
);
}
/**
* 设置 [视图描述]
*/
public
void
setViewdescription
(
String
viewdescription
)
{
this
.
viewdescription
=
viewdescription
;
this
.
modify
(
"viewdescription"
,
viewdescription
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZAPPCTRLSearchContext.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
/**
* 关系型数据实体[IBIZAPPCTRL] 查询条件对象
*/
@Slf4j
@Data
public
class
IBIZAPPCTRLSearchContext
extends
QueryWrapperContext
<
IBIZAPPCTRL
>
{
private
String
n_ibizappctrlname_like
;
//[应用部件名称]
public
void
setN_ibizappctrlname_like
(
String
n_ibizappctrlname_like
)
{
this
.
n_ibizappctrlname_like
=
n_ibizappctrlname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibizappctrlname_like
)){
this
.
getSearchCond
().
like
(
"ibizappctrlname"
,
n_ibizappctrlname_like
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"ibizappctrlname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZAPPEDITORSearchContext.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
filter
;
import
java.math.BigDecimal
;
import
java.math.BigInteger
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
lombok.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
cn.ibizlab.util.filter.QueryWrapperContext
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
/**
* 关系型数据实体[IBIZAPPEDITOR] 查询条件对象
*/
@Slf4j
@Data
public
class
IBIZAPPEDITORSearchContext
extends
QueryWrapperContext
<
IBIZAPPEDITOR
>
{
private
String
n_ibizappeditorname_like
;
//[编辑器名称]
public
void
setN_ibizappeditorname_like
(
String
n_ibizappeditorname_like
)
{
this
.
n_ibizappeditorname_like
=
n_ibizappeditorname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibizappeditorname_like
)){
this
.
getSearchCond
().
like
(
"ibizappeditorname"
,
n_ibizappeditorname_like
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"ibizappeditorname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/mapper/IBIZAPPCTRLMapper.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
import
cn.ibizlab.core.sample.filter.IBIZAPPCTRLSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
IBIZAPPCTRLMapper
extends
BaseMapper
<
IBIZAPPCTRL
>
{
Page
<
IBIZAPPCTRL
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBIZAPPCTRLSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPCTRL
>
wrapper
);
@Override
IBIZAPPCTRL
selectById
(
Serializable
id
);
@Override
int
insert
(
IBIZAPPCTRL
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPCTRL
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPCTRL
entity
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPCTRL
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/mapper/IBIZAPPEDITORMapper.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.*
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
java.util.HashMap
;
import
org.apache.ibatis.annotations.Select
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
import
cn.ibizlab.core.sample.filter.IBIZAPPEDITORSearchContext
;
import
org.springframework.cache.annotation.CacheEvict
;
import
org.springframework.cache.annotation.Cacheable
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.core.toolkit.Constants
;
import
com.alibaba.fastjson.JSONObject
;
public
interface
IBIZAPPEDITORMapper
extends
BaseMapper
<
IBIZAPPEDITOR
>
{
Page
<
IBIZAPPEDITOR
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBIZAPPEDITORSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPEDITOR
>
wrapper
);
@Override
IBIZAPPEDITOR
selectById
(
Serializable
id
);
@Override
int
insert
(
IBIZAPPEDITOR
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPEDITOR
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPEDITOR
entity
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPEDITOR
>
updateWrapper
);
@Override
int
deleteById
(
Serializable
id
);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select
(
"${sql}"
)
List
<
JSONObject
>
selectBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update
(
"${sql}"
)
boolean
updateBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert
(
"${sql}"
)
boolean
insertBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete
(
"${sql}"
)
boolean
deleteBySQL
(
@Param
(
"sql"
)
String
sql
,
@Param
(
"et"
)
Map
param
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZAPPCTRLService.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
import
cn.ibizlab.core.sample.filter.IBIZAPPCTRLSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBIZAPPCTRL] 服务对象接口
*/
public
interface
IIBIZAPPCTRLService
extends
IService
<
IBIZAPPCTRL
>
{
boolean
create
(
IBIZAPPCTRL
et
);
void
createBatch
(
List
<
IBIZAPPCTRL
>
list
);
boolean
update
(
IBIZAPPCTRL
et
);
void
updateBatch
(
List
<
IBIZAPPCTRL
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
IBIZAPPCTRL
get
(
String
key
);
IBIZAPPCTRL
getDraft
(
IBIZAPPCTRL
et
);
boolean
checkKey
(
IBIZAPPCTRL
et
);
boolean
save
(
IBIZAPPCTRL
et
);
void
saveBatch
(
List
<
IBIZAPPCTRL
>
list
);
Page
<
IBIZAPPCTRL
>
searchDefault
(
IBIZAPPCTRLSearchContext
context
);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
IBIZAPPCTRL
>
getIbizappctrlByIds
(
List
<
String
>
ids
);
List
<
IBIZAPPCTRL
>
getIbizappctrlByEntities
(
List
<
IBIZAPPCTRL
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZAPPEDITORService.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
service
;
import
java.io.Serializable
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.math.BigInteger
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.scheduling.annotation.Async
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.cache.annotation.CacheEvict
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
import
cn.ibizlab.core.sample.filter.IBIZAPPEDITORSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBIZAPPEDITOR] 服务对象接口
*/
public
interface
IIBIZAPPEDITORService
extends
IService
<
IBIZAPPEDITOR
>
{
boolean
create
(
IBIZAPPEDITOR
et
);
void
createBatch
(
List
<
IBIZAPPEDITOR
>
list
);
boolean
update
(
IBIZAPPEDITOR
et
);
void
updateBatch
(
List
<
IBIZAPPEDITOR
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
IBIZAPPEDITOR
get
(
String
key
);
IBIZAPPEDITOR
getDraft
(
IBIZAPPEDITOR
et
);
boolean
checkKey
(
IBIZAPPEDITOR
et
);
boolean
save
(
IBIZAPPEDITOR
et
);
void
saveBatch
(
List
<
IBIZAPPEDITOR
>
list
);
Page
<
IBIZAPPEDITOR
>
searchDefault
(
IBIZAPPEDITORSearchContext
context
);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List
<
JSONObject
>
select
(
String
sql
,
Map
param
);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean
execute
(
String
sql
,
Map
param
);
List
<
IBIZAPPEDITOR
>
getIbizappeditorByIds
(
List
<
String
>
ids
);
List
<
IBIZAPPEDITOR
>
getIbizappeditorByEntities
(
List
<
IBIZAPPEDITOR
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/IBIZAPPCTRLServiceImpl.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
cn.ibizlab.util.errors.BadRequestAlertException
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
import
cn.ibizlab.core.sample.filter.IBIZAPPCTRLSearchContext
;
import
cn.ibizlab.core.sample.service.IIBIZAPPCTRLService
;
import
cn.ibizlab.util.helper.CachedBeanCopier
;
import
cn.ibizlab.util.helper.DEFieldCacheMap
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.core.sample.mapper.IBIZAPPCTRLMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[应用部件] 服务对象接口实现
*/
@Slf4j
@Service
(
"IBIZAPPCTRLServiceImpl"
)
public
class
IBIZAPPCTRLServiceImpl
extends
ServiceImpl
<
IBIZAPPCTRLMapper
,
IBIZAPPCTRL
>
implements
IIBIZAPPCTRLService
{
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
IBIZAPPCTRL
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappctrlid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
IBIZAPPCTRL
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBIZAPPCTRL
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibizappctrlid"
,
et
.
getIbizappctrlid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappctrlid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
IBIZAPPCTRL
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
@Transactional
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
IBIZAPPCTRL
get
(
String
key
)
{
IBIZAPPCTRL
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBIZAPPCTRL
();
et
.
setIbizappctrlid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
IBIZAPPCTRL
getDraft
(
IBIZAPPCTRL
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
IBIZAPPCTRL
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbizappctrlid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbizappctrlid
())));
}
@Override
@Transactional
public
boolean
save
(
IBIZAPPCTRL
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
IBIZAPPCTRL
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
IBIZAPPCTRL
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
IBIZAPPCTRL
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
IBIZAPPCTRL
>
searchDefault
(
IBIZAPPCTRLSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBIZAPPCTRL
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBIZAPPCTRL
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
IBIZAPPCTRL
>
getIbizappctrlByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
IBIZAPPCTRL
>
getIbizappctrlByEntities
(
List
<
IBIZAPPCTRL
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
IBIZAPPCTRL
entity
:
entities
){
Serializable
id
=
entity
.
getIbizappctrlid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
{
return
this
.
listByIds
(
ids
);
}
else
{
return
entities
;
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/IBIZAPPEDITORServiceImpl.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
core
.
sample
.
service
.
impl
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Map
;
import
java.util.HashSet
;
import
java.util.HashMap
;
import
java.util.Collection
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.math.BigInteger
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.stereotype.Service
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Value
;
import
cn.ibizlab.util.errors.BadRequestAlertException
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Lazy
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
import
cn.ibizlab.core.sample.filter.IBIZAPPEDITORSearchContext
;
import
cn.ibizlab.core.sample.service.IIBIZAPPEDITORService
;
import
cn.ibizlab.util.helper.CachedBeanCopier
;
import
cn.ibizlab.util.helper.DEFieldCacheMap
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
cn.ibizlab.core.sample.mapper.IBIZAPPEDITORMapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.Wrapper
;
import
com.alibaba.fastjson.JSONObject
;
import
org.springframework.util.StringUtils
;
/**
* 实体[编辑器] 服务对象接口实现
*/
@Slf4j
@Service
(
"IBIZAPPEDITORServiceImpl"
)
public
class
IBIZAPPEDITORServiceImpl
extends
ServiceImpl
<
IBIZAPPEDITORMapper
,
IBIZAPPEDITOR
>
implements
IIBIZAPPEDITORService
{
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
IBIZAPPEDITOR
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappeditorid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
IBIZAPPEDITOR
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBIZAPPEDITOR
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibizappeditorid"
,
et
.
getIbizappeditorid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappeditorid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
IBIZAPPEDITOR
>
list
)
{
updateBatchById
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
remove
(
String
key
)
{
boolean
result
=
removeById
(
key
);
return
result
;
}
@Override
@Transactional
public
void
removeBatch
(
Collection
<
String
>
idList
)
{
removeByIds
(
idList
);
}
@Override
@Transactional
public
IBIZAPPEDITOR
get
(
String
key
)
{
IBIZAPPEDITOR
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBIZAPPEDITOR
();
et
.
setIbizappeditorid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
IBIZAPPEDITOR
getDraft
(
IBIZAPPEDITOR
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
IBIZAPPEDITOR
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbizappeditorid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbizappeditorid
())));
}
@Override
@Transactional
public
boolean
save
(
IBIZAPPEDITOR
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
IBIZAPPEDITOR
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
IBIZAPPEDITOR
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
IBIZAPPEDITOR
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
IBIZAPPEDITOR
>
searchDefault
(
IBIZAPPEDITORSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBIZAPPEDITOR
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBIZAPPEDITOR
>(
pages
.
getRecords
(),
context
.
getPageable
(),
pages
.
getTotal
());
}
@Override
public
List
<
JSONObject
>
select
(
String
sql
,
Map
param
){
return
this
.
baseMapper
.
selectBySQL
(
sql
,
param
);
}
@Override
@Transactional
public
boolean
execute
(
String
sql
,
Map
param
){
if
(
sql
==
null
||
sql
.
isEmpty
())
{
return
false
;
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"insert"
))
{
return
this
.
baseMapper
.
insertBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"update"
))
{
return
this
.
baseMapper
.
updateBySQL
(
sql
,
param
);
}
if
(
sql
.
toLowerCase
().
trim
().
startsWith
(
"delete"
))
{
return
this
.
baseMapper
.
deleteBySQL
(
sql
,
param
);
}
log
.
warn
(
"暂未支持的SQL语法"
);
return
true
;
}
@Override
public
List
<
IBIZAPPEDITOR
>
getIbizappeditorByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
IBIZAPPEDITOR
>
getIbizappeditorByEntities
(
List
<
IBIZAPPEDITOR
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
IBIZAPPEDITOR
entity
:
entities
){
Serializable
id
=
entity
.
getIbizappeditorid
();
if
(!
ObjectUtils
.
isEmpty
(
id
)){
ids
.
add
(
id
);
}
}
if
(
ids
.
size
()>
0
)
{
return
this
.
listByIds
(
ids
);
}
else
{
return
entities
;
}
}
}
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
68abc624
此差异已折叠。
点击以展开。
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
68abc624
...
...
@@ -73,7 +73,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZSAMPLE0002]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizsample0002-
5
-14"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizsample0002-
6
-14"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZSAMPLE0002"
>
<![CDATA[ SELECT t1.[CREATEDATE], t1.[CREATEMAN], t1.[DE], t1.[DENUM], t1.[IBIZSAMPLE0002ID], t1.[IBIZSAMPLE0002NAME], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZSAMPLE0002] t1 ]]>
</createView>
...
...
demo-core/src/main/resources/mapper/sample/ibizappctrl/IBIZAPPCTRLMapper.xml
0 → 100644
浏览文件 @
68abc624
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.core.sample.mapper.IBIZAPPCTRLMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZAPPCTRLResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CTRLDESCRIPTION`, t1.`IBIZAPPCTRLID`, t1.`IBIZAPPCTRLNAME`, t1.`IBIZAPPCTRLTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPCTRL` t1 ) t1 where ibizappctrlid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZAPPCTRLResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZAPPCTRL"
autoMapping=
"true"
>
<id
property=
"ibizappctrlid"
column=
"ibizappctrlid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZAPPCTRLSearchContext"
resultMap=
"IBIZAPPCTRLResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CTRLDESCRIPTION`, t1.`IBIZAPPCTRLID`, t1.`IBIZAPPCTRLNAME`, t1.`IBIZAPPCTRLTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPCTRL` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`CTRLDESCRIPTION`, t1.`IBIZAPPCTRLID`, t1.`IBIZAPPCTRLNAME`, t1.`IBIZAPPCTRLTYPE`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPCTRL` t1
]]>
</sql>
</mapper>
demo-core/src/main/resources/mapper/sample/ibizappeditor/IBIZAPPEDITORMapper.xml
0 → 100644
浏览文件 @
68abc624
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.ibizlab.core.sample.mapper.IBIZAPPEDITORMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZAPPEDITORResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1 ) t1 where ibizappeditorid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZAPPEDITORResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZAPPEDITOR"
autoMapping=
"true"
>
<id
property=
"ibizappeditorid"
column=
"ibizappeditorid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZAPPEDITORSearchContext"
resultMap=
"IBIZAPPEDITORResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
)t1
<where><if
test=
"ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere"
>
${ew.sqlSegment}
</if></where>
<if
test=
"ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere"
>
${ew.sqlSegment}
</if>
</select>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZAPPEDITORID`, t1.`IBIZAPPEDITORNAME`, t1.`IBIZAPPEDITORTYPE`, t1.`RDITORDESCRIPTION`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPEDITOR` t1
]]>
</sql>
</mapper>
demo-core/src/main/resources/mapper/sample/ibizappview/IBIZAPPVIEWMapper.xml
浏览文件 @
68abc624
...
...
@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZAPPVIEWResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1 ) t1 where ibizappviewid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`
, t1.`VIEWDESCRIPTION`
FROM `T_IBIZAPPVIEW` t1 ) t1 where ibizappviewid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
...
...
@@ -27,12 +27,12 @@
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`
, t1.`VIEWDESCRIPTION`
FROM `T_IBIZAPPVIEW` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DOCUMENTADDRESS`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`IBIZAPPVIEWTYPE`, t1.`INSTANCEADDRESS`, t1.`UPDATEDATE`, t1.`UPDATEMAN`
, t1.`VIEWDESCRIPTION`
FROM `T_IBIZAPPVIEW` t1
]]>
</sql>
</mapper>
...
...
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
68abc624
...
...
@@ -9,6 +9,22 @@
],
"entities"
:[
{
"dename"
:
"IBIZAPPCTRL"
,
"delogicname"
:
"应用部件"
,
"sysmoudle"
:{
"id"
:
"SAMPLE"
,
"name"
:
"示例"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
"dename"
:
"IBIZAPPEDITOR"
,
"delogicname"
:
"编辑器"
,
"sysmoudle"
:{
"id"
:
"SAMPLE"
,
"name"
:
"示例"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
"dename"
:
"IBIZAPPVIEW"
,
"delogicname"
:
"应用视图"
,
"sysmoudle"
:{
"id"
:
"SAMPLE"
,
"name"
:
"示例"
},
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
68abc624
...
...
@@ -3,6 +3,276 @@
"systemname"
:
"DemoSys"
,
"entities"
:[
{
"entity_name"
:
"IBIZAPPCTRL"
,
"logic_name"
:
"应用部件"
,
"code_name"
:
"IBIZAPPCTRL"
,
"table_name"
:
"T_IBIZAPPCTRL"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
"module_id"
:
"Sample"
,
"module_name"
:
"示例"
,
"fields"
:[
{
"fieldname"
:
"IBIZAPPCTRLNAME"
,
"codename"
:
"IBIZAPPCTRLName"
,
"field_logic_name"
:
"应用部件名称"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
1
},
{
"fieldname"
:
"IBIZAPPCTRLID"
,
"codename"
:
"IBIZAPPCTRLId"
,
"field_logic_name"
:
"应用部件标识"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"GUID"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
1
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"UPDATEDATE"
,
"codename"
:
"UpdateDate"
,
"field_logic_name"
:
"更新时间"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
8
,
"predefined"
:
"UPDATEDATE"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CREATEDATE"
,
"codename"
:
"CreateDate"
,
"field_logic_name"
:
"建立时间"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
8
,
"predefined"
:
"CREATEDATE"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
60
,
"predefined"
:
"CREATEMAN"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"UPDATEMAN"
,
"codename"
:
"UpdateMan"
,
"field_logic_name"
:
"更新人"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
60
,
"predefined"
:
"UPDATEMAN"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"IBIZAPPCTRLTYPE"
,
"codename"
:
"Ibizappctrltype"
,
"field_logic_name"
:
"应用部件类型"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CTRLDESCRIPTION"
,
"codename"
:
"Ctrldescription"
,
"field_logic_name"
:
"部件描述"
,
"entity_name"
:
"IBIZAPPCTRL"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
],
"parentEntitys"
:[
]
}
,
{
"entity_name"
:
"IBIZAPPEDITOR"
,
"logic_name"
:
"编辑器"
,
"code_name"
:
"IBIZAPPEDITOR"
,
"table_name"
:
"T_IBIZAPPEDITOR"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
"module_id"
:
"Sample"
,
"module_name"
:
"示例"
,
"fields"
:[
{
"fieldname"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
60
,
"predefined"
:
"CREATEMAN"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"UPDATEDATE"
,
"codename"
:
"UpdateDate"
,
"field_logic_name"
:
"更新时间"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
8
,
"predefined"
:
"UPDATEDATE"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CREATEDATE"
,
"codename"
:
"CreateDate"
,
"field_logic_name"
:
"建立时间"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
8
,
"predefined"
:
"CREATEDATE"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"IBIZAPPEDITORNAME"
,
"codename"
:
"IBIZAPPEDITORName"
,
"field_logic_name"
:
"编辑器名称"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
1
},
{
"fieldname"
:
"UPDATEMAN"
,
"codename"
:
"UpdateMan"
,
"field_logic_name"
:
"更新人"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
60
,
"predefined"
:
"UPDATEMAN"
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"IBIZAPPEDITORID"
,
"codename"
:
"IBIZAPPEDITORId"
,
"field_logic_name"
:
"编辑器标识"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"GUID"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
1
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"IBIZAPPEDITORTYPE"
,
"codename"
:
"Ibizappeditortype"
,
"field_logic_name"
:
"编辑器类型"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"RDITORDESCRIPTION"
,
"codename"
:
"Rditordescription"
,
"field_logic_name"
:
"编辑器描述"
,
"entity_name"
:
"IBIZAPPEDITOR"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
],
"parentEntitys"
:[
]
}
,
{
"entity_name"
:
"IBIZAPPVIEW"
,
"logic_name"
:
"应用视图"
,
"code_name"
:
"IBIZAPPVIEW"
,
...
...
@@ -143,6 +413,20 @@
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"VIEWDESCRIPTION"
,
"codename"
:
"Viewdescription"
,
"field_logic_name"
:
"视图描述"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPCTRLDTO.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
dto
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.math.BigInteger
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
cn.ibizlab.util.domain.DTOBase
;
import
cn.ibizlab.util.domain.DTOClient
;
import
lombok.Data
;
/**
* 服务DTO对象[IBIZAPPCTRLDTO]
*/
@Data
public
class
IBIZAPPCTRLDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [IBIZAPPCTRLNAME]
*
*/
@JSONField
(
name
=
"ibizappctrlname"
)
@JsonProperty
(
"ibizappctrlname"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
ibizappctrlname
;
/**
* 属性 [IBIZAPPCTRLID]
*
*/
@JSONField
(
name
=
"ibizappctrlid"
)
@JsonProperty
(
"ibizappctrlid"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizappctrlid
;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
createman
;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
updateman
;
/**
* 属性 [IBIZAPPCTRLTYPE]
*
*/
@JSONField
(
name
=
"ibizappctrltype"
)
@JsonProperty
(
"ibizappctrltype"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizappctrltype
;
/**
* 属性 [CTRLDESCRIPTION]
*
*/
@JSONField
(
name
=
"ctrldescription"
)
@JsonProperty
(
"ctrldescription"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ctrldescription
;
/**
* 设置 [IBIZAPPCTRLNAME]
*/
public
void
setIbizappctrlname
(
String
ibizappctrlname
){
this
.
ibizappctrlname
=
ibizappctrlname
;
this
.
modify
(
"ibizappctrlname"
,
ibizappctrlname
);
}
/**
* 设置 [IBIZAPPCTRLTYPE]
*/
public
void
setIbizappctrltype
(
String
ibizappctrltype
){
this
.
ibizappctrltype
=
ibizappctrltype
;
this
.
modify
(
"ibizappctrltype"
,
ibizappctrltype
);
}
/**
* 设置 [CTRLDESCRIPTION]
*/
public
void
setCtrldescription
(
String
ctrldescription
){
this
.
ctrldescription
=
ctrldescription
;
this
.
modify
(
"ctrldescription"
,
ctrldescription
);
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPEDITORDTO.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
dto
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.math.BigInteger
;
import
java.util.Map
;
import
java.util.HashMap
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.Size
;
import
cn.ibizlab.util.domain.DTOBase
;
import
cn.ibizlab.util.domain.DTOClient
;
import
lombok.Data
;
/**
* 服务DTO对象[IBIZAPPEDITORDTO]
*/
@Data
public
class
IBIZAPPEDITORDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
createman
;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"updatedate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"updatedate"
)
private
Timestamp
updatedate
;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"createdate"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"createdate"
)
private
Timestamp
createdate
;
/**
* 属性 [IBIZAPPEDITORNAME]
*
*/
@JSONField
(
name
=
"ibizappeditorname"
)
@JsonProperty
(
"ibizappeditorname"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
ibizappeditorname
;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
updateman
;
/**
* 属性 [IBIZAPPEDITORID]
*
*/
@JSONField
(
name
=
"ibizappeditorid"
)
@JsonProperty
(
"ibizappeditorid"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizappeditorid
;
/**
* 属性 [IBIZAPPEDITORTYPE]
*
*/
@JSONField
(
name
=
"ibizappeditortype"
)
@JsonProperty
(
"ibizappeditortype"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizappeditortype
;
/**
* 属性 [RDITORDESCRIPTION]
*
*/
@JSONField
(
name
=
"rditordescription"
)
@JsonProperty
(
"rditordescription"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
rditordescription
;
/**
* 设置 [IBIZAPPEDITORNAME]
*/
public
void
setIbizappeditorname
(
String
ibizappeditorname
){
this
.
ibizappeditorname
=
ibizappeditorname
;
this
.
modify
(
"ibizappeditorname"
,
ibizappeditorname
);
}
/**
* 设置 [IBIZAPPEDITORTYPE]
*/
public
void
setIbizappeditortype
(
String
ibizappeditortype
){
this
.
ibizappeditortype
=
ibizappeditortype
;
this
.
modify
(
"ibizappeditortype"
,
ibizappeditortype
);
}
/**
* 设置 [RDITORDESCRIPTION]
*/
public
void
setRditordescription
(
String
rditordescription
){
this
.
rditordescription
=
rditordescription
;
this
.
modify
(
"rditordescription"
,
rditordescription
);
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPVIEWDTO.java
浏览文件 @
68abc624
...
...
@@ -110,6 +110,15 @@ public class IBIZAPPVIEWDTO extends DTOBase implements Serializable {
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
instanceaddress
;
/**
* 属性 [VIEWDESCRIPTION]
*
*/
@JSONField
(
name
=
"viewdescription"
)
@JsonProperty
(
"viewdescription"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
viewdescription
;
/**
* 设置 [IBIZAPPVIEWNAME]
...
...
@@ -143,6 +152,14 @@ public class IBIZAPPVIEWDTO extends DTOBase implements Serializable {
this
.
modify
(
"instanceaddress"
,
instanceaddress
);
}
/**
* 设置 [VIEWDESCRIPTION]
*/
public
void
setViewdescription
(
String
viewdescription
){
this
.
viewdescription
=
viewdescription
;
this
.
modify
(
"viewdescription"
,
viewdescription
);
}
}
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/mapping/IBIZAPPCTRLMapping.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
import
cn.ibizlab.demoapi.dto.IBIZAPPCTRLDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"DemoAPIIBIZAPPCTRLMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBIZAPPCTRLMapping
extends
MappingBase
<
IBIZAPPCTRLDTO
,
IBIZAPPCTRL
>
{
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/mapping/IBIZAPPEDITORMapping.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
import
cn.ibizlab.demoapi.dto.IBIZAPPEDITORDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"DemoAPIIBIZAPPEDITORMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBIZAPPEDITORMapping
extends
MappingBase
<
IBIZAPPEDITORDTO
,
IBIZAPPEDITOR
>
{
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPCTRLResource.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
rest
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
com.alibaba.fastjson.JSONObject
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
cn.ibizlab.demoapi.dto.*
;
import
cn.ibizlab.demoapi.mapping.*
;
import
cn.ibizlab.core.sample.domain.IBIZAPPCTRL
;
import
cn.ibizlab.core.sample.service.IIBIZAPPCTRLService
;
import
cn.ibizlab.core.sample.filter.IBIZAPPCTRLSearchContext
;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"应用部件"
})
@RestController
(
"DemoAPI-ibizappctrl"
)
@RequestMapping
(
""
)
public
class
IBIZAPPCTRLResource
{
@Autowired
public
IIBIZAPPCTRLService
ibizappctrlService
;
@Autowired
@Lazy
public
IBIZAPPCTRLMapping
ibizappctrlMapping
;
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPEDITORResource.java
0 → 100644
浏览文件 @
68abc624
package
cn
.
ibizlab
.
demoapi
.
rest
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
lombok.extern.slf4j.Slf4j
;
import
com.alibaba.fastjson.JSONObject
;
import
javax.servlet.ServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cglib.beans.BeanCopier
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.util.StringUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.security.access.prepost.PostAuthorize
;
import
org.springframework.validation.annotation.Validated
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
cn.ibizlab.demoapi.dto.*
;
import
cn.ibizlab.demoapi.mapping.*
;
import
cn.ibizlab.core.sample.domain.IBIZAPPEDITOR
;
import
cn.ibizlab.core.sample.service.IIBIZAPPEDITORService
;
import
cn.ibizlab.core.sample.filter.IBIZAPPEDITORSearchContext
;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"编辑器"
})
@RestController
(
"DemoAPI-ibizappeditor"
)
@RequestMapping
(
""
)
public
class
IBIZAPPEDITORResource
{
@Autowired
public
IIBIZAPPEDITORService
ibizappeditorService
;
@Autowired
@Lazy
public
IBIZAPPEDITORMapping
ibizappeditorMapping
;
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录