Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
61324ede
提交
61324ede
编写于
12月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
023aa05d
变更
53
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
53 个修改的文件
包含
3396 行增加
和
57 行删除
+3396
-57
view-config.json
app_Web/public/assets/json/view-config.json
+1
-1
auth-service-register.ts
app_Web/src/authservice/auth-service-register.ts
+1
-0
ibizappview-auth-service-base.ts
.../authservice/ibizappview/ibizappview-auth-service-base.ts
+44
-0
ibizappview-auth-service.ts
...b/src/authservice/ibizappview/ibizappview-auth-service.ts
+24
-0
en-US.ts
app_Web/src/locale/lang/en-US.ts
+2
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+2
-0
ibizappview_en_US.ts
...c/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
+11
-0
ibizappview_zh_CN.ts
...c/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
+10
-0
ibizbook_en_US.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
+1
-1
ibizbook_zh_CN.ts
...Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
+1
-1
ibizappviews.ts
app_Web/src/mock/entity/ibizappviews/ibizappviews.ts
+175
-0
ibizbooks.ts
app_Web/src/mock/entity/ibizbooks/ibizbooks.ts
+2
-0
index.ts
app_Web/src/mock/index.ts
+1
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+1
-1
ibizbookstate-wizard-view.vue
...e/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue
+1
-1
entity-service-register.ts
app_Web/src/service/entity-service-register.ts
+1
-0
ibizappview-service-base.ts
app_Web/src/service/ibizappview/ibizappview-service-base.ts
+81
-0
ibizappview-service.ts
app_Web/src/service/ibizappview/ibizappview-service.ts
+25
-0
ibizbook-service-base.ts
app_Web/src/service/ibizbook/ibizbook-service-base.ts
+34
-0
next-action-logic-base.ts
app_Web/src/service/ibizbook/next-action-logic-base.ts
+109
-0
next-action-logic.ts
app_Web/src/service/ibizbook/next-action-logic.ts
+22
-0
pre-action-logic-base.ts
app_Web/src/service/ibizbook/pre-action-logic-base.ts
+109
-0
pre-action-logic.ts
app_Web/src/service/ibizbook/pre-action-logic.ts
+22
-0
ibizappview-ui-service-base.ts
.../src/uiservice/ibizappview/ibizappview-ui-service-base.ts
+256
-0
ibizappview-ui-service.ts
app_Web/src/uiservice/ibizappview/ibizappview-ui-service.ts
+21
-0
ui-service-register.ts
app_Web/src/uiservice/ui-service-register.ts
+1
-0
inter-func-form-2-form-base.vue
...ok/inter-func-form-2-form/inter-func-form-2-form-base.vue
+7
-1
inter-func-form-2-form-service.ts
.../inter-func-form-2-form/inter-func-form-2-form-service.ts
+12
-0
state-field-guide-wizardpanel-base.vue
...-guide-wizardpanel/state-field-guide-wizardpanel-base.vue
+671
-0
state-field-guide-wizardpanel-model.ts
...-guide-wizardpanel/state-field-guide-wizardpanel-model.ts
+109
-0
state-field-guide-wizardpanel-service.ts
...uide-wizardpanel/state-field-guide-wizardpanel-service.ts
+105
-0
state-field-guide-wizardpanel.less
...ield-guide-wizardpanel/state-field-guide-wizardpanel.less
+36
-0
state-field-guide-wizardpanel.vue
...field-guide-wizardpanel/state-field-guide-wizardpanel.vue
+20
-0
application-web-prod.yml
.../demo-app-web/src/main/resources/application-web-prod.yml
+4
-0
Appkanban.java
...rc/main/java/cn/ibizlab/core/sample/domain/Appkanban.java
+121
-0
IBIZAPPVIEW.java
.../main/java/cn/ibizlab/core/sample/domain/IBIZAPPVIEW.java
+121
-0
AppkanbanSearchContext.java
...cn/ibizlab/core/sample/filter/AppkanbanSearchContext.java
+54
-0
IBIZAPPVIEWSearchContext.java
.../ibizlab/core/sample/filter/IBIZAPPVIEWSearchContext.java
+54
-0
AppkanbanMapper.java
...n/java/cn/ibizlab/core/sample/mapper/AppkanbanMapper.java
+65
-0
IBIZAPPVIEWMapper.java
...java/cn/ibizlab/core/sample/mapper/IBIZAPPVIEWMapper.java
+65
-0
IAppkanbanService.java
...ava/cn/ibizlab/core/sample/service/IAppkanbanService.java
+59
-0
IIBIZAPPVIEWService.java
...a/cn/ibizlab/core/sample/service/IIBIZAPPVIEWService.java
+59
-0
AppkanbanServiceImpl.java
...bizlab/core/sample/service/impl/AppkanbanServiceImpl.java
+222
-0
IBIZAPPVIEWServiceImpl.java
...zlab/core/sample/service/impl/IBIZAPPVIEWServiceImpl.java
+222
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+62
-41
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
AppkanbanMapper.xml
...ain/resources/mapper/sample/appkanban/AppkanbanMapper.xml
+41
-0
IBIZAPPVIEWMapper.xml
...resources/mapper/sample/ibizappview/IBIZAPPVIEWMapper.xml
+39
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+9
-1
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+115
-8
IBIZAPPVIEWDTO.java
.../src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPVIEWDTO.java
+98
-0
IBIZAPPVIEWMapping.java
...n/java/cn/ibizlab/demoapi/mapping/IBIZAPPVIEWMapping.java
+15
-0
IBIZAPPVIEWResource.java
...ain/java/cn/ibizlab/demoapi/rest/IBIZAPPVIEWResource.java
+52
-0
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
61324ede
...
...
@@ -48,7 +48,7 @@
"viewtag"
:
"09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview"
:
{
"title"
:
"图书状态向导视图"
,
"title"
:
"图书状态向导
(状态属性)
视图"
,
"caption"
:
"图书"
,
"viewtype"
:
"DEWIZARDVIEW"
,
"viewmodule"
:
"Sample"
,
...
...
app_Web/src/authservice/auth-service-register.ts
浏览文件 @
61324ede
...
...
@@ -43,6 +43,7 @@ export class AuthServiceRegister {
this
.
allAuthService
.
set
(
'ibizsample0017'
,
()
=>
import
(
'@/authservice/ibizsample0017/ibizsample0017-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0002'
,
()
=>
import
(
'@/authservice/ibizsample0002/ibizsample0002-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0010'
,
()
=>
import
(
'@/authservice/ibizsample0010/ibizsample0010-auth-service'
));
this
.
allAuthService
.
set
(
'ibizappview'
,
()
=>
import
(
'@/authservice/ibizappview/ibizappview-auth-service'
));
this
.
allAuthService
.
set
(
'ibizcustomer_intf'
,
()
=>
import
(
'@/authservice/ibizcustomer-intf/ibizcustomer-intf-auth-service'
));
this
.
allAuthService
.
set
(
'ibizorderdetail'
,
()
=>
import
(
'@/authservice/ibizorder-detail/ibizorder-detail-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0016'
,
()
=>
import
(
'@/authservice/ibizsample0016/ibizsample0016-auth-service'
));
...
...
app_Web/src/authservice/ibizappview/ibizappview-auth-service-base.ts
0 → 100644
浏览文件 @
61324ede
import
AuthService
from
'../auth-service'
;
/**
* 应用视图数据信息权限服务对象基类
*
* @export
* @class IBIZAPPVIEWAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZAPPVIEWAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZAPPVIEWAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZAPPVIEWAuthServiceBase
*/
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/ibizappview/ibizappview-auth-service.ts
0 → 100644
浏览文件 @
61324ede
import
IBIZAPPVIEWAuthServiceBase
from
'./ibizappview-auth-service-base'
;
/**
* 应用视图数据信息权限服务对象
*
* @export
* @class IBIZAPPVIEWAuthService
* @extends {IBIZAPPVIEWAuthServiceBase}
*/
export
default
class
IBIZAPPVIEWAuthService
extends
IBIZAPPVIEWAuthServiceBase
{
/**
* Creates an instance of IBIZAPPVIEWAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/locale/lang/en-US.ts
浏览文件 @
61324ede
...
...
@@ -2,6 +2,7 @@ import ibizsample0006_en_US from '@locale/lanres/entities/ibizsample0006/ibizsam
import
ibizsample0017_en_US
from
'@locale/lanres/entities/ibizsample0017/ibizsample0017_en_US'
;
import
ibizsample0002_en_US
from
'@locale/lanres/entities/ibizsample0002/ibizsample0002_en_US'
;
import
ibizsample0010_en_US
from
'@locale/lanres/entities/ibizsample0010/ibizsample0010_en_US'
;
import
ibizappview_en_US
from
'@locale/lanres/entities/ibizappview/ibizappview_en_US'
;
import
ibizcustomer_intf_en_US
from
'@locale/lanres/entities/ibizcustomer-intf/ibizcustomer-intf_en_US'
;
import
ibizorderdetail_en_US
from
'@locale/lanres/entities/ibizorder-detail/ibizorder-detail_en_US'
;
import
ibizsample0016_en_US
from
'@locale/lanres/entities/ibizsample0016/ibizsample0016_en_US'
;
...
...
@@ -403,6 +404,7 @@ export default {
ibizsample0017
:
ibizsample0017_en_US
,
ibizsample0002
:
ibizsample0002_en_US
,
ibizsample0010
:
ibizsample0010_en_US
,
ibizappview
:
ibizappview_en_US
,
ibizcustomer_intf
:
ibizcustomer_intf_en_US
,
ibizorderdetail
:
ibizorderdetail_en_US
,
ibizsample0016
:
ibizsample0016_en_US
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
61324ede
...
...
@@ -2,6 +2,7 @@ import ibizsample0006_zh_CN from '@locale/lanres/entities/ibizsample0006/ibizsam
import
ibizsample0017_zh_CN
from
'@locale/lanres/entities/ibizsample0017/ibizsample0017_zh_CN'
;
import
ibizsample0002_zh_CN
from
'@locale/lanres/entities/ibizsample0002/ibizsample0002_zh_CN'
;
import
ibizsample0010_zh_CN
from
'@locale/lanres/entities/ibizsample0010/ibizsample0010_zh_CN'
;
import
ibizappview_zh_CN
from
'@locale/lanres/entities/ibizappview/ibizappview_zh_CN'
;
import
ibizcustomer_intf_zh_CN
from
'@locale/lanres/entities/ibizcustomer-intf/ibizcustomer-intf_zh_CN'
;
import
ibizorderdetail_zh_CN
from
'@locale/lanres/entities/ibizorder-detail/ibizorder-detail_zh_CN'
;
import
ibizsample0016_zh_CN
from
'@locale/lanres/entities/ibizsample0016/ibizsample0016_zh_CN'
;
...
...
@@ -402,6 +403,7 @@ export default {
ibizsample0017
:
ibizsample0017_zh_CN
,
ibizsample0002
:
ibizsample0002_zh_CN
,
ibizsample0010
:
ibizsample0010_zh_CN
,
ibizappview
:
ibizappview_zh_CN
,
ibizcustomer_intf
:
ibizcustomer_intf_zh_CN
,
ibizorderdetail
:
ibizorderdetail_zh_CN
,
ibizsample0016
:
ibizsample0016_zh_CN
,
...
...
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_en_US.ts
0 → 100644
浏览文件 @
61324ede
export
default
{
fields
:
{
ibizappviewname
:
"应用视图数据信息名称"
,
ibizappviewid
:
"应用视图数据信息标识"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
createdate
:
"建立时间"
,
updatedate
:
"更新时间"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizappview/ibizappview_zh_CN.ts
0 → 100644
浏览文件 @
61324ede
export
default
{
fields
:
{
ibizappviewname
:
"应用视图数据信息名称"
,
ibizappviewid
:
"应用视图数据信息标识"
,
createman
:
"建立人"
,
updateman
:
"更新人"
,
createdate
:
"建立时间"
,
updatedate
:
"更新时间"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US.ts
浏览文件 @
61324ede
...
...
@@ -27,7 +27,7 @@ export default {
views
:
{
statewizardview
:
{
caption
:
"图书"
,
title
:
"图书状态向导视图"
,
title
:
"图书状态向导
(状态属性)
视图"
,
},
editview3
:
{
caption
:
"图书"
,
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN.ts
浏览文件 @
61324ede
...
...
@@ -26,7 +26,7 @@ export default {
views
:
{
statewizardview
:
{
caption
:
"图书"
,
title
:
"图书状态向导视图"
,
title
:
"图书状态向导
(状态属性)
视图"
,
},
editview3
:
{
caption
:
"图书"
,
...
...
app_Web/src/mock/entity/ibizappviews/ibizappviews.ts
0 → 100644
浏览文件 @
61324ede
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
\/
ibizappviews
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
\/
ibizappviews
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
(
/^
\/
ibizappviews
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
(
/^
\/
ibizappviews
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
(
/^
\/
ibizappviews
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
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
.
ibizappviewid
,
tempValue
.
ibizappviewid
));
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
(
/^
\/
ibizappviews
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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
(
/^
\/
ibizappviews
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: 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/ibizbooks/ibizbooks.ts
浏览文件 @
61324ede
...
...
@@ -421,6 +421,8 @@ mock.onGet(new RegExp(/^\/ibizbooks\/fetchdefault(\?[\w-./?%&=,]*)*$/)).reply((c
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
...
...
app_Web/src/mock/index.ts
浏览文件 @
61324ede
...
...
@@ -11,6 +11,7 @@ import './entity/ibizsample0006s/ibizsample0006s';
import
'./entity/ibizsample0017s/ibizsample0017s'
;
import
'./entity/ibizsample0002s/ibizsample0002s'
;
import
'./entity/ibizsample0010s/ibizsample0010s'
;
import
'./entity/ibizappviews/ibizappviews'
;
import
'./entity/ibizcustomer-intfs/ibizcustomer-intfs'
;
import
'./entity/ibizorder-details/ibizorder-details'
;
import
'./entity/ibizsample0016s/ibizsample0016s'
;
...
...
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
61324ede
...
...
@@ -56,7 +56,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"09663b7a4e3dce70524d1b64e02b5e2d"
},
"ibizbookstatewizardview"
:
{
"title"
:
"图书状态向导视图"
,
"title"
:
"图书状态向导
(状态属性)
视图"
,
"caption"
:
"图书"
,
"viewtype"
:
"DEWIZARDVIEW"
,
"viewmodule"
:
"Sample"
,
...
...
app_Web/src/pages/sample/ibizbookstate-wizard-view/ibizbookstate-wizard-view.vue
浏览文件 @
61324ede
...
...
@@ -2,7 +2,7 @@
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKStateWizardViewBase
from
'./ibizbookstate-wizard-view-base.vue'
;
import
view_wizardpanel
from
'@widgets/ibizbook/state-
guide-wizardpanel/state
-guide-wizardpanel.vue'
;
import
view_wizardpanel
from
'@widgets/ibizbook/state-
field-guide-wizardpanel/state-field
-guide-wizardpanel.vue'
;
@
Component
({
components
:
{
view_wizardpanel
,
...
...
app_Web/src/service/entity-service-register.ts
浏览文件 @
61324ede
...
...
@@ -43,6 +43,7 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'ibizsample0017'
,
()
=>
import
(
'@/service/ibizsample0017/ibizsample0017-service'
));
this
.
allEntityService
.
set
(
'ibizsample0002'
,
()
=>
import
(
'@/service/ibizsample0002/ibizsample0002-service'
));
this
.
allEntityService
.
set
(
'ibizsample0010'
,
()
=>
import
(
'@/service/ibizsample0010/ibizsample0010-service'
));
this
.
allEntityService
.
set
(
'ibizappview'
,
()
=>
import
(
'@/service/ibizappview/ibizappview-service'
));
this
.
allEntityService
.
set
(
'ibizcustomer_intf'
,
()
=>
import
(
'@/service/ibizcustomer-intf/ibizcustomer-intf-service'
));
this
.
allEntityService
.
set
(
'ibizorderdetail'
,
()
=>
import
(
'@/service/ibizorder-detail/ibizorder-detail-service'
));
this
.
allEntityService
.
set
(
'ibizsample0016'
,
()
=>
import
(
'@/service/ibizsample0016/ibizsample0016-service'
));
...
...
app_Web/src/service/ibizappview/ibizappview-service-base.ts
0 → 100644
浏览文件 @
61324ede
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 应用视图数据信息服务对象基类
*
* @export
* @class IBIZAPPVIEWServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZAPPVIEWServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZAPPVIEWServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZAPPVIEWServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibizappview'
;
this
.
APPDEKEY
=
'ibizappviewid'
;
this
.
APPDENAME
=
'ibizappviews'
;
this
.
APPDETEXT
=
'ibizappviewname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappviews/
${
context
.
ibizappview
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibizappviews/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibizappview/ibizappview-service.ts
0 → 100644
浏览文件 @
61324ede
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZAPPVIEWServiceBase
from
'./ibizappview-service-base'
;
/**
* 应用视图数据信息服务对象
*
* @export
* @class IBIZAPPVIEWService
* @extends {IBIZAPPVIEWServiceBase}
*/
export
default
class
IBIZAPPVIEWService
extends
IBIZAPPVIEWServiceBase
{
/**
* Creates an instance of IBIZAPPVIEWService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/service/ibizbook/ibizbook-service-base.ts
浏览文件 @
61324ede
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
import
NextActionLogic
from
'@/service/ibizbook/next-action-logic'
;
import
PreActionLogic
from
'@/service/ibizbook/pre-action-logic'
;
import
FinishLogic
from
'@/service/ibizbook/finish-logic'
;
import
InitDataLogic
from
'@/service/ibizbook/init-data-logic'
;
...
...
@@ -242,4 +244,36 @@ export default class IBIZBOOKServiceBase extends EntityService {
let
res
:
any
=
{
status
:
200
,
data
:
data
};
return
res
;
}
/**
* NextAction接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZBOOKServiceBase
*/
public
async
NextAction
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
appLogic
:
NextActionLogic
=
new
NextActionLogic
({
context
:
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
:
JSON
.
parse
(
JSON
.
stringify
(
data
))});
data
=
await
appLogic
.
onExecute
(
context
,
data
,
isloading
?
true
:
false
);
let
res
:
any
=
{
status
:
200
,
data
:
data
};
return
res
;
}
/**
* PreAction接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZBOOKServiceBase
*/
public
async
PreAction
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
appLogic
:
PreActionLogic
=
new
PreActionLogic
({
context
:
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
:
JSON
.
parse
(
JSON
.
stringify
(
data
))});
data
=
await
appLogic
.
onExecute
(
context
,
data
,
isloading
?
true
:
false
);
let
res
:
any
=
{
status
:
200
,
data
:
data
};
return
res
;
}
}
\ No newline at end of file
app_Web/src/service/ibizbook/next-action-logic-base.ts
0 → 100644
浏览文件 @
61324ede
import
{
Verify
}
from
'@/utils/verify/verify'
;
/**
* 执行下一步
*
* @export
* @class NextActionLogicBase
*/
export
default
class
NextActionLogicBase
{
/**
* 名称
*
* @memberof NextActionLogicBase
*/
private
name
:
string
=
"NextAction"
;
/**
* 唯一标识
*
* @memberof NextActionLogicBase
*/
private
id
:
string
=
"1642C5C5-4610-4A28-89AB-BD476DC68F6D"
;
/**
* 默认参数名称
*
* @memberof NextActionLogicBase
*/
private
defaultParamName
:
string
=
"Default"
;
/**
* 参数集合
*
* @memberof NextActionLogicBase
*/
private
paramsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of NextActionLogicBase.
*
* @param {*} [opts={}]
* @memberof NextActionLogicBase
*/
constructor
(
opts
:
any
=
{})
{
this
.
initParams
(
opts
);
}
/**
* 初始化参数集合
*
* @param {*} [opts={}]
* @memberof NextActionLogicBase
*/
public
initParams
(
opts
:
any
){
this
.
paramsMap
.
set
(
'Default'
,
opts
);
}
/**
* 计算0节点结果
*
* @param params 传入参数
*/
public
compute0Cond
(
params
:
any
):
boolean
{
return
true
;
}
/**
* 执行逻辑
*
* @param context 应用上下文
* @param params 传入参数
*/
public
onExecute
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
return
this
.
executeBegin
(
context
,
params
,
isloading
);
}
/**
* 准备参数
*
* @param context 应用上下文
* @param params 传入参数
*/
private
async
executePrepareparam1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// 准备参数节点
let
tempDstParam0Context
:
any
=
this
.
paramsMap
.
get
(
'Default'
).
context
?
this
.
paramsMap
.
get
(
'Default'
).
context
:{};
let
tempDstParam0Data
:
any
=
this
.
paramsMap
.
get
(
'Default'
).
data
?
this
.
paramsMap
.
get
(
'Default'
).
data
:{};
Object
.
assign
(
tempDstParam0Data
,{
borrowstatus
:
"step3"
});
this
.
paramsMap
.
set
(
'Default'
,{
data
:
tempDstParam0Data
,
context
:
tempDstParam0Context
});
return
this
.
paramsMap
.
get
(
this
.
defaultParamName
).
data
;
}
/**
* 开始
*
* @param params 传入参数
*/
private
async
executeBegin
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
//开始节点
if
(
this
.
compute0Cond
(
params
)){
return
this
.
executePrepareparam1
(
context
,
params
,
isloading
);
}
}
}
\ No newline at end of file
app_Web/src/service/ibizbook/next-action-logic.ts
0 → 100644
浏览文件 @
61324ede
import
{
Http
,
Util
}
from
'@/utils'
;
import
NextActionLogicBase
from
'./next-action-logic-base'
;
/**
* 执行下一步
*
* @export
* @class NextActionLogic
*/
export
default
class
NextActionLogic
extends
NextActionLogicBase
{
/**
* Creates an instance of NextActionLogic
*
* @param {*} [opts={}]
* @memberof NextActionLogic
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/service/ibizbook/pre-action-logic-base.ts
0 → 100644
浏览文件 @
61324ede
import
{
Verify
}
from
'@/utils/verify/verify'
;
/**
* 执行上一步
*
* @export
* @class PreActionLogicBase
*/
export
default
class
PreActionLogicBase
{
/**
* 名称
*
* @memberof PreActionLogicBase
*/
private
name
:
string
=
"PreAction"
;
/**
* 唯一标识
*
* @memberof PreActionLogicBase
*/
private
id
:
string
=
"EF239F8B-861B-4266-9993-8F1473CD4998"
;
/**
* 默认参数名称
*
* @memberof PreActionLogicBase
*/
private
defaultParamName
:
string
=
"Default"
;
/**
* 参数集合
*
* @memberof PreActionLogicBase
*/
private
paramsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of PreActionLogicBase.
*
* @param {*} [opts={}]
* @memberof PreActionLogicBase
*/
constructor
(
opts
:
any
=
{})
{
this
.
initParams
(
opts
);
}
/**
* 初始化参数集合
*
* @param {*} [opts={}]
* @memberof PreActionLogicBase
*/
public
initParams
(
opts
:
any
){
this
.
paramsMap
.
set
(
'Default'
,
opts
);
}
/**
* 计算0节点结果
*
* @param params 传入参数
*/
public
compute0Cond
(
params
:
any
):
boolean
{
return
true
;
}
/**
* 执行逻辑
*
* @param context 应用上下文
* @param params 传入参数
*/
public
onExecute
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
return
this
.
executeBegin
(
context
,
params
,
isloading
);
}
/**
* 准备参数
*
* @param context 应用上下文
* @param params 传入参数
*/
private
async
executePrepareparam1
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
// 准备参数节点
let
tempDstParam0Context
:
any
=
this
.
paramsMap
.
get
(
'Default'
).
context
?
this
.
paramsMap
.
get
(
'Default'
).
context
:{};
let
tempDstParam0Data
:
any
=
this
.
paramsMap
.
get
(
'Default'
).
data
?
this
.
paramsMap
.
get
(
'Default'
).
data
:{};
Object
.
assign
(
tempDstParam0Data
,{
borrowstatus
:
"step1"
});
this
.
paramsMap
.
set
(
'Default'
,{
data
:
tempDstParam0Data
,
context
:
tempDstParam0Context
});
return
this
.
paramsMap
.
get
(
this
.
defaultParamName
).
data
;
}
/**
* 开始
*
* @param params 传入参数
*/
private
async
executeBegin
(
context
:
any
,
params
:
any
,
isloading
:
boolean
){
//开始节点
if
(
this
.
compute0Cond
(
params
)){
return
this
.
executePrepareparam1
(
context
,
params
,
isloading
);
}
}
}
\ No newline at end of file
app_Web/src/service/ibizbook/pre-action-logic.ts
0 → 100644
浏览文件 @
61324ede
import
{
Http
,
Util
}
from
'@/utils'
;
import
PreActionLogicBase
from
'./pre-action-logic-base'
;
/**
* 执行上一步
*
* @export
* @class PreActionLogic
*/
export
default
class
PreActionLogic
extends
PreActionLogicBase
{
/**
* Creates an instance of PreActionLogic
*
* @param {*} [opts={}]
* @memberof PreActionLogic
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappview/ibizappview-ui-service-base.ts
0 → 100644
浏览文件 @
61324ede
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZAPPVIEWService
from
'@/service/ibizappview/ibizappview-service'
;
import
IBIZAPPVIEWAuthService
from
'@/authservice/ibizappview/ibizappview-auth-service'
;
/**
* 应用视图数据信息UI服务对象基类
*
* @export
* @class IBIZAPPVIEWUIServiceBase
*/
export
default
class
IBIZAPPVIEWUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
dataService
:
IBIZAPPVIEWService
=
new
IBIZAPPVIEWService
();
/**
* 所有关联视图
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZAPPVIEWUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZAPPVIEWAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibizappview
:
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 IBIZAPPVIEWUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZAPPVIEWUIServiceBase
*/
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 IBIZAPPVIEWUIServiceBase
*/
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 IBIZAPPVIEWUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZAPPVIEWUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizappview/ibizappview-ui-service.ts
0 → 100644
浏览文件 @
61324ede
import
IBIZAPPVIEWUIServiceBase
from
'./ibizappview-ui-service-base'
;
/**
* 应用视图数据信息UI服务对象
*
* @export
* @class IBIZAPPVIEWUIService
*/
export
default
class
IBIZAPPVIEWUIService
extends
IBIZAPPVIEWUIServiceBase
{
/**
* Creates an instance of IBIZAPPVIEWUIService.
*
* @param {*} [opts={}]
* @memberof IBIZAPPVIEWUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ui-service-register.ts
浏览文件 @
61324ede
...
...
@@ -43,6 +43,7 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'ibizsample0017'
,
()
=>
import
(
'@/uiservice/ibizsample0017/ibizsample0017-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0002'
,
()
=>
import
(
'@/uiservice/ibizsample0002/ibizsample0002-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0010'
,
()
=>
import
(
'@/uiservice/ibizsample0010/ibizsample0010-ui-service'
));
this
.
allUIService
.
set
(
'ibizappview'
,
()
=>
import
(
'@/uiservice/ibizappview/ibizappview-ui-service'
));
this
.
allUIService
.
set
(
'ibizcustomer_intf'
,
()
=>
import
(
'@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service'
));
this
.
allUIService
.
set
(
'ibizorderdetail'
,
()
=>
import
(
'@/uiservice/ibizorder-detail/ibizorder-detail-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0016'
,
()
=>
import
(
'@/uiservice/ibizsample0016/ibizsample0016-ui-service'
));
...
...
app_Web/src/widgets/ibizbook/inter-func-form-2-form/inter-func-form-2-form-base.vue
浏览文件 @
61324ede
...
...
@@ -40,6 +40,8 @@
:localParam ='{ }'
:disabled="detailsModel.formitem.disabled"
name='formitem'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='ibizcustomername'
:value="data.formitem"
editortype="pickup-no-ac"
...
...
@@ -63,6 +65,8 @@
:localParam ='{ }'
:disabled="detailsModel.formitem1.disabled"
name='formitem1'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='ibizcustomername'
:value="data.formitem1"
editortype="pickup-no-ac"
...
...
@@ -88,7 +92,9 @@
:localParam ='{ }'
:service="service"
valueitem='ibizcustomername'
:acParams="{ }"
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
...
...
app_Web/src/widgets/ibizbook/inter-func-form-2-form/inter-func-form-2-form-service.ts
浏览文件 @
61324ede
...
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
InterFuncForm_2Model
from
'./inter-func-form-2-form-model'
;
import
IBIZCustomerService
from
'@/service/ibizcustomer/ibizcustomer-service'
;
/**
...
...
@@ -41,6 +42,14 @@ export default class InterFuncForm_2Service extends ControlService {
this
.
model
=
new
InterFuncForm_2Model
();
}
/**
* 客户服务对象
*
* @type {IBIZCustomerService}
* @memberof InterFuncForm_2Service
*/
public
ibizcustomerService
:
IBIZCustomerService
=
new
IBIZCustomerService
();
/**
* 远端数据
*
...
...
@@ -90,6 +99,9 @@ export default class InterFuncForm_2Service extends ControlService {
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
data
.
page
=
data
.
page
?
data
.
page
:
0
;
data
.
size
=
data
.
size
?
data
.
size
:
1000
;
if
(
Object
.
is
(
serviceName
,
'IBIZCustomerService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibizcustomerService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'ibizcustomerid'
,
'ibizcustomer'
);
}
return
Promise
.
reject
([])
}
...
...
app_Web/src/widgets/ibizbook/state-field-guide-wizardpanel/state-field-guide-wizardpanel-base.vue
0 → 100644
浏览文件 @
61324ede
此差异已折叠。
点击以展开。
app_Web/src/widgets/ibizbook/state-field-guide-wizardpanel/state-field-guide-wizardpanel-model.ts
0 → 100644
浏览文件 @
61324ede
/**
* StateFieldGuide 部件模型
*
* @export
* @class StateFieldGuideModel
*/
export
default
class
StateFieldGuideModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof StateFieldGuideModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'createman'
,
prop
:
'createman'
,
},
{
name
:
'ibizbookname'
,
prop
:
'ibizbookname'
,
},
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
,
},
{
name
:
'createdate'
,
prop
:
'createdate'
,
},
{
name
:
'updateman'
,
prop
:
'updateman'
,
},
{
name
:
'updatedate'
,
prop
:
'updatedate'
,
},
{
name
:
'author'
,
prop
:
'author'
,
},
{
name
:
'price'
,
prop
:
'price'
,
},
{
name
:
'press'
,
prop
:
'press'
,
},
{
name
:
'type'
,
prop
:
'type'
,
},
{
name
:
'booknumber'
,
prop
:
'booknumber'
,
},
{
name
:
'subtext'
,
prop
:
'subtext'
,
},
{
name
:
'lendouttime'
,
prop
:
'lendouttime'
,
},
{
name
:
'returntime'
,
prop
:
'returntime'
,
},
{
name
:
'icon'
,
prop
:
'icon'
,
},
{
name
:
'sailstate'
,
prop
:
'sailstate'
,
},
{
name
:
'borrowstatus'
,
prop
:
'borrowstatus'
,
},
{
name
:
'stepstatus'
,
prop
:
'stepstatus'
,
},
{
name
:
'borrower'
,
prop
:
'borrower'
,
},
{
name
:
'borrowway'
,
prop
:
'borrowway'
,
},
{
name
:
'returnlib'
,
prop
:
'returnlib'
,
},
{
name
:
'borrowerid'
,
prop
:
'borrowerid'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/state-field-guide-wizardpanel/state-field-guide-wizardpanel-service.ts
0 → 100644
浏览文件 @
61324ede
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
StateFieldGuideModel
from
'./state-field-guide-wizardpanel-model'
;
/**
* StateFieldGuide 部件服务对象
*
* @export
* @class StateFieldGuideService
*/
export
default
class
StateFieldGuideService
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof StateFieldGuideService
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
({
$store
:
this
.
getStore
()
});
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof StateFieldGuideService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of StateFieldGuideService.
*
* @param {*} [opts={}]
* @memberof StateFieldGuideService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
StateFieldGuideModel
();
}
/**
* 初始化向导
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateFieldGuideService
*/
@
Errorlog
public
init
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Create
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
/**
* 向导结束
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof StateFieldGuideService
*/
@
Errorlog
public
finish
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
// 忽略版本检查
Object
.
assign
(
Data
,{
ignoreversioncheck
:
1
});
if
(
_appEntityService
[
action
]
&&
_appEntityService
[
action
]
instanceof
Function
)
{
result
=
_appEntityService
[
action
](
Context
,
Data
,
isloading
);
}
else
{
result
=
this
.
appEntityService
.
Update
(
Context
,
Data
,
isloading
);
}
result
.
then
((
response
)
=>
{
this
.
handleResponse
(
action
,
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
reject
(
response
);
});
});
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/state-field-guide-wizardpanel/state-field-guide-wizardpanel.less
0 → 100644
浏览文件 @
61324ede
.app-wizard {
background: #fff;
height: 100%;
.wizard-steps{
padding: 10px 50px;
border-bottom: 1px solid #ddd;
margin-bottom: 10px;
.el-step__head.is-process{
border-color: #7e8187;
color: #7e8187;
}
.el-step__title.is-process{
color: #7e8187;
}
.el-step__head.is-success{
border-color: #1890ff;
color: #1890ff;
}
.el-step__title.is-success{
color: #1890ff;
}
}
.app-wizard-content{
height: 100%;
overflow-y: auto;
}
.app-wizard-footer {
padding: 10px;
text-align: right;
.ivu-btn {
margin: 0 5px;
}
}
}
// this is less
app_Web/src/widgets/ibizbook/state-field-guide-wizardpanel/state-field-guide-wizardpanel.vue
0 → 100644
浏览文件 @
61324ede
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
StateFieldGuideBase
from
'./state-field-guide-wizardpanel-base.vue'
;
import
view_wizardpanel_form_ThirdForm
from
'@widgets/ibizbook/guide-return-form-form/guide-return-form-form.vue'
;
import
view_wizardpanel_form_FirstForm
from
'@widgets/ibizbook/guide-view-form-form/guide-view-form-form.vue'
;
import
view_wizardpanel_form_SecondForm
from
'@widgets/ibizbook/guide-borrow-form-form/guide-borrow-form-form.vue'
;
@
Component
({
components
:
{
view_wizardpanel_form_ThirdForm
,
view_wizardpanel_form_FirstForm
,
view_wizardpanel_form_SecondForm
,
}
})
export
default
class
StateFieldGuide
extends
StateFieldGuideBase
{
}
</
script
>
\ No newline at end of file
demo-app/demo-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
61324ede
...
...
@@ -23,6 +23,10 @@ zuul:
path
:
/ibizsample0010s/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizappview
:
path
:
/ibizappviews/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizcustomer_intf
:
path
:
/ibizcustomer_intfs/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/Appkanban.java
0 → 100644
浏览文件 @
61324ede
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_APPKANBAN"
,
resultMap
=
"AppkanbanResultMap"
)
public
class
Appkanban
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 应用看板标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"appkanbanid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"appkanbanid"
)
@JsonProperty
(
"appkanbanid"
)
private
String
appkanbanid
;
/**
* 建立时间
*/
@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
;
/**
* 应用看板名称
*/
@TableField
(
value
=
"appkanbanname"
)
@JSONField
(
name
=
"appkanbanname"
)
@JsonProperty
(
"appkanbanname"
)
private
String
appkanbanname
;
/**
* 更新时间
*/
@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
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 设置 [应用看板名称]
*/
public
void
setAppkanbanname
(
String
appkanbanname
)
{
this
.
appkanbanname
=
appkanbanname
;
this
.
modify
(
"appkanbanname"
,
appkanbanname
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"appkanbanid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZAPPVIEW.java
0 → 100644
浏览文件 @
61324ede
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_IBIZAPPVIEW"
,
resultMap
=
"IBIZAPPVIEWResultMap"
)
public
class
IBIZAPPVIEW
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 应用视图数据信息名称
*/
@TableField
(
value
=
"ibizappviewname"
)
@JSONField
(
name
=
"ibizappviewname"
)
@JsonProperty
(
"ibizappviewname"
)
private
String
ibizappviewname
;
/**
* 应用视图数据信息标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibizappviewid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"ibizappviewid"
)
@JsonProperty
(
"ibizappviewid"
)
private
String
ibizappviewid
;
/**
* 建立人
*/
@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
;
/**
* 建立时间
*/
@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
.
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
;
/**
* 设置 [应用视图数据信息名称]
*/
public
void
setIbizappviewname
(
String
ibizappviewname
)
{
this
.
ibizappviewname
=
ibizappviewname
;
this
.
modify
(
"ibizappviewname"
,
ibizappviewname
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"ibizappviewid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/filter/AppkanbanSearchContext.java
0 → 100644
浏览文件 @
61324ede
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.Appkanban
;
/**
* 关系型数据实体[Appkanban] 查询条件对象
*/
@Slf4j
@Data
public
class
AppkanbanSearchContext
extends
QueryWrapperContext
<
Appkanban
>
{
private
String
n_appkanbanname_like
;
//[应用看板名称]
public
void
setN_appkanbanname_like
(
String
n_appkanbanname_like
)
{
this
.
n_appkanbanname_like
=
n_appkanbanname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_appkanbanname_like
)){
this
.
getSearchCond
().
like
(
"appkanbanname"
,
n_appkanbanname_like
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"appkanbanname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZAPPVIEWSearchContext.java
0 → 100644
浏览文件 @
61324ede
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.IBIZAPPVIEW
;
/**
* 关系型数据实体[IBIZAPPVIEW] 查询条件对象
*/
@Slf4j
@Data
public
class
IBIZAPPVIEWSearchContext
extends
QueryWrapperContext
<
IBIZAPPVIEW
>
{
private
String
n_ibizappviewname_like
;
//[应用视图数据信息名称]
public
void
setN_ibizappviewname_like
(
String
n_ibizappviewname_like
)
{
this
.
n_ibizappviewname_like
=
n_ibizappviewname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibizappviewname_like
)){
this
.
getSearchCond
().
like
(
"ibizappviewname"
,
n_ibizappviewname_like
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"ibizappviewname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/mapper/AppkanbanMapper.java
0 → 100644
浏览文件 @
61324ede
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.Appkanban
;
import
cn.ibizlab.core.sample.filter.AppkanbanSearchContext
;
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
AppkanbanMapper
extends
BaseMapper
<
Appkanban
>
{
Page
<
Appkanban
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
AppkanbanSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
Appkanban
>
wrapper
);
@Override
Appkanban
selectById
(
Serializable
id
);
@Override
int
insert
(
Appkanban
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
Appkanban
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
Appkanban
entity
,
@Param
(
"ew"
)
Wrapper
<
Appkanban
>
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/IBIZAPPVIEWMapper.java
0 → 100644
浏览文件 @
61324ede
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.IBIZAPPVIEW
;
import
cn.ibizlab.core.sample.filter.IBIZAPPVIEWSearchContext
;
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
IBIZAPPVIEWMapper
extends
BaseMapper
<
IBIZAPPVIEW
>
{
Page
<
IBIZAPPVIEW
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBIZAPPVIEWSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPVIEW
>
wrapper
);
@Override
IBIZAPPVIEW
selectById
(
Serializable
id
);
@Override
int
insert
(
IBIZAPPVIEW
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPVIEW
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
IBIZAPPVIEW
entity
,
@Param
(
"ew"
)
Wrapper
<
IBIZAPPVIEW
>
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/IAppkanbanService.java
0 → 100644
浏览文件 @
61324ede
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.Appkanban
;
import
cn.ibizlab.core.sample.filter.AppkanbanSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[Appkanban] 服务对象接口
*/
public
interface
IAppkanbanService
extends
IService
<
Appkanban
>
{
boolean
create
(
Appkanban
et
);
void
createBatch
(
List
<
Appkanban
>
list
);
boolean
update
(
Appkanban
et
);
void
updateBatch
(
List
<
Appkanban
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
Appkanban
get
(
String
key
);
Appkanban
getDraft
(
Appkanban
et
);
boolean
checkKey
(
Appkanban
et
);
boolean
save
(
Appkanban
et
);
void
saveBatch
(
List
<
Appkanban
>
list
);
Page
<
Appkanban
>
searchDefault
(
AppkanbanSearchContext
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
<
Appkanban
>
getAppkanbanByIds
(
List
<
String
>
ids
);
List
<
Appkanban
>
getAppkanbanByEntities
(
List
<
Appkanban
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZAPPVIEWService.java
0 → 100644
浏览文件 @
61324ede
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.IBIZAPPVIEW
;
import
cn.ibizlab.core.sample.filter.IBIZAPPVIEWSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBIZAPPVIEW] 服务对象接口
*/
public
interface
IIBIZAPPVIEWService
extends
IService
<
IBIZAPPVIEW
>
{
boolean
create
(
IBIZAPPVIEW
et
);
void
createBatch
(
List
<
IBIZAPPVIEW
>
list
);
boolean
update
(
IBIZAPPVIEW
et
);
void
updateBatch
(
List
<
IBIZAPPVIEW
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
IBIZAPPVIEW
get
(
String
key
);
IBIZAPPVIEW
getDraft
(
IBIZAPPVIEW
et
);
boolean
checkKey
(
IBIZAPPVIEW
et
);
boolean
save
(
IBIZAPPVIEW
et
);
void
saveBatch
(
List
<
IBIZAPPVIEW
>
list
);
Page
<
IBIZAPPVIEW
>
searchDefault
(
IBIZAPPVIEWSearchContext
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
<
IBIZAPPVIEW
>
getIbizappviewByIds
(
List
<
String
>
ids
);
List
<
IBIZAPPVIEW
>
getIbizappviewByEntities
(
List
<
IBIZAPPVIEW
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/AppkanbanServiceImpl.java
0 → 100644
浏览文件 @
61324ede
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.Appkanban
;
import
cn.ibizlab.core.sample.filter.AppkanbanSearchContext
;
import
cn.ibizlab.core.sample.service.IAppkanbanService
;
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.AppkanbanMapper
;
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
(
"AppkanbanServiceImpl"
)
public
class
AppkanbanServiceImpl
extends
ServiceImpl
<
AppkanbanMapper
,
Appkanban
>
implements
IAppkanbanService
{
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
Appkanban
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getAppkanbanid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
Appkanban
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
Appkanban
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"appkanbanid"
,
et
.
getAppkanbanid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getAppkanbanid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
Appkanban
>
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
Appkanban
get
(
String
key
)
{
Appkanban
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
Appkanban
();
et
.
setAppkanbanid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
Appkanban
getDraft
(
Appkanban
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
Appkanban
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getAppkanbanid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getAppkanbanid
())));
}
@Override
@Transactional
public
boolean
save
(
Appkanban
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
Appkanban
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
Appkanban
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
Appkanban
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
Appkanban
>
searchDefault
(
AppkanbanSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
Appkanban
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
Appkanban
>(
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
<
Appkanban
>
getAppkanbanByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
Appkanban
>
getAppkanbanByEntities
(
List
<
Appkanban
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
Appkanban
entity
:
entities
){
Serializable
id
=
entity
.
getAppkanbanid
();
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/IBIZAPPVIEWServiceImpl.java
0 → 100644
浏览文件 @
61324ede
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.IBIZAPPVIEW
;
import
cn.ibizlab.core.sample.filter.IBIZAPPVIEWSearchContext
;
import
cn.ibizlab.core.sample.service.IIBIZAPPVIEWService
;
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.IBIZAPPVIEWMapper
;
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
(
"IBIZAPPVIEWServiceImpl"
)
public
class
IBIZAPPVIEWServiceImpl
extends
ServiceImpl
<
IBIZAPPVIEWMapper
,
IBIZAPPVIEW
>
implements
IIBIZAPPVIEWService
{
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
IBIZAPPVIEW
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappviewid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
IBIZAPPVIEW
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBIZAPPVIEW
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibizappviewid"
,
et
.
getIbizappviewid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbizappviewid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
IBIZAPPVIEW
>
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
IBIZAPPVIEW
get
(
String
key
)
{
IBIZAPPVIEW
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBIZAPPVIEW
();
et
.
setIbizappviewid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
IBIZAPPVIEW
getDraft
(
IBIZAPPVIEW
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
IBIZAPPVIEW
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbizappviewid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbizappviewid
())));
}
@Override
@Transactional
public
boolean
save
(
IBIZAPPVIEW
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
IBIZAPPVIEW
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
IBIZAPPVIEW
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
IBIZAPPVIEW
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
IBIZAPPVIEW
>
searchDefault
(
IBIZAPPVIEWSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBIZAPPVIEW
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBIZAPPVIEW
>(
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
<
IBIZAPPVIEW
>
getIbizappviewByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
IBIZAPPVIEW
>
getIbizappviewByEntities
(
List
<
IBIZAPPVIEW
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
IBIZAPPVIEW
entity
:
entities
){
Serializable
id
=
entity
.
getIbizappviewid
();
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
浏览文件 @
61324ede
此差异已折叠。
点击以展开。
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
61324ede
...
...
@@ -19,7 +19,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZCUSTOMER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizcustomer-2
0
-4"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizcustomer-2
1
-4"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZCUSTOMER"
>
<![CDATA[ SELECT t1.[ADDRESS], t1.[CREATEDATE], t1.[CREATEMAN], t1.[CUSTOMERUID], t1.[IBIZCUSTOMERID], t1.[IBIZCUSTOMERNAME], t1.[SN], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZCUSTOMER] t1 ]]>
</createView>
...
...
demo-core/src/main/resources/mapper/sample/appkanban/AppkanbanMapper.xml
0 → 100644
浏览文件 @
61324ede
<?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.AppkanbanMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"AppkanbanResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`APPKANBANID`, t1.`APPKANBANNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_APPKANBAN` t1 ) t1 where appkanbanid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"AppkanbanResultMap"
type=
"cn.ibizlab.core.sample.domain.Appkanban"
autoMapping=
"true"
>
<id
property=
"appkanbanid"
column=
"appkanbanid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.AppkanbanSearchContext"
resultMap=
"AppkanbanResultMap"
>
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.`APPKANBANID`, t1.`APPKANBANNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_APPKANBAN` t1
WHERE t1.CREATEDATE = 1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`APPKANBANID`, t1.`APPKANBANNAME`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_APPKANBAN` t1
WHERE t1.CREATEDATE = 1
]]>
</sql>
</mapper>
demo-core/src/main/resources/mapper/sample/ibizappview/IBIZAPPVIEWMapper.xml
0 → 100644
浏览文件 @
61324ede
<?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.IBIZAPPVIEWMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZAPPVIEWResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1 ) t1 where ibizappviewid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZAPPVIEWResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZAPPVIEW"
autoMapping=
"true"
>
<id
property=
"ibizappviewid"
column=
"ibizappviewid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZAPPVIEWSearchContext"
resultMap=
"IBIZAPPVIEWResultMap"
>
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.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZAPPVIEWID`, t1.`IBIZAPPVIEWNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZAPPVIEW` t1
]]>
</sql>
</mapper>
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
61324ede
...
...
@@ -9,6 +9,14 @@
],
"entities"
:[
{
"dename"
:
"IBIZAPPVIEW"
,
"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"
:
"IBIZAccount"
,
"delogicname"
:
"账户"
,
"sysmoudle"
:{
"id"
:
"SAMPLE"
,
"name"
:
"示例"
},
...
...
@@ -21,7 +29,7 @@
"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"
:
"Finish"
,
"name"
:
"完成借书流程"
,
"type"
:
"DELOGIC"
},{
"id"
:
"Init"
,
"name"
:
"初始化"
,
"type"
:
"DELOGIC"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"UpdatePress"
,
"name"
:
"更新出版社"
,
"type"
:
"USERCUSTOM"
}],
"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"
:
"Finish"
,
"name"
:
"完成借书流程"
,
"type"
:
"DELOGIC"
},{
"id"
:
"Init"
,
"name"
:
"初始化"
,
"type"
:
"DELOGIC"
},{
"id"
:
"
NextAction"
,
"name"
:
"下一步"
,
"type"
:
"DELOGIC"
},{
"id"
:
"PreAction"
,
"name"
:
"上一步"
,
"type"
:
"DELOGIC"
},{
"id"
:
"
Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"UpdatePress"
,
"name"
:
"更新出版社"
,
"type"
:
"USERCUSTOM"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
61324ede
...
...
@@ -4,8 +4,8 @@
"entities"
:[
{
"entity_name"
:
"APPKANBAN"
,
"logic_name"
:
"应用
看板
"
,
"code_name"
:
"A
PPKANBAN
"
,
"logic_name"
:
"应用
视图信息
"
,
"code_name"
:
"A
ppkanban
"
,
"table_name"
:
"T_APPKANBAN"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
...
...
@@ -16,7 +16,7 @@
"fieldname"
:
"APPKANBANID"
,
"codename"
:
"APPKANBANId"
,
"field_logic_name"
:
"应用看板标识"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"GUID"
,
"nullable"
:
0
,
"physical_field"
:
1
,
...
...
@@ -30,7 +30,7 @@
"fieldname"
:
"CREATEDATE"
,
"codename"
:
"CreateDate"
,
"field_logic_name"
:
"建立时间"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
...
...
@@ -45,7 +45,7 @@
"fieldname"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
...
...
@@ -61,7 +61,7 @@
"fieldname"
:
"APPKANBANNAME"
,
"codename"
:
"APPKANBANName"
,
"field_logic_name"
:
"应用看板名称"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
...
...
@@ -75,7 +75,7 @@
"fieldname"
:
"UPDATEDATE"
,
"codename"
:
"UpdateDate"
,
"field_logic_name"
:
"更新时间"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
0
,
"physical_field"
:
1
,
...
...
@@ -90,7 +90,7 @@
"fieldname"
:
"UPDATEMAN"
,
"codename"
:
"UpdateMan"
,
"field_logic_name"
:
"更新人"
,
"entity_name"
:
"A
PPKANBAN
"
,
"entity_name"
:
"A
ppkanban
"
,
"field_type"
:
"TEXT"
,
"dict"
:
"SysOperator"
,
"nullable"
:
0
,
...
...
@@ -107,6 +107,113 @@
],
"parentEntitys"
:[
]
}
,
{
"entity_name"
:
"IBIZAPPVIEW"
,
"logic_name"
:
"应用视图数据信息"
,
"code_name"
:
"IBIZAPPVIEW"
,
"table_name"
:
"T_IBIZAPPVIEW"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
"module_id"
:
"Sample"
,
"module_name"
:
"示例"
,
"fields"
:[
{
"fieldname"
:
"IBIZAPPVIEWNAME"
,
"codename"
:
"IBIZAPPVIEWName"
,
"field_logic_name"
:
"应用视图数据信息名称"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
1
},
{
"fieldname"
:
"IBIZAPPVIEWID"
,
"codename"
:
"IBIZAPPVIEWId"
,
"field_logic_name"
:
"应用视图数据信息标识"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"field_type"
:
"GUID"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
1
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"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"
:
"IBIZAPPVIEW"
,
"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"
:
"CREATEDATE"
,
"codename"
:
"CreateDate"
,
"field_logic_name"
:
"建立时间"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"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"
:
"UPDATEDATE"
,
"codename"
:
"UpdateDate"
,
"field_logic_name"
:
"更新时间"
,
"entity_name"
:
"IBIZAPPVIEW"
,
"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
}
],
"subEntitys"
:[
],
"parentEntitys"
:[
]
}
,
{
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZAPPVIEWDTO.java
0 → 100644
浏览文件 @
61324ede
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对象[IBIZAPPVIEWDTO]
*/
@Data
public
class
IBIZAPPVIEWDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [IBIZAPPVIEWNAME]
*
*/
@JSONField
(
name
=
"ibizappviewname"
)
@JsonProperty
(
"ibizappviewname"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
ibizappviewname
;
/**
* 属性 [IBIZAPPVIEWID]
*
*/
@JSONField
(
name
=
"ibizappviewid"
)
@JsonProperty
(
"ibizappviewid"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibizappviewid
;
/**
* 属性 [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
;
/**
* 属性 [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
;
/**
* 属性 [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
;
/**
* 设置 [IBIZAPPVIEWNAME]
*/
public
void
setIbizappviewname
(
String
ibizappviewname
){
this
.
ibizappviewname
=
ibizappviewname
;
this
.
modify
(
"ibizappviewname"
,
ibizappviewname
);
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/mapping/IBIZAPPVIEWMapping.java
0 → 100644
浏览文件 @
61324ede
package
cn
.
ibizlab
.
demoapi
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.sample.domain.IBIZAPPVIEW
;
import
cn.ibizlab.demoapi.dto.IBIZAPPVIEWDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"DemoAPIIBIZAPPVIEWMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBIZAPPVIEWMapping
extends
MappingBase
<
IBIZAPPVIEWDTO
,
IBIZAPPVIEW
>
{
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPVIEWResource.java
0 → 100644
浏览文件 @
61324ede
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.IBIZAPPVIEW
;
import
cn.ibizlab.core.sample.service.IIBIZAPPVIEWService
;
import
cn.ibizlab.core.sample.filter.IBIZAPPVIEWSearchContext
;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"应用视图数据信息"
})
@RestController
(
"DemoAPI-ibizappview"
)
@RequestMapping
(
""
)
public
class
IBIZAPPVIEWResource
{
@Autowired
public
IIBIZAPPVIEWService
ibizappviewService
;
@Autowired
@Lazy
public
IBIZAPPVIEWMapping
ibizappviewMapping
;
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录