Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
16296193
提交
16296193
编写于
12月 14, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
59354d8c
变更
53
隐藏空白字符变更
内嵌
并排
正在显示
53 个修改的文件
包含
3339 行增加
和
26 行删除
+3339
-26
auth-service-register.ts
app_Web/src/authservice/auth-service-register.ts
+2
-0
ibiztask-auth-service-base.ts
...eb/src/authservice/ibiztask/ibiztask-auth-service-base.ts
+44
-0
ibiztask-auth-service.ts
app_Web/src/authservice/ibiztask/ibiztask-auth-service.ts
+24
-0
ibiztaskteam-auth-service-base.ts
...uthservice/ibiztaskteam/ibiztaskteam-auth-service-base.ts
+44
-0
ibiztaskteam-auth-service.ts
...src/authservice/ibiztaskteam/ibiztaskteam-auth-service.ts
+24
-0
en-US-base.ts
app_Web/src/locale/lang/en-US-base.ts
+5
-1
zh-CN-base.ts
app_Web/src/locale/lang/zh-CN-base.ts
+4
-0
ibizbook_en_US_base.ts
...rc/locale/lanres/entities/ibizbook/ibizbook_en_US_base.ts
+4
-4
ibizorder_en_US_base.ts
.../locale/lanres/entities/ibizorder/ibizorder_en_US_base.ts
+10
-10
ibiztask_en_US.ts
...Web/src/locale/lanres/entities/ibiztask/ibiztask_en_US.ts
+9
-0
ibiztask_en_US_base.ts
...rc/locale/lanres/entities/ibiztask/ibiztask_en_US_base.ts
+18
-0
ibiztask_zh_CN.ts
...Web/src/locale/lanres/entities/ibiztask/ibiztask_zh_CN.ts
+9
-0
ibiztask_zh_CN_base.ts
...rc/locale/lanres/entities/ibiztask/ibiztask_zh_CN_base.ts
+17
-0
ibiztaskteam_en_US.ts
...locale/lanres/entities/ibiztaskteam/ibiztaskteam_en_US.ts
+9
-0
ibiztaskteam_en_US_base.ts
...e/lanres/entities/ibiztaskteam/ibiztaskteam_en_US_base.ts
+19
-0
ibiztaskteam_zh_CN.ts
...locale/lanres/entities/ibiztaskteam/ibiztaskteam_zh_CN.ts
+9
-0
ibiztaskteam_zh_CN_base.ts
...e/lanres/entities/ibiztaskteam/ibiztaskteam_zh_CN_base.ts
+18
-0
ibiztasks.ts
app_Web/src/mock/entity/ibiztasks/ibiztasks.ts
+175
-0
ibiztaskteams.ts
app_Web/src/mock/entity/ibiztaskteams/ibiztaskteams.ts
+175
-0
index.ts
app_Web/src/mock/index.ts
+2
-0
entity-service-register.ts
app_Web/src/service/entity-service-register.ts
+2
-0
ibiztask-service-base.ts
app_Web/src/service/ibiztask/ibiztask-service-base.ts
+81
-0
ibiztask-service.ts
app_Web/src/service/ibiztask/ibiztask-service.ts
+25
-0
ibiztaskteam-service-base.ts
...Web/src/service/ibiztaskteam/ibiztaskteam-service-base.ts
+81
-0
ibiztaskteam-service.ts
app_Web/src/service/ibiztaskteam/ibiztaskteam-service.ts
+25
-0
ibiztask-ui-service-base.ts
app_Web/src/uiservice/ibiztask/ibiztask-ui-service-base.ts
+256
-0
ibiztask-ui-service.ts
app_Web/src/uiservice/ibiztask/ibiztask-ui-service.ts
+21
-0
ibiztaskteam-ui-service-base.ts
...rc/uiservice/ibiztaskteam/ibiztaskteam-ui-service-base.ts
+256
-0
ibiztaskteam-ui-service.ts
...Web/src/uiservice/ibiztaskteam/ibiztaskteam-ui-service.ts
+21
-0
ui-service-register.ts
app_Web/src/uiservice/ui-service-register.ts
+2
-0
application-web-prod.yml
.../demo-app-web/src/main/resources/application-web-prod.yml
+8
-0
IBIZTASK.java
...src/main/java/cn/ibizlab/core/sample/domain/IBIZTASK.java
+136
-0
IBIZTASKTEAM.java
...main/java/cn/ibizlab/core/sample/domain/IBIZTASKTEAM.java
+159
-0
IBIZTASKSearchContext.java
.../cn/ibizlab/core/sample/filter/IBIZTASKSearchContext.java
+54
-0
IBIZTASKTEAMSearchContext.java
...ibizlab/core/sample/filter/IBIZTASKTEAMSearchContext.java
+61
-0
IBIZTASKMapper.java
...in/java/cn/ibizlab/core/sample/mapper/IBIZTASKMapper.java
+65
-0
IBIZTASKTEAMMapper.java
...ava/cn/ibizlab/core/sample/mapper/IBIZTASKTEAMMapper.java
+67
-0
IIBIZTASKService.java
...java/cn/ibizlab/core/sample/service/IIBIZTASKService.java
+59
-0
IIBIZTASKTEAMService.java
.../cn/ibizlab/core/sample/service/IIBIZTASKTEAMService.java
+61
-0
IBIZTASKServiceImpl.java
...ibizlab/core/sample/service/impl/IBIZTASKServiceImpl.java
+225
-0
IBIZTASKTEAMServiceImpl.java
...lab/core/sample/service/impl/IBIZTASKTEAMServiceImpl.java
+234
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+60
-9
view.xml
demo-core/src/main/resources/liquibase/view.xml
+2
-2
IBIZTASKMapper.xml
.../main/resources/mapper/sample/ibiztask/IBIZTASKMapper.xml
+39
-0
IBIZTASKTEAMMapper.xml
...sources/mapper/sample/ibiztaskteam/IBIZTASKTEAMMapper.xml
+49
-0
systemResource.json
demo-core/src/main/resources/permission/systemResource.json
+16
-0
DemoSys.json
demo-core/src/main/resources/sysmodel/DemoSys.json
+272
-0
IBIZTASKDTO.java
...api/src/main/java/cn/ibizlab/demoapi/dto/IBIZTASKDTO.java
+115
-0
IBIZTASKTEAMDTO.java
...src/main/java/cn/ibizlab/demoapi/dto/IBIZTASKTEAMDTO.java
+132
-0
IBIZTASKMapping.java
...main/java/cn/ibizlab/demoapi/mapping/IBIZTASKMapping.java
+15
-0
IBIZTASKTEAMMapping.java
.../java/cn/ibizlab/demoapi/mapping/IBIZTASKTEAMMapping.java
+15
-0
IBIZTASKResource.java
...c/main/java/cn/ibizlab/demoapi/rest/IBIZTASKResource.java
+52
-0
IBIZTASKTEAMResource.java
...in/java/cn/ibizlab/demoapi/rest/IBIZTASKTEAMResource.java
+52
-0
未找到文件。
app_Web/src/authservice/auth-service-register.ts
浏览文件 @
16296193
...
...
@@ -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
(
'ibiztaskteam'
,
()
=>
import
(
'@/authservice/ibiztaskteam/ibiztaskteam-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'
));
...
...
@@ -75,6 +76,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
(
'ibiztask'
,
()
=>
import
(
'@/authservice/ibiztask/ibiztask-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'
));
...
...
app_Web/src/authservice/ibiztask/ibiztask-auth-service-base.ts
0 → 100644
浏览文件 @
16296193
import
AuthService
from
'../auth-service'
;
/**
* 任务权限服务对象基类
*
* @export
* @class IBIZTASKAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZTASKAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZTASKAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZTASKAuthServiceBase
*/
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/ibiztask/ibiztask-auth-service.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKAuthServiceBase
from
'./ibiztask-auth-service-base'
;
/**
* 任务权限服务对象
*
* @export
* @class IBIZTASKAuthService
* @extends {IBIZTASKAuthServiceBase}
*/
export
default
class
IBIZTASKAuthService
extends
IBIZTASKAuthServiceBase
{
/**
* Creates an instance of IBIZTASKAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/authservice/ibiztaskteam/ibiztaskteam-auth-service-base.ts
0 → 100644
浏览文件 @
16296193
import
AuthService
from
'../auth-service'
;
/**
* 任务团队权限服务对象基类
*
* @export
* @class IBIZTASKTEAMAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZTASKTEAMAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZTASKTEAMAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZTASKTEAMAuthServiceBase
*/
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/ibiztaskteam/ibiztaskteam-auth-service.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKTEAMAuthServiceBase
from
'./ibiztaskteam-auth-service-base'
;
/**
* 任务团队权限服务对象
*
* @export
* @class IBIZTASKTEAMAuthService
* @extends {IBIZTASKTEAMAuthServiceBase}
*/
export
default
class
IBIZTASKTEAMAuthService
extends
IBIZTASKTEAMAuthServiceBase
{
/**
* Creates an instance of IBIZTASKTEAMAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/locale/lang/en-US-base.ts
浏览文件 @
16296193
...
...
@@ -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
ibiztaskteam_en_US
from
'@locale/lanres/entities/ibiztaskteam/ibiztaskteam_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'
;
...
...
@@ -34,6 +35,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
ibiztask_en_US
from
'@locale/lanres/entities/ibiztask/ibiztask_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'
;
...
...
@@ -223,7 +225,7 @@ function getAppLocale(){
menuitem20
:
commonLogic
.
appcommonhandle
(
"Data Relation Paging"
,
null
),
menuitem117
:
commonLogic
.
appcommonhandle
(
"Data Relation Bar(up and down relationship)"
,
null
),
menuitem118
:
commonLogic
.
appcommonhandle
(
"Data Relation Bar (pagination relation)"
,
null
),
menuitem116
:
commonLogic
.
appcommonhandle
(
"Data Relation Column
(left right relationship)
"
,
null
),
menuitem116
:
commonLogic
.
appcommonhandle
(
"Data Relation Column"
,
null
),
menuitem158
:
commonLogic
.
appcommonhandle
(
"Panel Class"
,
null
),
menuitem145
:
commonLogic
.
appcommonhandle
(
"Select View Panel"
,
null
),
menuitem17
:
commonLogic
.
appcommonhandle
(
"Wizard Panel"
,
null
),
...
...
@@ -454,6 +456,7 @@ function getAppLocale(){
ibizsample0014
:
ibizsample0014_en_US
(),
ibizsample0001
:
ibizsample0001_en_US
(),
ibizsample0008
:
ibizsample0008_en_US
(),
ibiztaskteam
:
ibiztaskteam_en_US
(),
ibizappeditor
:
ibizappeditor_en_US
(),
ibizbook
:
ibizbook_en_US
(),
ibizsample0015
:
ibizsample0015_en_US
(),
...
...
@@ -475,6 +478,7 @@ function getAppLocale(){
ibizsample0003
:
ibizsample0003_en_US
(),
ibizsample0009
:
ibizsample0009_en_US
(),
ibizsample0013
:
ibizsample0013_en_US
(),
ibiztask
:
ibiztask_en_US
(),
ibizappctrl
:
ibizappctrl_en_US
(),
ibizcustomer
:
ibizcustomer_en_US
(),
ibizcustom
:
ibizcustom_en_US
(),
...
...
app_Web/src/locale/lang/zh-CN-base.ts
浏览文件 @
16296193
...
...
@@ -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
ibiztaskteam_zh_CN
from
'@locale/lanres/entities/ibiztaskteam/ibiztaskteam_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'
;
...
...
@@ -34,6 +35,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
ibiztask_zh_CN
from
'@locale/lanres/entities/ibiztask/ibiztask_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'
;
...
...
@@ -453,6 +455,7 @@ function getAppLocale(){
ibizsample0014
:
ibizsample0014_zh_CN
(),
ibizsample0001
:
ibizsample0001_zh_CN
(),
ibizsample0008
:
ibizsample0008_zh_CN
(),
ibiztaskteam
:
ibiztaskteam_zh_CN
(),
ibizappeditor
:
ibizappeditor_zh_CN
(),
ibizbook
:
ibizbook_zh_CN
(),
ibizsample0015
:
ibizsample0015_zh_CN
(),
...
...
@@ -474,6 +477,7 @@ function getAppLocale(){
ibizsample0003
:
ibizsample0003_zh_CN
(),
ibizsample0009
:
ibizsample0009_zh_CN
(),
ibizsample0013
:
ibizsample0013_zh_CN
(),
ibiztask
:
ibiztask_zh_CN
(),
ibizappctrl
:
ibizappctrl_zh_CN
(),
ibizcustomer
:
ibizcustomer_zh_CN
(),
ibizcustom
:
ibizcustom_zh_CN
(),
...
...
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US_base.ts
浏览文件 @
16296193
...
...
@@ -39,7 +39,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"图书树视图(主状态)"
,
null
),
},
wizardiwithstateview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
状态属性
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
State Properties
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"状态属性"
,
null
),
},
usr3editview
:
{
...
...
@@ -63,7 +63,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"图书列表视图(自动分组)"
,
null
),
},
ruleseditview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
图书
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Form Value Rule
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"图书编辑视图(值规则)"
,
null
),
},
treegridexview
:
{
...
...
@@ -83,7 +83,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"图书数据视图(自定义插件)"
,
null
),
},
usr2editview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体数据选择视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Select View Panel
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体数据选择视图"
,
null
),
},
usr2gridview
:
{
...
...
@@ -155,7 +155,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
},
wizardview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体向导视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
BasicUsage
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体向导视图"
,
null
),
},
haspanelkanbanview
:
{
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US_base.ts
浏览文件 @
16296193
...
...
@@ -40,7 +40,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单表格视图"
,
null
),
},
tabexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体分页导航视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Paging Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体分页导航视图"
,
null
),
},
sf6gridview
:
{
...
...
@@ -60,7 +60,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"实体树表格视图(增强)"
,
null
),
},
dataviewexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体卡片视图导航视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Card Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体卡片视图导航视图"
,
null
),
},
wfstartview
:
{
...
...
@@ -84,11 +84,11 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单工作流表格视图(订单审批:审核中)"
,
null
),
},
seditview3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体编辑视图(分页关系)
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Data Relation Bar (pagination relation)
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体编辑视图(分页关系)"
,
null
),
},
sf1gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
搜索表单内置功能
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Search Form
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"搜索表单内置功能"
,
null
),
},
linechartview
:
{
...
...
@@ -112,11 +112,11 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单编辑视图"
,
null
),
},
gridexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体表格导航视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Grid Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体表格导航视图"
,
null
),
},
treeexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体树导航视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Tree Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体树导航视图"
,
null
),
},
odsp_d10_wfgridview
:
{
...
...
@@ -128,7 +128,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单编辑视图"
,
null
),
},
seditview4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体编辑视图(上下关系)
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Data Relation Bar(up and down relationship)
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体编辑视图(上下关系)"
,
null
),
},
sgridview
:
{
...
...
@@ -156,11 +156,11 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单编辑视图"
,
null
),
},
listexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体列表导航视图
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
List Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体列表导航视图"
,
null
),
},
usr2calendarexpview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
时间轴导航
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Timeline Navigation
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"时间轴导航"
,
null
),
},
piechartview
:
{
...
...
@@ -236,7 +236,7 @@ function getLocaleResourceBase(){
title
:
commonLogic
.
appcommonhandle
(
"订单图表视图"
,
null
),
},
seditview2
:
{
caption
:
commonLogic
.
appcommonhandle
(
"
实体编辑视图(左右关系)
"
,
null
),
caption
:
commonLogic
.
appcommonhandle
(
"
Data Relation Column
"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体编辑视图(左右关系)"
,
null
),
},
usr2editview
:
{
...
...
app_Web/src/locale/lanres/entities/ibiztask/ibiztask_en_US.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASK_en_US_Base
from
'./ibiztask_en_US_base'
;
function
getLocaleResource
(){
const
IBIZTASK_en_US_OwnData
=
{};
const
targetData
=
Object
.
assign
(
IBIZTASK_en_US_Base
(),
IBIZTASK_en_US_OwnData
);
return
targetData
;
}
export
default
getLocaleResource
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztask/ibiztask_en_US_base.ts
0 → 100644
浏览文件 @
16296193
import
commonLogic
from
'@/locale/logic/common/common-logic'
;
function
getLocaleResourceBase
(){
const
data
:
any
=
{
fields
:
{
ibiztaskid
:
commonLogic
.
appcommonhandle
(
"任务标识"
,
null
),
updatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
ibiztaskname
:
commonLogic
.
appcommonhandle
(
"任务名称"
,
null
),
createman
:
commonLogic
.
appcommonhandle
(
"建立人"
,
null
),
updateman
:
commonLogic
.
appcommonhandle
(
"更新人"
,
null
),
createdate
:
commonLogic
.
appcommonhandle
(
"建立时间"
,
null
),
taskteam
:
commonLogic
.
appcommonhandle
(
"任务团队"
,
null
),
},
};
return
data
;
}
export
default
getLocaleResourceBase
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztask/ibiztask_zh_CN.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASK_zh_CN_Base
from
'./ibiztask_zh_CN_base'
;
function
getLocaleResource
(){
const
IBIZTASK_zh_CN_OwnData
=
{};
const
targetData
=
Object
.
assign
(
IBIZTASK_zh_CN_Base
(),
IBIZTASK_zh_CN_OwnData
);
return
targetData
;
}
export
default
getLocaleResource
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztask/ibiztask_zh_CN_base.ts
0 → 100644
浏览文件 @
16296193
import
commonLogic
from
'@/locale/logic/common/common-logic'
;
function
getLocaleResourceBase
(){
const
data
:
any
=
{
fields
:
{
ibiztaskid
:
commonLogic
.
appcommonhandle
(
"任务标识"
,
null
),
updatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
ibiztaskname
:
commonLogic
.
appcommonhandle
(
"任务名称"
,
null
),
createman
:
commonLogic
.
appcommonhandle
(
"建立人"
,
null
),
updateman
:
commonLogic
.
appcommonhandle
(
"更新人"
,
null
),
createdate
:
commonLogic
.
appcommonhandle
(
"建立时间"
,
null
),
taskteam
:
commonLogic
.
appcommonhandle
(
"任务团队"
,
null
),
},
};
return
data
;
}
export
default
getLocaleResourceBase
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztaskteam/ibiztaskteam_en_US.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKTEAM_en_US_Base
from
'./ibiztaskteam_en_US_base'
;
function
getLocaleResource
(){
const
IBIZTASKTEAM_en_US_OwnData
=
{};
const
targetData
=
Object
.
assign
(
IBIZTASKTEAM_en_US_Base
(),
IBIZTASKTEAM_en_US_OwnData
);
return
targetData
;
}
export
default
getLocaleResource
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztaskteam/ibiztaskteam_en_US_base.ts
0 → 100644
浏览文件 @
16296193
import
commonLogic
from
'@/locale/logic/common/common-logic'
;
function
getLocaleResourceBase
(){
const
data
:
any
=
{
fields
:
{
updateman
:
commonLogic
.
appcommonhandle
(
"更新人"
,
null
),
createman
:
commonLogic
.
appcommonhandle
(
"建立人"
,
null
),
ibiztaskteamname
:
commonLogic
.
appcommonhandle
(
"任务团队名称"
,
null
),
ibiztaskteamid
:
commonLogic
.
appcommonhandle
(
"任务团队标识"
,
null
),
createdate
:
commonLogic
.
appcommonhandle
(
"建立时间"
,
null
),
updatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
root
:
commonLogic
.
appcommonhandle
(
"任务ID"
,
null
),
id
:
commonLogic
.
appcommonhandle
(
"任务标识"
,
null
),
},
};
return
data
;
}
export
default
getLocaleResourceBase
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztaskteam/ibiztaskteam_zh_CN.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKTEAM_zh_CN_Base
from
'./ibiztaskteam_zh_CN_base'
;
function
getLocaleResource
(){
const
IBIZTASKTEAM_zh_CN_OwnData
=
{};
const
targetData
=
Object
.
assign
(
IBIZTASKTEAM_zh_CN_Base
(),
IBIZTASKTEAM_zh_CN_OwnData
);
return
targetData
;
}
export
default
getLocaleResource
;
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibiztaskteam/ibiztaskteam_zh_CN_base.ts
0 → 100644
浏览文件 @
16296193
import
commonLogic
from
'@/locale/logic/common/common-logic'
;
function
getLocaleResourceBase
(){
const
data
:
any
=
{
fields
:
{
updateman
:
commonLogic
.
appcommonhandle
(
"更新人"
,
null
),
createman
:
commonLogic
.
appcommonhandle
(
"建立人"
,
null
),
ibiztaskteamname
:
commonLogic
.
appcommonhandle
(
"任务团队名称"
,
null
),
ibiztaskteamid
:
commonLogic
.
appcommonhandle
(
"任务团队标识"
,
null
),
createdate
:
commonLogic
.
appcommonhandle
(
"建立时间"
,
null
),
updatedate
:
commonLogic
.
appcommonhandle
(
"更新时间"
,
null
),
root
:
commonLogic
.
appcommonhandle
(
"任务ID"
,
null
),
id
:
commonLogic
.
appcommonhandle
(
"任务标识"
,
null
),
},
};
return
data
;
}
export
default
getLocaleResourceBase
;
\ No newline at end of file
app_Web/src/mock/entity/ibiztasks/ibiztasks.ts
0 → 100644
浏览文件 @
16296193
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
\/
ibiztasks
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
\/
ibiztasks
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
(
/^
\/
ibiztasks
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
(
/^
\/
ibiztasks
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
(
/^
\/
ibiztasks
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
(
/^
\/
ibiztasks
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
>
=
[
'ibiztaskid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibiztasks
\/([
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
.
ibiztaskid
,
tempValue
.
ibiztaskid
));
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
(
/^
\/
ibiztasks
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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
(
/^
\/
ibiztasks
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztask 方法: 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/ibiztaskteams/ibiztaskteams.ts
0 → 100644
浏览文件 @
16296193
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
\/
ibiztaskteams
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
\/
ibiztaskteams
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
(
/^
\/
ibiztaskteams
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
(
/^
\/
ibiztaskteams
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
(
/^
\/
ibiztaskteams
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
(
/^
\/
ibiztaskteams
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
>
=
[
'ibiztaskteamid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibiztaskteams
\/([
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
.
ibiztaskteamid
,
tempValue
.
ibiztaskteamid
));
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
(
/^
\/
ibiztaskteams
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
(
/^
\/
ibiztaskteams
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibiztaskteam 方法: 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
浏览文件 @
16296193
...
...
@@ -22,6 +22,7 @@ import './entity/ibizorder-types/ibizorder-types';
import
'./entity/ibizsample0014s/ibizsample0014s'
;
import
'./entity/ibizsample0001s/ibizsample0001s'
;
import
'./entity/ibizsample0008s/ibizsample0008s'
;
import
'./entity/ibiztaskteams/ibiztaskteams'
;
import
'./entity/ibizappeditors/ibizappeditors'
;
import
'./entity/ibizbooks/ibizbooks'
;
import
'./entity/ibizsample0015s/ibizsample0015s'
;
...
...
@@ -43,6 +44,7 @@ import './entity/ibizstorages/ibizstorages';
import
'./entity/ibizsample0003s/ibizsample0003s'
;
import
'./entity/ibizsample0009s/ibizsample0009s'
;
import
'./entity/ibizsample0013s/ibizsample0013s'
;
import
'./entity/ibiztasks/ibiztasks'
;
import
'./entity/ibizappctrls/ibizappctrls'
;
import
'./entity/ibizcustomers/ibizcustomers'
;
import
'./entity/ibizcustoms/ibizcustoms'
;
...
...
app_Web/src/service/entity-service-register.ts
浏览文件 @
16296193
...
...
@@ -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
(
'ibiztaskteam'
,
()
=>
import
(
'@/service/ibiztaskteam/ibiztaskteam-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'
));
...
...
@@ -75,6 +76,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
(
'ibiztask'
,
()
=>
import
(
'@/service/ibiztask/ibiztask-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'
));
...
...
app_Web/src/service/ibiztask/ibiztask-service-base.ts
0 → 100644
浏览文件 @
16296193
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 任务服务对象基类
*
* @export
* @class IBIZTASKServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZTASKServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZTASKServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZTASKServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibiztask'
;
this
.
APPDEKEY
=
'ibiztaskid'
;
this
.
APPDENAME
=
'ibiztasks'
;
this
.
APPDETEXT
=
'ibiztaskname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibiztasks/
${
context
.
ibiztask
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibiztasks/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibiztask/ibiztask-service.ts
0 → 100644
浏览文件 @
16296193
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZTASKServiceBase
from
'./ibiztask-service-base'
;
/**
* 任务服务对象
*
* @export
* @class IBIZTASKService
* @extends {IBIZTASKServiceBase}
*/
export
default
class
IBIZTASKService
extends
IBIZTASKServiceBase
{
/**
* Creates an instance of IBIZTASKService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/service/ibiztaskteam/ibiztaskteam-service-base.ts
0 → 100644
浏览文件 @
16296193
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 任务团队服务对象基类
*
* @export
* @class IBIZTASKTEAMServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZTASKTEAMServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZTASKTEAMServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZTASKTEAMServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibiztaskteam'
;
this
.
APPDEKEY
=
'ibiztaskteamid'
;
this
.
APPDENAME
=
'ibiztaskteams'
;
this
.
APPDETEXT
=
'ibiztaskteamname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibiztaskteams/
${
context
.
ibiztaskteam
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZTASKTEAMServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibiztaskteams/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibiztaskteam/ibiztaskteam-service.ts
0 → 100644
浏览文件 @
16296193
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZTASKTEAMServiceBase
from
'./ibiztaskteam-service-base'
;
/**
* 任务团队服务对象
*
* @export
* @class IBIZTASKTEAMService
* @extends {IBIZTASKTEAMServiceBase}
*/
export
default
class
IBIZTASKTEAMService
extends
IBIZTASKTEAMServiceBase
{
/**
* Creates an instance of IBIZTASKTEAMService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibiztask/ibiztask-ui-service-base.ts
0 → 100644
浏览文件 @
16296193
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZTASKService
from
'@/service/ibiztask/ibiztask-service'
;
import
IBIZTASKAuthService
from
'@/authservice/ibiztask/ibiztask-auth-service'
;
/**
* 任务UI服务对象基类
*
* @export
* @class IBIZTASKUIServiceBase
*/
export
default
class
IBIZTASKUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZTASKUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZTASKUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZTASKUIServiceBase
*/
public
dataService
:
IBIZTASKService
=
new
IBIZTASKService
();
/**
* 所有关联视图
*
* @memberof IBIZTASKUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZTASKUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZTASKUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZTASKUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZTASKUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZTASKUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZTASKUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZTASKAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZTASKUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZTASKUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZTASKUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZTASKUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibiztask
:
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 IBIZTASKUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZTASKUIServiceBase
*/
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 IBIZTASKUIServiceBase
*/
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 IBIZTASKUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZTASKUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibiztask/ibiztask-ui-service.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKUIServiceBase
from
'./ibiztask-ui-service-base'
;
/**
* 任务UI服务对象
*
* @export
* @class IBIZTASKUIService
*/
export
default
class
IBIZTASKUIService
extends
IBIZTASKUIServiceBase
{
/**
* Creates an instance of IBIZTASKUIService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibiztaskteam/ibiztaskteam-ui-service-base.ts
0 → 100644
浏览文件 @
16296193
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZTASKTEAMService
from
'@/service/ibiztaskteam/ibiztaskteam-service'
;
import
IBIZTASKTEAMAuthService
from
'@/authservice/ibiztaskteam/ibiztaskteam-auth-service'
;
/**
* 任务团队UI服务对象基类
*
* @export
* @class IBIZTASKTEAMUIServiceBase
*/
export
default
class
IBIZTASKTEAMUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
dataService
:
IBIZTASKTEAMService
=
new
IBIZTASKTEAMService
();
/**
* 所有关联视图
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZTASKTEAMUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZTASKTEAMAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibiztaskteam
:
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 IBIZTASKTEAMUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZTASKTEAMUIServiceBase
*/
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 IBIZTASKTEAMUIServiceBase
*/
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 IBIZTASKTEAMUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZTASKTEAMUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibiztaskteam/ibiztaskteam-ui-service.ts
0 → 100644
浏览文件 @
16296193
import
IBIZTASKTEAMUIServiceBase
from
'./ibiztaskteam-ui-service-base'
;
/**
* 任务团队UI服务对象
*
* @export
* @class IBIZTASKTEAMUIService
*/
export
default
class
IBIZTASKTEAMUIService
extends
IBIZTASKTEAMUIServiceBase
{
/**
* Creates an instance of IBIZTASKTEAMUIService.
*
* @param {*} [opts={}]
* @memberof IBIZTASKTEAMUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ui-service-register.ts
浏览文件 @
16296193
...
...
@@ -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
(
'ibiztaskteam'
,
()
=>
import
(
'@/uiservice/ibiztaskteam/ibiztaskteam-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'
));
...
...
@@ -75,6 +76,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
(
'ibiztask'
,
()
=>
import
(
'@/uiservice/ibiztask/ibiztask-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'
));
...
...
demo-app/demo-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
16296193
...
...
@@ -67,6 +67,10 @@ zuul:
path
:
/ibizsample0008s/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibiztaskteam
:
path
:
/ibiztaskteams/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizappeditor
:
path
:
/ibizappeditors/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
...
...
@@ -151,6 +155,10 @@ zuul:
path
:
/ibizsample0013s/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibiztask
:
path
:
/ibiztasks/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
stripPrefix
:
false
ibizappctrl
:
path
:
/ibizappctrls/**
serviceId
:
${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZTASK.java
0 → 100644
浏览文件 @
16296193
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_IBIZTASK"
,
resultMap
=
"IBIZTASKResultMap"
)
public
class
IBIZTASK
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 任务标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibiztaskid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"ibiztaskid"
)
@JsonProperty
(
"ibiztaskid"
)
private
String
ibiztaskid
;
/**
* 更新时间
*/
@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
;
/**
* 任务名称
*/
@TableField
(
value
=
"ibiztaskname"
)
@JSONField
(
name
=
"ibiztaskname"
)
@JsonProperty
(
"ibiztaskname"
)
private
String
ibiztaskname
;
/**
* 建立人
*/
@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
;
/**
* 任务团队
*/
@TableField
(
value
=
"taskteam"
)
@JSONField
(
name
=
"taskteam"
)
@JsonProperty
(
"taskteam"
)
private
String
taskteam
;
/**
* 设置 [任务名称]
*/
public
void
setIbiztaskname
(
String
ibiztaskname
)
{
this
.
ibiztaskname
=
ibiztaskname
;
this
.
modify
(
"ibiztaskname"
,
ibiztaskname
);
}
/**
* 设置 [任务团队]
*/
public
void
setTaskteam
(
String
taskteam
)
{
this
.
taskteam
=
taskteam
;
this
.
modify
(
"taskteam"
,
taskteam
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"ibiztaskid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/domain/IBIZTASKTEAM.java
0 → 100644
浏览文件 @
16296193
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_IBIZTASKTEAM"
,
resultMap
=
"IBIZTASKTEAMResultMap"
)
public
class
IBIZTASKTEAM
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 更新人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"updateman"
)
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
private
String
updateman
;
/**
* 建立人
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
CREATEMAN
)
@TableField
(
value
=
"createman"
,
fill
=
FieldFill
.
INSERT
)
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
private
String
createman
;
/**
* 任务团队名称
*/
@TableField
(
value
=
"ibiztaskteamname"
)
@JSONField
(
name
=
"ibiztaskteamname"
)
@JsonProperty
(
"ibiztaskteamname"
)
private
String
ibiztaskteamname
;
/**
* 任务团队标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"ibiztaskteamid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"ibiztaskteamid"
)
@JsonProperty
(
"ibiztaskteamid"
)
private
String
ibiztaskteamid
;
/**
* 建立时间
*/
@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
;
/**
* 任务ID
*/
@TableField
(
value
=
"root"
)
@JSONField
(
name
=
"root"
)
@JsonProperty
(
"root"
)
private
String
root
;
/**
* 任务标识
*/
@TableField
(
value
=
"id"
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
sample
.
domain
.
IBIZTASK
taskteam
;
/**
* 设置 [任务团队名称]
*/
public
void
setIbiztaskteamname
(
String
ibiztaskteamname
)
{
this
.
ibiztaskteamname
=
ibiztaskteamname
;
this
.
modify
(
"ibiztaskteamname"
,
ibiztaskteamname
);
}
/**
* 设置 [任务ID]
*/
public
void
setRoot
(
String
root
)
{
this
.
root
=
root
;
this
.
modify
(
"root"
,
root
);
}
/**
* 设置 [任务标识]
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
this
.
modify
(
"id"
,
id
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"ibiztaskteamid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZTASKSearchContext.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASK
;
/**
* 关系型数据实体[IBIZTASK] 查询条件对象
*/
@Slf4j
@Data
public
class
IBIZTASKSearchContext
extends
QueryWrapperContext
<
IBIZTASK
>
{
private
String
n_ibiztaskname_like
;
//[任务名称]
public
void
setN_ibiztaskname_like
(
String
n_ibiztaskname_like
)
{
this
.
n_ibiztaskname_like
=
n_ibiztaskname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibiztaskname_like
)){
this
.
getSearchCond
().
like
(
"ibiztaskname"
,
n_ibiztaskname_like
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"ibiztaskname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/filter/IBIZTASKTEAMSearchContext.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASKTEAM
;
/**
* 关系型数据实体[IBIZTASKTEAM] 查询条件对象
*/
@Slf4j
@Data
public
class
IBIZTASKTEAMSearchContext
extends
QueryWrapperContext
<
IBIZTASKTEAM
>
{
private
String
n_ibiztaskteamname_like
;
//[任务团队名称]
public
void
setN_ibiztaskteamname_like
(
String
n_ibiztaskteamname_like
)
{
this
.
n_ibiztaskteamname_like
=
n_ibiztaskteamname_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_ibiztaskteamname_like
)){
this
.
getSearchCond
().
like
(
"ibiztaskteamname"
,
n_ibiztaskteamname_like
);
}
}
private
String
n_id_eq
;
//[任务标识]
public
void
setN_id_eq
(
String
n_id_eq
)
{
this
.
n_id_eq
=
n_id_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_id_eq
)){
this
.
getSearchCond
().
eq
(
"id"
,
n_id_eq
);
}
}
/**
* 启用快速搜索
*/
@Override
public
void
setQuery
(
String
query
)
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"ibiztaskteamname"
,
query
)
);
}
}
}
demo-core/src/main/java/cn/ibizlab/core/sample/mapper/IBIZTASKMapper.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASK
;
import
cn.ibizlab.core.sample.filter.IBIZTASKSearchContext
;
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
IBIZTASKMapper
extends
BaseMapper
<
IBIZTASK
>
{
Page
<
IBIZTASK
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBIZTASKSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBIZTASK
>
wrapper
);
@Override
IBIZTASK
selectById
(
Serializable
id
);
@Override
int
insert
(
IBIZTASK
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBIZTASK
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
IBIZTASK
entity
,
@Param
(
"ew"
)
Wrapper
<
IBIZTASK
>
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/IBIZTASKTEAMMapper.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASKTEAM
;
import
cn.ibizlab.core.sample.filter.IBIZTASKTEAMSearchContext
;
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
IBIZTASKTEAMMapper
extends
BaseMapper
<
IBIZTASKTEAM
>
{
Page
<
IBIZTASKTEAM
>
searchDefault
(
IPage
page
,
@Param
(
"srf"
)
IBIZTASKTEAMSearchContext
context
,
@Param
(
"ew"
)
Wrapper
<
IBIZTASKTEAM
>
wrapper
);
@Override
IBIZTASKTEAM
selectById
(
Serializable
id
);
@Override
int
insert
(
IBIZTASKTEAM
entity
);
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBIZTASKTEAM
entity
);
@Override
int
update
(
@Param
(
Constants
.
ENTITY
)
IBIZTASKTEAM
entity
,
@Param
(
"ew"
)
Wrapper
<
IBIZTASKTEAM
>
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
);
List
<
IBIZTASKTEAM
>
selectById
(
@Param
(
"ibiztaskid"
)
Serializable
ibiztaskid
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZTASKService.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASK
;
import
cn.ibizlab.core.sample.filter.IBIZTASKSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBIZTASK] 服务对象接口
*/
public
interface
IIBIZTASKService
extends
IService
<
IBIZTASK
>
{
boolean
create
(
IBIZTASK
et
);
void
createBatch
(
List
<
IBIZTASK
>
list
);
boolean
update
(
IBIZTASK
et
);
void
updateBatch
(
List
<
IBIZTASK
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
IBIZTASK
get
(
String
key
);
IBIZTASK
getDraft
(
IBIZTASK
et
);
boolean
checkKey
(
IBIZTASK
et
);
boolean
save
(
IBIZTASK
et
);
void
saveBatch
(
List
<
IBIZTASK
>
list
);
Page
<
IBIZTASK
>
searchDefault
(
IBIZTASKSearchContext
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
<
IBIZTASK
>
getIbiztaskByIds
(
List
<
String
>
ids
);
List
<
IBIZTASK
>
getIbiztaskByEntities
(
List
<
IBIZTASK
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/IIBIZTASKTEAMService.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASKTEAM
;
import
cn.ibizlab.core.sample.filter.IBIZTASKTEAMSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* 实体[IBIZTASKTEAM] 服务对象接口
*/
public
interface
IIBIZTASKTEAMService
extends
IService
<
IBIZTASKTEAM
>
{
boolean
create
(
IBIZTASKTEAM
et
);
void
createBatch
(
List
<
IBIZTASKTEAM
>
list
);
boolean
update
(
IBIZTASKTEAM
et
);
void
updateBatch
(
List
<
IBIZTASKTEAM
>
list
);
boolean
remove
(
String
key
);
void
removeBatch
(
Collection
<
String
>
idList
);
IBIZTASKTEAM
get
(
String
key
);
IBIZTASKTEAM
getDraft
(
IBIZTASKTEAM
et
);
boolean
checkKey
(
IBIZTASKTEAM
et
);
boolean
save
(
IBIZTASKTEAM
et
);
void
saveBatch
(
List
<
IBIZTASKTEAM
>
list
);
Page
<
IBIZTASKTEAM
>
searchDefault
(
IBIZTASKTEAMSearchContext
context
);
List
<
IBIZTASKTEAM
>
selectById
(
String
ibiztaskid
);
void
removeById
(
String
ibiztaskid
);
/**
*自定义查询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
<
IBIZTASKTEAM
>
getIbiztaskteamByIds
(
List
<
String
>
ids
);
List
<
IBIZTASKTEAM
>
getIbiztaskteamByEntities
(
List
<
IBIZTASKTEAM
>
entities
);
}
demo-core/src/main/java/cn/ibizlab/core/sample/service/impl/IBIZTASKServiceImpl.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASK
;
import
cn.ibizlab.core.sample.filter.IBIZTASKSearchContext
;
import
cn.ibizlab.core.sample.service.IIBIZTASKService
;
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.IBIZTASKMapper
;
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
(
"IBIZTASKServiceImpl"
)
public
class
IBIZTASKServiceImpl
extends
ServiceImpl
<
IBIZTASKMapper
,
IBIZTASK
>
implements
IIBIZTASKService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
sample
.
service
.
IIBIZTASKTEAMService
ibiztaskteamService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
IBIZTASK
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbiztaskid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
IBIZTASK
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBIZTASK
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibiztaskid"
,
et
.
getIbiztaskid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbiztaskid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
IBIZTASK
>
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
IBIZTASK
get
(
String
key
)
{
IBIZTASK
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBIZTASK
();
et
.
setIbiztaskid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
IBIZTASK
getDraft
(
IBIZTASK
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
IBIZTASK
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbiztaskid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbiztaskid
())));
}
@Override
@Transactional
public
boolean
save
(
IBIZTASK
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
IBIZTASK
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
IBIZTASK
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
IBIZTASK
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
IBIZTASK
>
searchDefault
(
IBIZTASKSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBIZTASK
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBIZTASK
>(
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
<
IBIZTASK
>
getIbiztaskByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
IBIZTASK
>
getIbiztaskByEntities
(
List
<
IBIZTASK
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
IBIZTASK
entity
:
entities
){
Serializable
id
=
entity
.
getIbiztaskid
();
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/IBIZTASKTEAMServiceImpl.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASKTEAM
;
import
cn.ibizlab.core.sample.filter.IBIZTASKTEAMSearchContext
;
import
cn.ibizlab.core.sample.service.IIBIZTASKTEAMService
;
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.IBIZTASKTEAMMapper
;
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
(
"IBIZTASKTEAMServiceImpl"
)
public
class
IBIZTASKTEAMServiceImpl
extends
ServiceImpl
<
IBIZTASKTEAMMapper
,
IBIZTASKTEAM
>
implements
IIBIZTASKTEAMService
{
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
sample
.
service
.
IIBIZTASKService
ibiztaskService
;
protected
int
batchSize
=
500
;
@Override
@Transactional
public
boolean
create
(
IBIZTASKTEAM
et
)
{
if
(!
this
.
retBool
(
this
.
baseMapper
.
insert
(
et
)))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbiztaskteamid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
createBatch
(
List
<
IBIZTASKTEAM
>
list
)
{
this
.
saveBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
boolean
update
(
IBIZTASKTEAM
et
)
{
if
(!
update
(
et
,
(
Wrapper
)
et
.
getUpdateWrapper
(
true
).
eq
(
"ibiztaskteamid"
,
et
.
getIbiztaskteamid
())))
{
return
false
;
}
CachedBeanCopier
.
copy
(
get
(
et
.
getIbiztaskteamid
()),
et
);
return
true
;
}
@Override
@Transactional
public
void
updateBatch
(
List
<
IBIZTASKTEAM
>
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
IBIZTASKTEAM
get
(
String
key
)
{
IBIZTASKTEAM
et
=
getById
(
key
);
if
(
et
==
null
){
et
=
new
IBIZTASKTEAM
();
et
.
setIbiztaskteamid
(
key
);
}
else
{
}
return
et
;
}
@Override
public
IBIZTASKTEAM
getDraft
(
IBIZTASKTEAM
et
)
{
return
et
;
}
@Override
public
boolean
checkKey
(
IBIZTASKTEAM
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getIbiztaskteamid
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getIbiztaskteamid
())));
}
@Override
@Transactional
public
boolean
save
(
IBIZTASKTEAM
et
)
{
if
(!
saveOrUpdate
(
et
))
{
return
false
;
}
return
true
;
}
@Override
@Transactional
public
boolean
saveOrUpdate
(
IBIZTASKTEAM
et
)
{
if
(
null
==
et
)
{
return
false
;
}
else
{
return
checkKey
(
et
)
?
this
.
update
(
et
)
:
this
.
create
(
et
);
}
}
@Override
@Transactional
public
boolean
saveBatch
(
Collection
<
IBIZTASKTEAM
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
return
true
;
}
@Override
@Transactional
public
void
saveBatch
(
List
<
IBIZTASKTEAM
>
list
)
{
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
public
List
<
IBIZTASKTEAM
>
selectById
(
String
ibiztaskid
)
{
return
baseMapper
.
selectById
(
ibiztaskid
);
}
@Override
public
void
removeById
(
String
ibiztaskid
)
{
this
.
remove
(
new
QueryWrapper
<
IBIZTASKTEAM
>().
eq
(
"id"
,
ibiztaskid
));
}
/**
* 查询集合 数据集
*/
@Override
public
Page
<
IBIZTASKTEAM
>
searchDefault
(
IBIZTASKTEAMSearchContext
context
)
{
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
IBIZTASKTEAM
>
pages
=
baseMapper
.
searchDefault
(
context
.
getPages
(),
context
,
context
.
getSelectCond
());
return
new
PageImpl
<
IBIZTASKTEAM
>(
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
<
IBIZTASKTEAM
>
getIbiztaskteamByIds
(
List
<
String
>
ids
)
{
return
this
.
listByIds
(
ids
);
}
@Override
public
List
<
IBIZTASKTEAM
>
getIbiztaskteamByEntities
(
List
<
IBIZTASKTEAM
>
entities
)
{
List
ids
=
new
ArrayList
();
for
(
IBIZTASKTEAM
entity
:
entities
){
Serializable
id
=
entity
.
getIbiztaskteamid
();
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
浏览文件 @
16296193
...
...
@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-105
0
-7"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizbook-105
2
-7"
>
<createTable
tableName=
"T_IBIZBOOK"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -344,7 +344,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-5
69
-14"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-5
80
-14"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
@@ -394,7 +394,7 @@
<!--输出实体[IBIZORDERDETAIL]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-14
7
-15"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorderdetail-14
8
-15"
>
<createTable
tableName=
"T_IBIZORDERDETAIL"
>
<column
name=
"IBIZORDERDETAILNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -1261,8 +1261,54 @@
</changeSet>
<!--输出实体[IBIZTASK]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibiztask-6-43"
>
<createTable
tableName=
"T_IBIZTASK"
>
<column
name=
"IBIZTASKID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBIZTASK_IBIZTASKID"
/>
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"IBIZTASKNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"TASKTEAM"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[IBIZTASKTEAM]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibiztaskteam-8-44"
>
<createTable
tableName=
"T_IBIZTASKTEAM"
>
<column
name=
"UPDATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
<column
name=
"IBIZTASKTEAMNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
<column
name=
"IBIZTASKTEAMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBIZTASKTEAM_IBIZTASKTEAMID"
/>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"UPDATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
<column
name=
"ROOT"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"ID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
<!--输出实体[IBIZUNIPRODUCT]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizuniproduct-11-4
3
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizuniproduct-11-4
5
"
>
<createTable
tableName=
"T_IBIZUNIPRODUCT"
>
<column
name=
"UNITPRICE"
remarks=
""
type=
"FLOAT"
>
</column>
...
...
@@ -1288,7 +1334,7 @@
<!--输出实体[IBIZVIEWMSG]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizviewmsg-3-4
4
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizviewmsg-3-4
6
"
>
<createTable
tableName=
"T_IBIZVIEWMSG"
>
<column
name=
"IBIZVIEWMSGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_IBIZVIEWMSG_IBIZVIEWMSGID"
/>
...
...
@@ -1308,7 +1354,7 @@
<!--输出实体[MICROCOMPONENT]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-microcomponent-90-4
5
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-microcomponent-90-4
7
"
>
<createTable
tableName=
"T_MICROCOMPONENT"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
...
...
@@ -1425,7 +1471,7 @@
<!--输出实体[IBIZQJ]外键关系 -->
<!--输出实体[IBIZSAMPLE]外键关系 -->
<!--输出实体[IBIZSAMPLE0001]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0001-441-4
6
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0001-441-4
8
"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0002ID"
baseTableName=
"T_IBIZSAMPLE0001"
constraintName=
"DER1N_IBIZSAMPLE0001_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0002ID"
referencedTableName=
"T_IBIZSAMPLE0002"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSAMPLE0002]外键关系 -->
...
...
@@ -1434,7 +1480,7 @@
<!--输出实体[IBIZSAMPLE0005]外键关系 -->
<!--输出实体[IBIZSAMPLE0006]外键关系 -->
<!--输出实体[IBIZSAMPLE0007]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0007-4-4
7
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0007-4-4
9
"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0006ID"
baseTableName=
"T_IBIZSAMPLE0007"
constraintName=
"DER1N_IBIZSAMPLE0007_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0006ID"
referencedTableName=
"T_IBIZSAMPLE0006"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSAMPLE0008]外键关系 -->
...
...
@@ -1450,13 +1496,18 @@
<!--输出实体[IBIZSAMPLE0018]外键关系 -->
<!--输出实体[IBIZSAMPLE0019]外键关系 -->
<!--输出实体[IBIZSAMPLE0020]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0020-4-
48
"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibizsample0020-4-
50
"
>
<addForeignKeyConstraint
baseColumnNames=
"IBIZSAMPLE0019ID"
baseTableName=
"T_IBIZSAMPLE0020"
constraintName=
"DER1N_IBIZSAMPLE0020_IBIZSAMPL"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZSAMPLE0019ID"
referencedTableName=
"T_IBIZSAMPLE0019"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZSAMPLE0021]外键关系 -->
<!--输出实体[IBIZSOFTWARESUIT]外键关系 -->
<!--输出实体[IBIZSTORAGE]外键关系 -->
<!--输出实体[IBIZSUPPLIER]外键关系 -->
<!--输出实体[IBIZTASK]外键关系 -->
<!--输出实体[IBIZTASKTEAM]外键关系 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"fk-ibiztaskteam-8-51"
>
<addForeignKeyConstraint
baseColumnNames=
"ID"
baseTableName=
"T_IBIZTASKTEAM"
constraintName=
"DER1N_IBIZTASKTEAM_IBIZTASK_ID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"IBIZTASKID"
referencedTableName=
"T_IBIZTASK"
validate=
"true"
/>
</changeSet>
<!--输出实体[IBIZUNIPRODUCT]外键关系 -->
<!--输出实体[IBIZVIEWMSG]外键关系 -->
<!--输出实体[MICROCOMPONENT]外键关系 -->
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
16296193
...
...
@@ -37,13 +37,13 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-5
69
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-5
80
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDER"
>
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
</changeSet>
<!--输出实体[IBIZORDERDETAIL]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-14
7
-9"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorderdetail-14
8
-9"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDERDETAIL"
>
<![CDATA[ SELECT t1.[QUANTITY]*t11.[UNITPRICE] AS [AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[IBIZORDERDETAILA], t1.[IBIZORDERDETAILID], t1.[IBIZORDERDETAILNAME], t1.[IBIZORDERID], t21.[IBIZORDERNAME], t1.[IBIZUNIPRODUCTID], t11.[IBIZUNIPRODUCTNAME], t21.[ORDERUID], t1.[QUANTITY], t11.[UNIT], t11.[UNITPRICE], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZORDERDETAIL] t1 LEFT JOIN T_IBIZUNIPRODUCT t11 ON t1.IBIZUNIPRODUCTID = t11.IBIZUNIPRODUCTID LEFT JOIN T_IBIZORDER t21 ON t1.IBIZORDERID = t21.IBIZORDERID ]]>
</createView>
...
...
demo-core/src/main/resources/mapper/sample/ibiztask/IBIZTASKMapper.xml
0 → 100644
浏览文件 @
16296193
<?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.IBIZTASKMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZTASKResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKID`, t1.`IBIZTASKNAME`, t1.`TASKTEAM`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASK` t1 ) t1 where ibiztaskid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZTASKResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZTASK"
autoMapping=
"true"
>
<id
property=
"ibiztaskid"
column=
"ibiztaskid"
/>
<!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZTASKSearchContext"
resultMap=
"IBIZTASKResultMap"
>
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.`IBIZTASKID`, t1.`IBIZTASKNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASK` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKID`, t1.`IBIZTASKNAME`, t1.`TASKTEAM`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASK` t1
]]>
</sql>
</mapper>
demo-core/src/main/resources/mapper/sample/ibiztaskteam/IBIZTASKTEAMMapper.xml
0 → 100644
浏览文件 @
16296193
<?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.IBIZTASKTEAMMapper"
>
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select
id=
"selectById"
resultMap=
"IBIZTASKTEAMResultMap"
databaseId=
"mysql"
>
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1 ) t1 where ibiztaskteamid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap
id=
"IBIZTASKTEAMResultMap"
type=
"cn.ibizlab.core.sample.domain.IBIZTASKTEAM"
autoMapping=
"true"
>
<id
property=
"ibiztaskteamid"
column=
"ibiztaskteamid"
/>
<!--主键字段映射-->
<result
property=
"id"
column=
"id"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association
property=
"taskteam"
javaType=
"cn.ibizlab.core.sample.domain.IBIZTASK"
column=
"id"
select=
"cn.ibizlab.core.sample.mapper.IBIZTASKMapper.selectById"
fetchType=
"lazy"
></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_IBIZTASKTEAM_IBIZTASK_ID] -->
<select
id=
"selectById"
resultMap=
"IBIZTASKTEAMResultMap"
>
select t1.* from (
<include
refid=
"Default"
/>
) t1
where id=#{ibiztaskid}
</select>
<!--数据集合[Default]-->
<select
id=
"searchDefault"
parameterType=
"cn.ibizlab.core.sample.filter.IBIZTASKTEAMSearchContext"
resultMap=
"IBIZTASKTEAMResultMap"
>
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.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1
]]>
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`IBIZTASKTEAMID`, t1.`IBIZTASKTEAMNAME`, t1.`ROOT`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_IBIZTASKTEAM` t1
]]>
</sql>
</mapper>
demo-core/src/main/resources/permission/systemResource.json
浏览文件 @
16296193
...
...
@@ -337,6 +337,22 @@
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
},
{
"id"
:
"createman"
,
"name"
:
"创建人"
}]
}
,
{
"dename"
:
"IBIZTASK"
,
"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"
:
"IBIZTASKTEAM"
,
"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"
:
"IBIZUNIProduct"
,
"delogicname"
:
"统一产品(索引主实体)"
,
"sysmoudle"
:{
"id"
:
"SAMPLE"
,
"name"
:
"示例"
},
...
...
demo-core/src/main/resources/sysmodel/DemoSys.json
浏览文件 @
16296193
...
...
@@ -8568,6 +8568,278 @@
],
"parentEntitys"
:[
]
}
,
{
"entity_name"
:
"IBIZTASK"
,
"logic_name"
:
"任务"
,
"code_name"
:
"IBIZTASK"
,
"table_name"
:
"T_IBIZTASK"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
"module_id"
:
"Sample"
,
"module_name"
:
"示例"
,
"fields"
:[
{
"fieldname"
:
"IBIZTASKID"
,
"codename"
:
"IBIZTASKId"
,
"field_logic_name"
:
"任务标识"
,
"entity_name"
:
"IBIZTASK"
,
"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"
:
"IBIZTASK"
,
"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"
:
"IBIZTASKNAME"
,
"codename"
:
"IBIZTASKName"
,
"field_logic_name"
:
"任务名称"
,
"entity_name"
:
"IBIZTASK"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
1
},
{
"fieldname"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"IBIZTASK"
,
"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"
:
"IBIZTASK"
,
"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"
:
"IBIZTASK"
,
"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"
:
"TASKTEAM"
,
"codename"
:
"Taskteam"
,
"field_logic_name"
:
"任务团队"
,
"entity_name"
:
"IBIZTASK"
,
"field_type"
:
"LONGTEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"TEXT"
,
"data_length"
:
1048576
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
{
"name"
:
"DER1N_IBIZTASKTEAM_IBIZTASK_ID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"TaskTeam"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"ref_entity_name"
:
"IBIZTASK"
}
],
"parentEntitys"
:[
]
}
,
{
"entity_name"
:
"IBIZTASKTEAM"
,
"logic_name"
:
"任务团队"
,
"code_name"
:
"IBIZTASKTEAM"
,
"table_name"
:
"T_IBIZTASKTEAM"
,
"system_id"
:
"DemoSys"
,
"system_name"
:
"DemoSys"
,
"module_id"
:
"Sample"
,
"module_name"
:
"示例"
,
"fields"
:[
{
"fieldname"
:
"UPDATEMAN"
,
"codename"
:
"UpdateMan"
,
"field_logic_name"
:
"更新人"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"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"
:
"CREATEMAN"
,
"codename"
:
"CreateMan"
,
"field_logic_name"
:
"建立人"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"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"
:
"IBIZTASKTEAMNAME"
,
"codename"
:
"IBIZTASKTEAMName"
,
"field_logic_name"
:
"任务团队名称"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
200
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
1
},
{
"fieldname"
:
"IBIZTASKTEAMID"
,
"codename"
:
"IBIZTASKTEAMId"
,
"field_logic_name"
:
"任务团队标识"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"field_type"
:
"GUID"
,
"nullable"
:
0
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
1
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"CREATEDATE"
,
"codename"
:
"CreateDate"
,
"field_logic_name"
:
"建立时间"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"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"
:
"IBIZTASKTEAM"
,
"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"
:
"ROOT"
,
"codename"
:
"Root"
,
"field_logic_name"
:
"任务ID"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
},
{
"fieldname"
:
"ID"
,
"codename"
:
"Id"
,
"field_logic_name"
:
"任务标识"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"ref_de"
:
"IBIZTASK"
,
"ref_field_name"
:
"IBIZTASKID"
,
"relation_name"
:
"DER1N_IBIZTASKTEAM_IBIZTASK_ID"
,
"relation_codename"
:
"TaskTeam"
,
"field_type"
:
"PICKUP"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
1000
,
"major_field"
:
0
}
],
"subEntitys"
:[
],
"parentEntitys"
:[
{
"name"
:
"DER1N_IBIZTASKTEAM_IBIZTASK_ID"
,
"relation_type"
:
"DER1N"
,
"code_name"
:
"TaskTeam"
,
"entity_name"
:
"IBIZTASKTEAM"
,
"ref_entity_name"
:
"IBIZTASK"
}
]
}
,
{
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZTASKDTO.java
0 → 100644
浏览文件 @
16296193
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对象[IBIZTASKDTO]
*/
@Data
public
class
IBIZTASKDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [IBIZTASKID]
*
*/
@JSONField
(
name
=
"ibiztaskid"
)
@JsonProperty
(
"ibiztaskid"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibiztaskid
;
/**
* 属性 [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
;
/**
* 属性 [IBIZTASKNAME]
*
*/
@JSONField
(
name
=
"ibiztaskname"
)
@JsonProperty
(
"ibiztaskname"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
ibiztaskname
;
/**
* 属性 [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
;
/**
* 属性 [TASKTEAM]
*
*/
@JSONField
(
name
=
"taskteam"
)
@JsonProperty
(
"taskteam"
)
@Size
(
min
=
0
,
max
=
1048576
,
message
=
"内容长度必须小于等于[1048576]"
)
private
String
taskteam
;
/**
* 设置 [IBIZTASKNAME]
*/
public
void
setIbiztaskname
(
String
ibiztaskname
){
this
.
ibiztaskname
=
ibiztaskname
;
this
.
modify
(
"ibiztaskname"
,
ibiztaskname
);
}
/**
* 设置 [TASKTEAM]
*/
public
void
setTaskteam
(
String
taskteam
){
this
.
taskteam
=
taskteam
;
this
.
modify
(
"taskteam"
,
taskteam
);
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/dto/IBIZTASKTEAMDTO.java
0 → 100644
浏览文件 @
16296193
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对象[IBIZTASKTEAMDTO]
*/
@Data
public
class
IBIZTASKTEAMDTO
extends
DTOBase
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField
(
name
=
"updateman"
)
@JsonProperty
(
"updateman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
updateman
;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField
(
name
=
"createman"
)
@JsonProperty
(
"createman"
)
@Size
(
min
=
0
,
max
=
60
,
message
=
"内容长度必须小于等于[60]"
)
private
String
createman
;
/**
* 属性 [IBIZTASKTEAMNAME]
*
*/
@JSONField
(
name
=
"ibiztaskteamname"
)
@JsonProperty
(
"ibiztaskteamname"
)
@Size
(
min
=
0
,
max
=
200
,
message
=
"内容长度必须小于等于[200]"
)
private
String
ibiztaskteamname
;
/**
* 属性 [IBIZTASKTEAMID]
*
*/
@JSONField
(
name
=
"ibiztaskteamid"
)
@JsonProperty
(
"ibiztaskteamid"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
ibiztaskteamid
;
/**
* 属性 [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
;
/**
* 属性 [ROOT]
*
*/
@JSONField
(
name
=
"root"
)
@JsonProperty
(
"root"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
root
;
/**
* 属性 [ID]
*
*/
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
id
;
/**
* 设置 [IBIZTASKTEAMNAME]
*/
public
void
setIbiztaskteamname
(
String
ibiztaskteamname
){
this
.
ibiztaskteamname
=
ibiztaskteamname
;
this
.
modify
(
"ibiztaskteamname"
,
ibiztaskteamname
);
}
/**
* 设置 [ROOT]
*/
public
void
setRoot
(
String
root
){
this
.
root
=
root
;
this
.
modify
(
"root"
,
root
);
}
/**
* 设置 [ID]
*/
public
void
setId
(
String
id
){
this
.
id
=
id
;
this
.
modify
(
"id"
,
id
);
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/mapping/IBIZTASKMapping.java
0 → 100644
浏览文件 @
16296193
package
cn
.
ibizlab
.
demoapi
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.sample.domain.IBIZTASK
;
import
cn.ibizlab.demoapi.dto.IBIZTASKDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"DemoAPIIBIZTASKMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBIZTASKMapping
extends
MappingBase
<
IBIZTASKDTO
,
IBIZTASK
>
{
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/mapping/IBIZTASKTEAMMapping.java
0 → 100644
浏览文件 @
16296193
package
cn
.
ibizlab
.
demoapi
.
mapping
;
import
org.mapstruct.*
;
import
cn.ibizlab.core.sample.domain.IBIZTASKTEAM
;
import
cn.ibizlab.demoapi.dto.IBIZTASKTEAMDTO
;
import
cn.ibizlab.util.domain.MappingBase
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
{},
implementationName
=
"DemoAPIIBIZTASKTEAMMapping"
,
nullValuePropertyMappingStrategy
=
NullValuePropertyMappingStrategy
.
IGNORE
,
nullValueCheckStrategy
=
NullValueCheckStrategy
.
ALWAYS
)
public
interface
IBIZTASKTEAMMapping
extends
MappingBase
<
IBIZTASKTEAMDTO
,
IBIZTASKTEAM
>
{
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZTASKResource.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASK
;
import
cn.ibizlab.core.sample.service.IIBIZTASKService
;
import
cn.ibizlab.core.sample.filter.IBIZTASKSearchContext
;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"任务"
})
@RestController
(
"DemoAPI-ibiztask"
)
@RequestMapping
(
""
)
public
class
IBIZTASKResource
{
@Autowired
public
IIBIZTASKService
ibiztaskService
;
@Autowired
@Lazy
public
IBIZTASKMapping
ibiztaskMapping
;
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZTASKTEAMResource.java
0 → 100644
浏览文件 @
16296193
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.IBIZTASKTEAM
;
import
cn.ibizlab.core.sample.service.IIBIZTASKTEAMService
;
import
cn.ibizlab.core.sample.filter.IBIZTASKTEAMSearchContext
;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"任务团队"
})
@RestController
(
"DemoAPI-ibiztaskteam"
)
@RequestMapping
(
""
)
public
class
IBIZTASKTEAMResource
{
@Autowired
public
IIBIZTASKTEAMService
ibiztaskteamService
;
@Autowired
@Lazy
public
IBIZTASKTEAMMapping
ibiztaskteamMapping
;
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录