Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
36daf359
提交
36daf359
编写于
2月 03, 2021
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码 [ibz-ou,统一组织单位]
上级
fe0e498f
变更
30
展开全部
显示空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
814 行增加
和
428 行删除
+814
-428
app-data-upload.vue
app_web/src/components/app-data-upload/app-data-upload.vue
+8
-2
app-message-popover.vue
...rc/components/app-message-popover/app-message-popover.vue
+118
-116
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+2
-2
dropdown-list.vue
app_web/src/components/dropdown-list/dropdown-list.vue
+3
-1
environment.ts
app_web/src/environments/environment.ts
+2
-0
sys-department-tree-exp-view.less
...epartment-tree-exp-view/sys-department-tree-exp-view.less
+1
-0
sys-organization-tree-exp-view.less
...ization-tree-exp-view/sys-organization-tree-exp-view.less
+1
-0
main-form-base.vue
...b/src/widgets/sys-department/main-form/main-form-base.vue
+2
-2
main-form-base.vue
...src/widgets/sys-organization/main-form/main-form-base.vue
+2
-2
SysDeptMemberServiceImpl.java
...bizlab/core/ou/service/impl/SysDeptMemberServiceImpl.java
+0
-5
ISysDeptMembersaveDeptMemberLogic.java
...e/ou/service/logic/ISysDeptMembersaveDeptMemberLogic.java
+1
-12
ISysEmployeesaveDeptMemberLogic.java
...ore/ou/service/logic/ISysEmployeesaveDeptMemberLogic.java
+1
-12
SysDeptMembersaveDeptMemberLogicImpl.java
...vice/logic/impl/SysDeptMembersaveDeptMemberLogicImpl.java
+2
-55
SysEmployeesaveDeptMemberLogicImpl.java
...ervice/logic/impl/SysEmployeesaveDeptMemberLogicImpl.java
+2
-58
DroolsAutoConfiguration.java
.../cn/ibizlab/core/util/config/DroolsAutoConfiguration.java
+6
-89
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+19
-19
exec.bpmn
...in/resources/rules/SysDeptMember/savedeptmember/exec.bpmn
+15
-0
SysDeptMembersaveDeptMemberRuleFlow.bpmn
.../resources/rules/SysDeptMembersaveDeptMemberRuleFlow.bpmn
+5
-1
SysEmployeesaveDeptMemberRuleFlow.bpmn
...in/resources/rules/SysEmployeesaveDeptMemberRuleFlow.bpmn
+6
-1
pom.xml
ibzou-dependencies/pom.xml
+11
-0
SysDepartmentResource.java
.../main/java/cn/ibizlab/api/rest/SysDepartmentResource.java
+8
-5
SysDeptMemberResource.java
.../main/java/cn/ibizlab/api/rest/SysDeptMemberResource.java
+23
-15
SysEmployeeResource.java
...rc/main/java/cn/ibizlab/api/rest/SysEmployeeResource.java
+14
-9
SysOrganizationResource.java
...ain/java/cn/ibizlab/api/rest/SysOrganizationResource.java
+5
-3
SysPostResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysPostResource.java
+5
-3
SysTeamMemberResource.java
.../main/java/cn/ibizlab/api/rest/SysTeamMemberResource.java
+20
-13
SysTeamResource.java
...pi/src/main/java/cn/ibizlab/api/rest/SysTeamResource.java
+5
-3
pom.xml
ibzou-util/pom.xml
+34
-0
DELogicAspect.java
...l/src/main/java/cn/ibizlab/util/aspect/DELogicAspect.java
+474
-0
DELogic.java
ibzou-util/src/main/java/cn/ibizlab/util/domain/DELogic.java
+19
-0
未找到文件。
app_web/src/components/app-data-upload/app-data-upload.vue
浏览文件 @
36daf359
...
@@ -52,6 +52,7 @@ import CodeListService from "@/codelist/codelist-service";
...
@@ -52,6 +52,7 @@ import CodeListService from "@/codelist/codelist-service";
import
EntityService
from
'@/service/entity-service'
;
import
EntityService
from
'@/service/entity-service'
;
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
'vue-property-decorator'
;
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
}
from
'vue-property-decorator'
;
import
{
Environment
}
from
'@/environments/environment'
;
import
{
Environment
}
from
'@/environments/environment'
;
import
moment
from
"moment"
;
@
Component
({
@
Component
({
})
})
...
@@ -395,11 +396,11 @@ export default class AppDataUploadView extends Vue {
...
@@ -395,11 +396,11 @@ export default class AppDataUploadView extends Vue {
let
reader
=
new
FileReader
();
let
reader
=
new
FileReader
();
reader
.
onload
=
(
e
:
any
)
=>
{
reader
.
onload
=
(
e
:
any
)
=>
{
let
data
=
e
.
target
.
result
;
let
data
=
e
.
target
.
result
;
this
.
workBookData
=
XLSX
.
read
(
data
,
{
type
:
'binary'
});
this
.
workBookData
=
XLSX
.
read
(
data
,
{
type
:
'binary'
,
cellDates
:
true
});
let
xlsxData
=
XLSX
.
utils
.
sheet_to_json
(
this
.
workBookData
.
Sheets
[
this
.
workBookData
.
SheetNames
[
0
]]);
let
xlsxData
=
XLSX
.
utils
.
sheet_to_json
(
this
.
workBookData
.
Sheets
[
this
.
workBookData
.
SheetNames
[
0
]]);
let
list1
=
this
.
getFirstRow
(
this
.
workBookData
);
let
list1
=
this
.
getFirstRow
(
this
.
workBookData
);
xlsxData
=
this
.
AddXlsxData
(
xlsxData
,
list1
);
xlsxData
=
this
.
AddXlsxData
(
xlsxData
,
list1
);
this
.
importDataArray
=
JSON
.
parse
(
JSON
.
stringify
(
xlsxData
)
);
this
.
importDataArray
=
this
.
$util
.
deepCopy
(
xlsxData
);
(
this
.
$refs
.
inputUpLoad
as
any
).
value
=
''
;
(
this
.
$refs
.
inputUpLoad
as
any
).
value
=
''
;
};
};
reader
.
readAsBinaryString
(
f
);
reader
.
readAsBinaryString
(
f
);
...
@@ -505,6 +506,11 @@ export default class AppDataUploadView extends Vue {
...
@@ -505,6 +506,11 @@ export default class AppDataUploadView extends Vue {
data
.
forEach
((
item
:
any
)
=>
{
data
.
forEach
((
item
:
any
)
=>
{
let
curObject
:
any
=
{};
let
curObject
:
any
=
{};
Object
.
keys
(
item
).
forEach
((
ele
:
any
)
=>
{
Object
.
keys
(
item
).
forEach
((
ele
:
any
)
=>
{
// todo XLSX读取时间为国际时间(东8区)+8H转为标准时间
if
(
item
[
ele
]
instanceof
Date
){
const
tempDate
:
Date
=
item
[
ele
];
item
[
ele
]
=
moment
(
tempDate
).
add
(
8
,
'h'
).
format
(
"YYYY-MM-DD HH:mm:ss"
);
}
if
(
this
.
allFieldMap
.
get
(
ele
).
codelist
){
if
(
this
.
allFieldMap
.
get
(
ele
).
codelist
){
let
codelistTag
:
string
=
this
.
allFieldMap
.
get
(
ele
).
codelist
.
tag
;
let
codelistTag
:
string
=
this
.
allFieldMap
.
get
(
ele
).
codelist
.
tag
;
let
codelistIsNumber
:
boolean
=
this
.
allFieldMap
.
get
(
ele
).
codelist
.
isnumber
;
let
codelistIsNumber
:
boolean
=
this
.
allFieldMap
.
get
(
ele
).
codelist
.
isnumber
;
...
...
app_web/src/components/app-message-popover/app-message-popover.vue
浏览文件 @
36daf359
...
@@ -84,13 +84,12 @@
...
@@ -84,13 +84,12 @@
</template>
</template>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Model
,
Emit
}
from
"vue-property-decorator"
;
import
{
Vue
,
Component
,
Prop
,
Model
,
Emit
}
from
"vue-property-decorator"
;
import
{
Subject
}
from
"rxjs"
;
import
{
Environment
}
from
'@/environments/environment'
;
import
{
Environment
}
from
'@/environments/environment'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
@
Component
({})
@
Component
({})
export
default
class
AppMessagePopover
extends
Vue
{
export
default
class
AppMessagePopover
extends
Vue
{
// 是否显示小圆点
// 是否显示小圆点
public
showIsDot
:
any
=
false
;
public
showIsDot
:
any
=
false
;
...
@@ -118,6 +117,9 @@
...
@@ -118,6 +117,9 @@
* vue挂载
* vue挂载
*/
*/
mounted
():
void
{
mounted
():
void
{
if
(
!
Environment
.
workflow
){
return
;
}
// 首次获取待办列表
// 首次获取待办列表
this
.
getMyTasks
();
this
.
getMyTasks
();
// 定时器:每隔1分钟重新获取待办列表
// 定时器:每隔1分钟重新获取待办列表
...
@@ -217,7 +219,7 @@
...
@@ -217,7 +219,7 @@
this
.
msgShowCnt
=
this
.
myMsgs
.
length
>=
10
?
10
:
this
.
myMsgs
.
length
;
this
.
msgShowCnt
=
this
.
myMsgs
.
length
>=
10
?
10
:
this
.
myMsgs
.
length
;
}
}
}
}
</
script
>
</
script
>
<
style
lang=
'less'
>
<
style
lang=
'less'
>
...
...
app_web/src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
36daf359
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
:filterable=
"filterable"
:filterable=
"filterable"
@
on-open-change=
"onClick"
@
on-open-change=
"onClick"
:placeholder=
"placeholder?placeholder:$t('components.dropDownListMpicker.placeholder')"
>
:placeholder=
"placeholder?placeholder:$t('components.dropDownListMpicker.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:class=
"item.class"
:value=
"item.value
.toString()
"
:label=
"item.text"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:class=
"item.class"
:value=
"item.value
? item.value.toString():''
"
:label=
"item.text"
>
<Checkbox
:value
=
"(currentVal.indexOf(item.value.toString()))==-1?false:
true"
>
<Checkbox
:value
=
"(currentVal.indexOf(item.value ? item.value.toString() : '')) == -1 ? false :
true"
>
{{
Object
.
is
(
codelistType
,
'STATIC'
)
?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
{{
Object
.
is
(
codelistType
,
'STATIC'
)
?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</Checkbox>
</Checkbox>
</i-option>
</i-option>
...
...
app_web/src/components/dropdown-list/dropdown-list.vue
浏览文件 @
36daf359
...
@@ -394,7 +394,9 @@ export default class DropDownList extends Vue {
...
@@ -394,7 +394,9 @@ export default class DropDownList extends Vue {
if
(
type
===
'number'
){
if
(
type
===
'number'
){
item
.
value
=
item
.
value
.
toString
();
item
.
value
=
item
.
value
.
toString
();
}
else
{
}
else
{
if
(
item
.
value
.
indexOf
(
'.'
)
==
-
1
){
if
(
type
==
"null"
)
{
this
.
valueType
==
"number"
?
item
.
value
=
0
:
item
.
value
=
''
;
}
else
if
(
item
.
value
.
indexOf
(
'.'
)
==
-
1
){
item
.
value
=
parseInt
(
item
.
value
);
item
.
value
=
parseInt
(
item
.
value
);
}
else
{
}
else
{
item
.
value
=
parseFloat
(
item
.
value
);
item
.
value
=
parseFloat
(
item
.
value
);
...
...
app_web/src/environments/environment.ts
浏览文件 @
36daf359
...
@@ -45,6 +45,8 @@ export const Environment = {
...
@@ -45,6 +45,8 @@ export const Environment = {
ibizlabtUrl
:
'https://www.ibizlab.cn'
,
ibizlabtUrl
:
'https://www.ibizlab.cn'
,
// ibiz论坛地址
// ibiz论坛地址
ibizbbstUrl
:
'https://bbs.ibizlab.cn'
,
ibizbbstUrl
:
'https://bbs.ibizlab.cn'
,
// 是否启用工作流
workflow
:
false
,
};
};
// 挂载外部配置文件
// 挂载外部配置文件
if
((
window
as
any
).
Environment
)
{
if
((
window
as
any
).
Environment
)
{
...
...
app_web/src/pages/ou/sys-department-tree-exp-view/sys-department-tree-exp-view.less
浏览文件 @
36daf359
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
}
}
.sys-department-tree-exp-view{
.sys-department-tree-exp-view{
position: relative;
position: relative;
height: 100%;
}
}
app_web/src/pages/ou/sys-organization-tree-exp-view/sys-organization-tree-exp-view.less
浏览文件 @
36daf359
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
}
}
.sys-organization-tree-exp-view{
.sys-organization-tree-exp-view{
position: relative;
position: relative;
height: 100%;
}
}
app_web/src/widgets/sys-department/main-form/main-form-base.vue
浏览文件 @
36daf359
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createdate'
:itemRules=
"this.rules().createdate"
class=
''
:caption=
"$t('entities.sysdepartment.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'createdate'
:itemRules=
"this.rules().createdate"
class=
''
:caption=
"$t('entities.sysdepartment.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
unitName=
""
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-span>
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules().updatedate"
class=
''
:caption=
"$t('entities.sysdepartment.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules().updatedate"
class=
''
:caption=
"$t('entities.sysdepartment.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
unitName=
""
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-span>
...
...
app_web/src/widgets/sys-organization/main-form/main-form-base.vue
浏览文件 @
36daf359
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createdate'
:itemRules=
"this.rules().createdate"
class=
''
:caption=
"$t('entities.sysorganization.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'createdate'
:itemRules=
"this.rules().createdate"
class=
''
:caption=
"$t('entities.sysorganization.main_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
<app-span
name=
'createdate'
:value=
"data.createdate"
dataType=
"DATETIME"
unitName=
""
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-span>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules().updatedate"
class=
''
:caption=
"$t('entities.sysorganization.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules().updatedate"
class=
''
:caption=
"$t('entities.sysorganization.main_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
<app-span
name=
'updatedate'
:value=
"data.updatedate"
dataType=
"DATETIME"
unitName=
""
valueFormat=
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-span>
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/SysDeptMemberServiceImpl.java
浏览文件 @
36daf359
...
@@ -58,10 +58,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
...
@@ -58,10 +58,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
@Lazy
@Lazy
protected
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysPostService
syspostService
;
protected
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysPostService
syspostService
;
@Autowired
@Lazy
protected
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
ISysDeptMembersaveDeptMemberLogic
savedeptmemberLogic
;
protected
int
batchSize
=
500
;
protected
int
batchSize
=
500
;
@Override
@Override
...
@@ -201,7 +197,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
...
@@ -201,7 +197,6 @@ public class SysDeptMemberServiceImpl extends ServiceImpl<SysDeptMemberMapper, S
@Override
@Override
@Transactional
@Transactional
public
SysDeptMember
saveDeptMember
(
SysDeptMember
et
)
{
public
SysDeptMember
saveDeptMember
(
SysDeptMember
et
)
{
savedeptmemberLogic
.
execute
(
et
);
return
et
;
return
et
;
}
}
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/logic/ISysDeptMembersaveDeptMemberLogic.java
浏览文件 @
36daf359
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
;
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
;
import
java.sql.Timestamp
;
@Deprecated
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.core.ou.domain.SysDeptMember
;
/**
* 关系型数据实体[saveDeptMember] 对象
*/
public
interface
ISysDeptMembersaveDeptMemberLogic
{
public
interface
ISysDeptMembersaveDeptMemberLogic
{
void
execute
(
SysDeptMember
et
)
;
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/logic/ISysEmployeesaveDeptMemberLogic.java
浏览文件 @
36daf359
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
;
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
;
import
java.sql.Timestamp
;
@Deprecated
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.HashMap
;
import
cn.ibizlab.core.ou.domain.SysEmployee
;
/**
* 关系型数据实体[saveDeptMember] 对象
*/
public
interface
ISysEmployeesaveDeptMemberLogic
{
public
interface
ISysEmployeesaveDeptMemberLogic
{
void
execute
(
SysEmployee
et
)
;
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/logic/impl/SysDeptMembersaveDeptMemberLogicImpl.java
浏览文件 @
36daf359
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
impl
;
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
impl
;
import
java.util.Map
;
@Deprecated
import
java.util.HashMap
;
public
class
SysDeptMembersaveDeptMemberLogicImpl
{
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.core.ou.service.logic.ISysDeptMembersaveDeptMemberLogic
;
import
cn.ibizlab.core.ou.domain.SysDeptMember
;
/**
* 关系型数据实体[saveDeptMember] 对象
*/
@Slf4j
@Service
public
class
SysDeptMembersaveDeptMemberLogicImpl
implements
ISysDeptMembersaveDeptMemberLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
sysdeptmemberservice
;
public
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
getSysdeptmemberService
()
{
return
this
.
sysdeptmemberservice
;
}
@Autowired
private
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
@Override
public
void
execute
(
SysDeptMember
et
)
{
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"sysdeptmembersavedeptmemberdefault"
,
et
);
kieSession
.
setGlobal
(
"sysdeptmemberservice"
,
sysdeptmemberservice
);
kieSession
.
setGlobal
(
"iBzSysSysdeptmemberDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"执行[保存部门成员]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
{
kieSession
.
destroy
();
}
}
}
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/logic/impl/SysEmployeesaveDeptMemberLogicImpl.java
浏览文件 @
36daf359
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
impl
;
package
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
impl
;
import
java.util.Map
;
@Deprecated
import
java.util.HashMap
;
public
class
SysEmployeesaveDeptMemberLogicImpl
{
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.api.runtime.KieContainer
;
import
cn.ibizlab.core.ou.service.logic.ISysEmployeesaveDeptMemberLogic
;
import
cn.ibizlab.core.ou.domain.SysEmployee
;
/**
* 关系型数据实体[saveDeptMember] 对象
*/
@Slf4j
@Service
public
class
SysEmployeesaveDeptMemberLogicImpl
implements
ISysEmployeesaveDeptMemberLogic
{
@Autowired
private
KieContainer
kieContainer
;
@Autowired
private
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
sysdeptmemberservice
;
public
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysDeptMemberService
getSysdeptmemberService
()
{
return
this
.
sysdeptmemberservice
;
}
@Autowired
private
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysEmployeeService
iBzSysDefaultService
;
public
cn
.
ibizlab
.
core
.
ou
.
service
.
ISysEmployeeService
getIBzSysDefaultService
()
{
return
this
.
iBzSysDefaultService
;
}
@Override
public
void
execute
(
SysEmployee
et
)
{
KieSession
kieSession
=
null
;
try
{
kieSession
=
kieContainer
.
newKieSession
();
kieSession
.
insert
(
et
);
kieSession
.
setGlobal
(
"sysemployeesavedeptmemberdefault"
,
et
);
cn
.
ibizlab
.
core
.
ou
.
domain
.
SysDeptMember
sysemployeesavedeptmembermember
=
new
cn
.
ibizlab
.
core
.
ou
.
domain
.
SysDeptMember
();
kieSession
.
insert
(
sysemployeesavedeptmembermember
);
kieSession
.
setGlobal
(
"sysemployeesavedeptmembermember"
,
sysemployeesavedeptmembermember
);
kieSession
.
setGlobal
(
"sysdeptmemberservice"
,
sysdeptmemberservice
);
kieSession
.
setGlobal
(
"iBzSysSysemployeeDefaultService"
,
iBzSysDefaultService
);
kieSession
.
setGlobal
(
"curuser"
,
cn
.
ibizlab
.
util
.
security
.
AuthenticationUser
.
getAuthenticationUser
());
kieSession
.
startProcess
(
"cn.ibizlab.core.ou.service.logic.sysemployeesavedeptmember"
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
"执行[保存人事关系]处理逻辑发生异常"
+
e
);
}
finally
{
if
(
kieSession
!=
null
)
{
kieSession
.
destroy
();
}
}
}
}
}
ibzou-core/src/main/java/cn/ibizlab/core/util/config/DroolsAutoConfiguration.java
浏览文件 @
36daf359
package
cn
.
ibizlab
.
core
.
util
.
config
;
package
cn
.
ibizlab
.
core
.
util
.
config
;
import
org.kie.api.KieBase
;
import
org.kie.api.KieServices
;
import
org.kie.api.KieServices
;
import
org.kie.api.builder.
*
;
import
org.kie.api.builder.
KieFileSystem
;
import
org.kie.api.runtime.KieContainer
;
import
org.kie.api.runtime.KieContainer
;
import
org.kie.api.runtime.KieSession
;
import
org.kie.internal.io.ResourceFactory
;
import
org.kie.spring.KModuleBeanFactoryPostProcessor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
org.springframework.core.io.support.ResourcePatternResolver
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
java.io.IOException
;
import
java.util.List
;
@Configuration
@Configuration
public
class
DroolsAutoConfiguration
{
public
class
DroolsAutoConfiguration
{
private
Log
logger
=
LogFactory
.
getLog
(
DroolsAutoConfiguration
.
class
);
private
static
final
String
RULES_PATH
=
"rules/"
;
@Bean
@ConditionalOnMissingBean
(
KieFileSystem
.
class
)
public
KieFileSystem
kieFileSystem
()
throws
IOException
{
KieFileSystem
kieFileSystem
=
getKieServices
().
newKieFileSystem
();
for
(
Resource
file
:
getRuleFiles
())
{
kieFileSystem
.
write
(
ResourceFactory
.
newUrlResource
(
file
.
getURL
()));
}
return
kieFileSystem
;
}
private
Resource
[]
getRuleFiles
()
throws
IOException
{
ResourcePatternResolver
resourcePatternResolver
=
new
PathMatchingResourcePatternResolver
();
return
resourcePatternResolver
.
getResources
(
"classpath*:"
+
RULES_PATH
+
"**/*.*"
);
}
@Bean
@Bean
@ConditionalOnMissingBean
(
KieContainer
.
class
)
@ConditionalOnMissingBean
(
KieContainer
.
class
)
public
KieContainer
kieContainer
()
throws
IOException
{
public
KieContainer
kieContainer
()
{
final
KieRepository
kieRepository
=
getKieServices
().
getRepository
();
KieServices
kieServices
=
KieServices
.
get
();
KieFileSystem
kieFileSystem
=
kieServices
.
newKieFileSystem
();
kieRepository
.
addKieModule
(
new
KieModule
()
{
kieServices
.
newKieBuilder
(
kieFileSystem
).
buildAll
();
public
ReleaseId
getReleaseId
()
{
return
kieServices
.
newKieContainer
(
kieServices
.
getRepository
().
getDefaultReleaseId
());
return
kieRepository
.
getDefaultReleaseId
();
}
});
KieBuilder
kieBuilder
=
getKieServices
().
newKieBuilder
(
kieFileSystem
());
kieBuilder
.
buildAll
();
if
(
kieBuilder
.
getResults
().
hasMessages
(
new
Message
.
Level
[]
{
Message
.
Level
.
ERROR
})){
List
<
Message
>
errors
=
kieBuilder
.
getResults
().
getMessages
(
new
Message
.
Level
[]
{
Message
.
Level
.
ERROR
});
StringBuilder
stringBuilder
=
new
StringBuilder
(
"Errors:"
);
for
(
Message
msg
:
errors
)
{
stringBuilder
.
append
(
new
StringBuilder
().
append
(
"\n "
).
append
(
prettyBuildMessage
(
msg
)).
toString
());
}
logger
.
error
(
String
.
format
(
"初始化处理逻辑发生异常,异常原因为[%s]"
,
stringBuilder
.
toString
()));
//忽略处理逻辑
getKieServices
().
newKieBuilder
(
getKieServices
().
newKieFileSystem
()).
buildAll
();
}
return
getKieServices
().
newKieContainer
(
kieRepository
.
getDefaultReleaseId
());
}
private
KieServices
getKieServices
()
{
return
KieServices
.
Factory
.
get
();
}
@Bean
@ConditionalOnMissingBean
(
KieBase
.
class
)
public
KieBase
kieBase
()
throws
IOException
{
return
kieContainer
().
getKieBase
();
}
@Bean
@ConditionalOnMissingBean
(
KieSession
.
class
)
public
KieSession
kieSession
()
throws
IOException
{
return
kieContainer
().
newKieSession
();
}
@Bean
@ConditionalOnMissingBean
(
KModuleBeanFactoryPostProcessor
.
class
)
public
KModuleBeanFactoryPostProcessor
kiePostProcessor
()
{
return
new
KModuleBeanFactoryPostProcessor
();
}
/**
* 输出异常信息
* @param msg
* @return
*/
public
static
String
prettyBuildMessage
(
Message
msg
)
{
return
new
StringBuilder
().
append
(
"Message: {id="
).
append
(
msg
.
getId
()).
append
(
", level="
).
append
(
msg
.
getLevel
()).
append
(
", path="
).
append
(
msg
.
getPath
()).
append
(
", line="
).
append
(
msg
.
getLine
())
.
append
(
", column="
).
append
(
msg
.
getColumn
()).
append
(
", text=\""
).
append
(
msg
.
getText
()).
append
(
"\"}"
).
toString
();
}
}
}
}
\ No newline at end of file
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
36daf359
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--输出实体[SYS_DEPT]数据结构 -->
<!--输出实体[SYS_DEPT]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_dept-79-1"
>
<changeSet
author=
"
root
"
id=
"tab-sys_dept-79-1"
>
<createTable
tableName=
"IBZDEPT"
>
<createTable
tableName=
"IBZDEPT"
>
<column
name=
"DEPTID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"DEPTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_DEPT_DEPTID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_DEPT_DEPTID"
/>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<!--输出实体[SYS_DEPTMEMBER]数据结构 -->
<!--输出实体[SYS_DEPTMEMBER]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_deptmember-35-2"
>
<changeSet
author=
"
root
"
id=
"tab-sys_deptmember-35-2"
>
<createTable
tableName=
"IBZDEPTMEMBER"
>
<createTable
tableName=
"IBZDEPTMEMBER"
>
<column
name=
"MEMBERID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"MEMBERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_DEPTMEMBER_MEMBERID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_DEPTMEMBER_MEMBERID"
/>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<!--输出实体[SYS_EMP]数据结构 -->
<!--输出实体[SYS_EMP]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_emp-85-3"
>
<changeSet
author=
"
root
"
id=
"tab-sys_emp-85-3"
>
<createTable
tableName=
"IBZEMP"
>
<createTable
tableName=
"IBZEMP"
>
<column
name=
"USERID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"USERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_EMP_USERID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_EMP_USERID"
/>
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<!--输出实体[SYS_ORG]数据结构 -->
<!--输出实体[SYS_ORG]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_org-49-4"
>
<changeSet
author=
"
root
"
id=
"tab-sys_org-49-4"
>
<createTable
tableName=
"IBZORG"
>
<createTable
tableName=
"IBZORG"
>
<column
name=
"ORGID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"ORGID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_ORG_ORGID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_ORG_ORGID"
/>
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
<!--输出实体[SYS_POST]数据结构 -->
<!--输出实体[SYS_POST]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_post-25-5"
>
<changeSet
author=
"
root
"
id=
"tab-sys_post-25-5"
>
<createTable
tableName=
"IBZPOST"
>
<createTable
tableName=
"IBZPOST"
>
<column
name=
"POSTID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"POSTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_POST_POSTID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_POST_POSTID"
/>
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
<!--输出实体[SYS_TEAM]数据结构 -->
<!--输出实体[SYS_TEAM]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_team-25-6"
>
<changeSet
author=
"
root
"
id=
"tab-sys_team-25-6"
>
<createTable
tableName=
"IBZTEAM"
>
<createTable
tableName=
"IBZTEAM"
>
<column
name=
"TEAMID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"TEAMID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_TEAM_TEAMID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_TEAM_TEAMID"
/>
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
<!--输出实体[SYS_TEAMMEMBER]数据结构 -->
<!--输出实体[SYS_TEAMMEMBER]数据结构 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"tab-sys_teammember-30-7"
>
<changeSet
author=
"
root
"
id=
"tab-sys_teammember-30-7"
>
<createTable
tableName=
"IBZTEAMMEMBER"
>
<createTable
tableName=
"IBZTEAMMEMBER"
>
<column
name=
"TEAMMEMBERID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"TEAMMEMBERID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_TEAMMEMBER_TEAMMEMBERID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_TEAMMEMBER_TEAMMEMBERID"
/>
...
@@ -225,46 +225,46 @@
...
@@ -225,46 +225,46 @@
</changeSet>
</changeSet>
<!--输出实体[SYS_DEPT]外键关系 -->
<!--输出实体[SYS_DEPT]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_dept-79-8"
>
<changeSet
author=
"
root
"
id=
"fk-sys_dept-79-8"
>
<addForeignKeyConstraint
baseColumnNames=
"PDEPTID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_SYS_DEPT_SYS_DEPT_PDEPTI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PDEPTID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_SYS_DEPT_SYS_DEPT_PDEPTI"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_dept-79-9"
>
<changeSet
author=
"
root
"
id=
"fk-sys_dept-79-9"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_SYS_DEPT_SYS_ORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZDEPT"
constraintName=
"DER1N_SYS_DEPT_SYS_ORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[SYS_DEPTMEMBER]外键关系 -->
<!--输出实体[SYS_DEPTMEMBER]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_deptmember-35-10"
>
<changeSet
author=
"
root
"
id=
"fk-sys_deptmember-35-10"
>
<addForeignKeyConstraint
baseColumnNames=
"DEPTID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_DEPT_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"DEPTID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_DEPT_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_deptmember-35-11"
>
<changeSet
author=
"
root
"
id=
"fk-sys_deptmember-35-11"
>
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_EMP_U"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_EMP_U"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_deptmember-35-12"
>
<changeSet
author=
"
root
"
id=
"fk-sys_deptmember-35-12"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_POST_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZDEPTMEMBER"
constraintName=
"DER1N_SYS_DEPTMEMBER_SYS_POST_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[SYS_EMP]外键关系 -->
<!--输出实体[SYS_EMP]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_emp-85-13"
>
<changeSet
author=
"
root
"
id=
"fk-sys_emp-85-13"
>
<addForeignKeyConstraint
baseColumnNames=
"MDEPTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_DEPT_MDEPTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"MDEPTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_DEPT_MDEPTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"DEPTID"
referencedTableName=
"IBZDEPT"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_emp-85-14"
>
<changeSet
author=
"
root
"
id=
"fk-sys_emp-85-14"
>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_ORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"ORGID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_ORG_ORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_emp-85-15"
>
<changeSet
author=
"
root
"
id=
"fk-sys_emp-85-15"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_POST_POSTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZEMP"
constraintName=
"DER1N_SYS_EMP_SYS_POST_POSTID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[SYS_ORG]外键关系 -->
<!--输出实体[SYS_ORG]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_org-49-16"
>
<changeSet
author=
"
root
"
id=
"fk-sys_org-49-16"
>
<addForeignKeyConstraint
baseColumnNames=
"PORGID"
baseTableName=
"IBZORG"
constraintName=
"DER1N_SYS_ORG_SYS_ORG_PORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"PORGID"
baseTableName=
"IBZORG"
constraintName=
"DER1N_SYS_ORG_SYS_ORG_PORGID"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"ORGID"
referencedTableName=
"IBZORG"
validate=
"true"
/>
</changeSet>
</changeSet>
<!--输出实体[SYS_POST]外键关系 -->
<!--输出实体[SYS_POST]外键关系 -->
<!--输出实体[SYS_TEAM]外键关系 -->
<!--输出实体[SYS_TEAM]外键关系 -->
<!--输出实体[SYS_TEAMMEMBER]外键关系 -->
<!--输出实体[SYS_TEAMMEMBER]外键关系 -->
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_teammember-30-17"
>
<changeSet
author=
"
root
"
id=
"fk-sys_teammember-30-17"
>
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_EMP_U"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"USERID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_EMP_U"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"USERID"
referencedTableName=
"IBZEMP"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_teammember-30-18"
>
<changeSet
author=
"
root
"
id=
"fk-sys_teammember-30-18"
>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_POST_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"POSTID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_POST_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"POSTID"
referencedTableName=
"IBZPOST"
validate=
"true"
/>
</changeSet>
</changeSet>
<changeSet
author=
"
a_A_5d9d78509
"
id=
"fk-sys_teammember-30-19"
>
<changeSet
author=
"
root
"
id=
"fk-sys_teammember-30-19"
>
<addForeignKeyConstraint
baseColumnNames=
"TEAMID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_TEAM_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TEAMID"
referencedTableName=
"IBZTEAM"
validate=
"true"
/>
<addForeignKeyConstraint
baseColumnNames=
"TEAMID"
baseTableName=
"IBZTEAMMEMBER"
constraintName=
"DER1N_SYS_TEAMMEMBER_SYS_TEAM_"
deferrable=
"false"
initiallyDeferred=
"false"
onDelete=
"RESTRICT"
onUpdate=
"RESTRICT"
referencedColumnNames=
"TEAMID"
referencedTableName=
"IBZTEAM"
validate=
"true"
/>
</changeSet>
</changeSet>
...
...
ibzou-core/src/main/resources/rules/SysDeptMember/savedeptmember/exec.bpmn
0 → 100644
浏览文件 @
36daf359
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.core.extensions.service.logic.execute"
isClosed=
"false"
isExecutable=
"true"
name=
"ou_sysdeptmember_savedeptmember.execLogic"
processType=
"Private"
tns:packageName=
"cn.ibizlab.core.extensions.service.logic.execute"
>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.util.helper.RuleUtils"
/>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<endEvent
id=
"prepareparam1_end"
name=
"end"
/>
<callActivity
activiti:exclusive=
"true"
calledElement=
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
id=
"saveDeptMember"
name=
"SysDeptMembersaveDeptMemberRuleFlow.bpmn"
/>
<sequenceFlow
id=
"begin_saveDeptMember"
sourceRef=
"begin"
targetRef=
"saveDeptMember"
/>
<sequenceFlow
id=
"saveDeptMember_saveDeptMember"
sourceRef=
"saveDeptMember"
targetRef=
"prepareparam1_end"
/>
</process>
</definitions>
ibzou-core/src/main/resources/rules/SysDeptMembersaveDeptMemberRuleFlow.bpmn
浏览文件 @
36daf359
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
isClosed=
"false"
isExecutable=
"true"
name=
"
ScoreRule
"
processType=
"Private"
tns:packageName=
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
>
<process
id=
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
isClosed=
"false"
isExecutable=
"true"
name=
"
ou_sysdeptmember_savedeptmember_RuleFlow
"
processType=
"Private"
tns:packageName=
"cn.ibizlab.core.ou.service.logic.sysdeptmembersavedeptmember"
>
<extensionElements>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.util.helper.RuleUtils"
/>
<tns:import
name=
"cn.ibizlab.util.helper.RuleUtils"
/>
<tns:metaData
express=
""
name=
"sysdeptmembersavedeptmemberdefault"
type=
"entity"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.ou.service.ISysDeptMemberService))"
name=
"sysdeptmemberservice"
type=
"service"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.ou.service.ISysDeptMemberService))"
name=
"iBzSysSysdeptmemberDefaultService"
type=
"service"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()"
name=
"curuser"
type=
"session"
/>
<tns:global
identifier=
"sysdeptmembersavedeptmemberdefault"
type=
"cn.ibizlab.core.ou.domain.SysDeptMember"
/>
<tns:global
identifier=
"sysdeptmembersavedeptmemberdefault"
type=
"cn.ibizlab.core.ou.domain.SysDeptMember"
/>
</extensionElements>
</extensionElements>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
<startEvent
id=
"begin"
isInterrupting=
"true"
/>
...
...
ibzou-core/src/main/resources/rules/SysEmployeesaveDeptMemberRuleFlow.bpmn
浏览文件 @
36daf359
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:g=
"http://www.jboss.org/drools/flow/gpd"
xmlns:tns=
"http://www.jboss.org/drools"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
expressionLanguage=
"http://www.mvel.org/2.0"
id=
"Definition"
name=
""
targetNamespace=
"http://www.jboss.org/drools"
typeLanguage=
"http://www.java.com/javaTypes"
>
<process
id=
"cn.ibizlab.core.ou.service.logic.sysemployeesavedeptmember"
isClosed=
"false"
isExecutable=
"true"
name=
"
ScoreRule
"
processType=
"Private"
tns:packageName=
"cn.ibizlab.core.ou.service.logic.sysemployeesavedeptmember"
>
<process
id=
"cn.ibizlab.core.ou.service.logic.sysemployeesavedeptmember"
isClosed=
"false"
isExecutable=
"true"
name=
"
ou_sysemployee_savedeptmember_RuleFlow
"
processType=
"Private"
tns:packageName=
"cn.ibizlab.core.ou.service.logic.sysemployeesavedeptmember"
>
<extensionElements>
<extensionElements>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"java.util.Map"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"org.springframework.util.StringUtils"
/>
<tns:import
name=
"cn.ibizlab.util.helper.RuleUtils"
/>
<tns:import
name=
"cn.ibizlab.util.helper.RuleUtils"
/>
<tns:metaData
express=
""
name=
"sysemployeesavedeptmemberdefault"
type=
"entity"
/>
<tns:metaData
express=
"new cn.ibizlab.core.ou.domain.SysDeptMember()"
name=
"sysemployeesavedeptmembermember"
type=
"refentity"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.ou.service.ISysDeptMemberService))"
name=
"sysdeptmemberservice"
type=
"service"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.ou.service.ISysEmployeeService))"
name=
"iBzSysSysemployeeDefaultService"
type=
"service"
/>
<tns:metaData
express=
"T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()"
name=
"curuser"
type=
"session"
/>
<tns:global
identifier=
"sysemployeesavedeptmemberdefault"
type=
"cn.ibizlab.core.ou.domain.SysEmployee"
/>
<tns:global
identifier=
"sysemployeesavedeptmemberdefault"
type=
"cn.ibizlab.core.ou.domain.SysEmployee"
/>
<tns:global
identifier=
"sysemployeesavedeptmembermember"
type=
"cn.ibizlab.core.ou.domain.SysDeptMember"
/>
<tns:global
identifier=
"sysemployeesavedeptmembermember"
type=
"cn.ibizlab.core.ou.domain.SysDeptMember"
/>
</extensionElements>
</extensionElements>
...
...
ibzou-dependencies/pom.xml
浏览文件 @
36daf359
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
<oracle.version>
19.8.0.0
</oracle.version>
<oracle.version>
19.8.0.0
</oracle.version>
<postgresql.version>
42.2.6
</postgresql.version>
<postgresql.version>
42.2.6
</postgresql.version>
<rocketmq.version>
4.7.0
</rocketmq.version>
<rocketmq.version>
4.7.0
</rocketmq.version>
<flowable-modeler.version>
6.4.2
</flowable-modeler.version>
</properties>
</properties>
<dependencyManagement>
<dependencyManagement>
...
@@ -262,6 +263,16 @@
...
@@ -262,6 +263,16 @@
</dependency>
</dependency>
<dependency>
<groupId>
org.flowable
</groupId>
<artifactId>
flowable-json-converter
</artifactId>
<version>
${flowable-modeler.version}
</version>
</dependency>
<dependency>
<groupId>
org.flowable
</groupId>
<artifactId>
flowable-ui-modeler-conf
</artifactId>
<version>
${flowable-modeler.version}
</version>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysDepartmentResource.java
浏览文件 @
36daf359
...
@@ -73,7 +73,7 @@ public class SysDepartmentResource {
...
@@ -73,7 +73,7 @@ public class SysDepartmentResource {
SysDepartment
domain
=
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
);
SysDepartment
domain
=
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
);
domain
.
setDeptid
(
sysdepartment_id
);
domain
.
setDeptid
(
sysdepartment_id
);
sysdepartmentService
.
update
(
domain
);
sysdepartmentService
.
update
(
domain
);
SysDepartmentDTO
dto
=
sysdepartmentMapping
.
toDto
(
domain
);
SysDepartmentDTO
dto
=
sysdepartmentMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -124,8 +124,10 @@ public class SysDepartmentResource {
...
@@ -124,8 +124,10 @@ public class SysDepartmentResource {
@ApiOperation
(
value
=
"保存部门"
,
tags
=
{
"部门"
},
notes
=
"保存部门"
)
@ApiOperation
(
value
=
"保存部门"
,
tags
=
{
"部门"
},
notes
=
"保存部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysDepartmentDTO
sysdepartmentdto
)
{
public
ResponseEntity
<
SysDepartmentDTO
>
save
(
@RequestBody
SysDepartmentDTO
sysdepartmentdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdepartmentService
.
save
(
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
)));
SysDepartment
domain
=
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
);
sysdepartmentService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdepartmentMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"批量保存部门"
)
@ApiOperation
(
value
=
"批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"批量保存部门"
)
...
@@ -245,10 +247,11 @@ public class SysDepartmentResource {
...
@@ -245,10 +247,11 @@ public class SysDepartmentResource {
@ApiOperation
(
value
=
"根据单位机构保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构保存部门"
)
@ApiOperation
(
value
=
"根据单位机构保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构保存部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganization
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@RequestBody
SysDepartmentDTO
sysdepartmentdto
)
{
public
ResponseEntity
<
SysDepartmentDTO
>
saveBySysOrganization
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@RequestBody
SysDepartmentDTO
sysdepartmentdto
)
{
SysDepartment
domain
=
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
);
SysDepartment
domain
=
sysdepartmentMapping
.
toDomain
(
sysdepartmentdto
);
domain
.
setOrgid
(
sysorganization_id
);
domain
.
setOrgid
(
sysorganization_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdepartmentService
.
save
(
domain
));
sysdepartmentService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdepartmentMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构批量保存部门"
)
@ApiOperation
(
value
=
"根据单位机构批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构批量保存部门"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysDeptMemberResource.java
浏览文件 @
36daf359
...
@@ -72,7 +72,7 @@ public class SysDeptMemberResource {
...
@@ -72,7 +72,7 @@ public class SysDeptMemberResource {
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setMemberid
(
sysdeptmember_id
);
domain
.
setMemberid
(
sysdeptmember_id
);
sysdeptmemberService
.
update
(
domain
);
sysdeptmemberService
.
update
(
domain
);
SysDeptMemberDTO
dto
=
sysdeptmemberMapping
.
toDto
(
domain
);
SysDeptMemberDTO
dto
=
sysdeptmemberMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -123,8 +123,10 @@ public class SysDeptMemberResource {
...
@@ -123,8 +123,10 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"保存部门成员"
)
@ApiOperation
(
value
=
"保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
save
(
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
)));
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"批量保存部门成员"
)
@ApiOperation
(
value
=
"批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"批量保存部门成员"
)
...
@@ -256,10 +258,11 @@ public class SysDeptMemberResource {
...
@@ -256,10 +258,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门保存部门成员"
)
@ApiOperation
(
value
=
"根据部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysDepartment
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysDepartment
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setDeptid
(
sysdepartment_id
);
domain
.
setDeptid
(
sysdepartment_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门批量保存部门成员"
)
@ApiOperation
(
value
=
"根据部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门批量保存部门成员"
)
...
@@ -393,10 +396,11 @@ public class SysDeptMemberResource {
...
@@ -393,10 +396,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据人员保存部门成员"
)
@ApiOperation
(
value
=
"根据人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysEmployee
(
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysEmployee
(
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据人员批量保存部门成员"
)
...
@@ -530,10 +534,11 @@ public class SysDeptMemberResource {
...
@@ -530,10 +534,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门人员保存部门成员"
)
@ApiOperation
(
value
=
"根据部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysDepartmentSysEmployee
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysDepartmentSysEmployee
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据部门人员批量保存部门成员"
)
...
@@ -667,10 +672,11 @@ public class SysDeptMemberResource {
...
@@ -667,10 +672,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据单位机构部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysDepartment
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysOrganizationSysDepartment
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setDeptid
(
sysdepartment_id
);
domain
.
setDeptid
(
sysdepartment_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门批量保存部门成员"
)
...
@@ -804,10 +810,11 @@ public class SysDeptMemberResource {
...
@@ -804,10 +810,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据单位机构人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构人员保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysOrganizationSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构人员批量保存部门成员"
)
...
@@ -941,10 +948,11 @@ public class SysDeptMemberResource {
...
@@ -941,10 +948,11 @@ public class SysDeptMemberResource {
@ApiOperation
(
value
=
"根据单位机构部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门人员保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/sysdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysDepartmentSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
public
ResponseEntity
<
SysDeptMemberDTO
>
saveBySysOrganizationSysDepartmentSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysDeptMemberDTO
sysdeptmemberdto
)
{
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
SysDeptMember
domain
=
sysdeptmemberMapping
.
toDomain
(
sysdeptmemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberService
.
save
(
domain
));
sysdeptmemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysdeptmemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构部门人员批量保存部门成员"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysEmployeeResource.java
浏览文件 @
36daf359
...
@@ -73,7 +73,7 @@ public class SysEmployeeResource {
...
@@ -73,7 +73,7 @@ public class SysEmployeeResource {
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
sysemployeeService
.
update
(
domain
);
sysemployeeService
.
update
(
domain
);
SysEmployeeDTO
dto
=
sysemployeeMapping
.
toDto
(
domain
);
SysEmployeeDTO
dto
=
sysemployeeMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -143,8 +143,10 @@ public class SysEmployeeResource {
...
@@ -143,8 +143,10 @@ public class SysEmployeeResource {
@ApiOperation
(
value
=
"保存人员"
,
tags
=
{
"人员"
},
notes
=
"保存人员"
)
@ApiOperation
(
value
=
"保存人员"
,
tags
=
{
"人员"
},
notes
=
"保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
public
ResponseEntity
<
SysEmployeeDTO
>
save
(
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeService
.
save
(
sysemployeeMapping
.
toDomain
(
sysemployeedto
)));
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
sysemployeeService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"批量保存人员"
)
@ApiOperation
(
value
=
"批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"批量保存人员"
)
...
@@ -283,10 +285,11 @@ public class SysEmployeeResource {
...
@@ -283,10 +285,11 @@ public class SysEmployeeResource {
}
}
@ApiOperation
(
value
=
"根据部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据部门保存人员"
)
@ApiOperation
(
value
=
"根据部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据部门保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysDepartment
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
public
ResponseEntity
<
SysEmployeeDTO
>
saveBySysDepartment
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
domain
.
setMdeptid
(
sysdepartment_id
);
domain
.
setMdeptid
(
sysdepartment_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeService
.
save
(
domain
));
sysemployeeService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据部门批量保存人员"
)
@ApiOperation
(
value
=
"根据部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据部门批量保存人员"
)
...
@@ -428,10 +431,11 @@ public class SysEmployeeResource {
...
@@ -428,10 +431,11 @@ public class SysEmployeeResource {
}
}
@ApiOperation
(
value
=
"根据单位机构保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构保存人员"
)
@ApiOperation
(
value
=
"根据单位机构保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganization
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
public
ResponseEntity
<
SysEmployeeDTO
>
saveBySysOrganization
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
domain
.
setOrgid
(
sysorganization_id
);
domain
.
setOrgid
(
sysorganization_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeService
.
save
(
domain
));
sysemployeeService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构批量保存人员"
)
@ApiOperation
(
value
=
"根据单位机构批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构批量保存人员"
)
...
@@ -573,10 +577,11 @@ public class SysEmployeeResource {
...
@@ -573,10 +577,11 @@ public class SysEmployeeResource {
}
}
@ApiOperation
(
value
=
"根据单位机构部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构部门保存人员"
)
@ApiOperation
(
value
=
"根据单位机构部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构部门保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysDepartment
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
public
ResponseEntity
<
SysEmployeeDTO
>
saveBySysOrganizationSysDepartment
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@RequestBody
SysEmployeeDTO
sysemployeedto
)
{
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
SysEmployee
domain
=
sysemployeeMapping
.
toDomain
(
sysemployeedto
);
domain
.
setMdeptid
(
sysdepartment_id
);
domain
.
setMdeptid
(
sysdepartment_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeService
.
save
(
domain
));
sysemployeeService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysemployeeMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构部门批量保存人员"
)
@ApiOperation
(
value
=
"根据单位机构部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构部门批量保存人员"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysOrganizationResource.java
浏览文件 @
36daf359
...
@@ -73,7 +73,7 @@ public class SysOrganizationResource {
...
@@ -73,7 +73,7 @@ public class SysOrganizationResource {
SysOrganization
domain
=
sysorganizationMapping
.
toDomain
(
sysorganizationdto
);
SysOrganization
domain
=
sysorganizationMapping
.
toDomain
(
sysorganizationdto
);
domain
.
setOrgid
(
sysorganization_id
);
domain
.
setOrgid
(
sysorganization_id
);
sysorganizationService
.
update
(
domain
);
sysorganizationService
.
update
(
domain
);
SysOrganizationDTO
dto
=
sysorganizationMapping
.
toDto
(
domain
);
SysOrganizationDTO
dto
=
sysorganizationMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -124,8 +124,10 @@ public class SysOrganizationResource {
...
@@ -124,8 +124,10 @@ public class SysOrganizationResource {
@ApiOperation
(
value
=
"保存单位机构"
,
tags
=
{
"单位机构"
},
notes
=
"保存单位机构"
)
@ApiOperation
(
value
=
"保存单位机构"
,
tags
=
{
"单位机构"
},
notes
=
"保存单位机构"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysOrganizationDTO
sysorganizationdto
)
{
public
ResponseEntity
<
SysOrganizationDTO
>
save
(
@RequestBody
SysOrganizationDTO
sysorganizationdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysorganizationService
.
save
(
sysorganizationMapping
.
toDomain
(
sysorganizationdto
)));
SysOrganization
domain
=
sysorganizationMapping
.
toDomain
(
sysorganizationdto
);
sysorganizationService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysorganizationMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存单位机构"
,
tags
=
{
"单位机构"
},
notes
=
"批量保存单位机构"
)
@ApiOperation
(
value
=
"批量保存单位机构"
,
tags
=
{
"单位机构"
},
notes
=
"批量保存单位机构"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysPostResource.java
浏览文件 @
36daf359
...
@@ -72,7 +72,7 @@ public class SysPostResource {
...
@@ -72,7 +72,7 @@ public class SysPostResource {
SysPost
domain
=
syspostMapping
.
toDomain
(
syspostdto
);
SysPost
domain
=
syspostMapping
.
toDomain
(
syspostdto
);
domain
.
setPostid
(
syspost_id
);
domain
.
setPostid
(
syspost_id
);
syspostService
.
update
(
domain
);
syspostService
.
update
(
domain
);
SysPostDTO
dto
=
syspostMapping
.
toDto
(
domain
);
SysPostDTO
dto
=
syspostMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -123,8 +123,10 @@ public class SysPostResource {
...
@@ -123,8 +123,10 @@ public class SysPostResource {
@ApiOperation
(
value
=
"保存岗位"
,
tags
=
{
"岗位"
},
notes
=
"保存岗位"
)
@ApiOperation
(
value
=
"保存岗位"
,
tags
=
{
"岗位"
},
notes
=
"保存岗位"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysposts/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysposts/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysPostDTO
syspostdto
)
{
public
ResponseEntity
<
SysPostDTO
>
save
(
@RequestBody
SysPostDTO
syspostdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspostService
.
save
(
syspostMapping
.
toDomain
(
syspostdto
)));
SysPost
domain
=
syspostMapping
.
toDomain
(
syspostdto
);
syspostService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
syspostMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存岗位"
,
tags
=
{
"岗位"
},
notes
=
"批量保存岗位"
)
@ApiOperation
(
value
=
"批量保存岗位"
,
tags
=
{
"岗位"
},
notes
=
"批量保存岗位"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysTeamMemberResource.java
浏览文件 @
36daf359
...
@@ -72,7 +72,7 @@ public class SysTeamMemberResource {
...
@@ -72,7 +72,7 @@ public class SysTeamMemberResource {
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setTeammemberid
(
systeammember_id
);
domain
.
setTeammemberid
(
systeammember_id
);
systeammemberService
.
update
(
domain
);
systeammemberService
.
update
(
domain
);
SysTeamMemberDTO
dto
=
systeammemberMapping
.
toDto
(
domain
);
SysTeamMemberDTO
dto
=
systeammemberMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -123,8 +123,10 @@ public class SysTeamMemberResource {
...
@@ -123,8 +123,10 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"保存组成员"
)
@ApiOperation
(
value
=
"保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
save
(
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
systeammemberMapping
.
toDomain
(
systeammemberdto
)));
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"批量保存组成员"
)
@ApiOperation
(
value
=
"批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"批量保存组成员"
)
...
@@ -245,10 +247,11 @@ public class SysTeamMemberResource {
...
@@ -245,10 +247,11 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"根据人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据人员保存组成员"
)
@ApiOperation
(
value
=
"根据人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/{sysemployee_id}/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysemployees/{sysemployee_id}/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysEmployee
(
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
saveBySysEmployee
(
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
domain
));
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据人员批量保存组成员"
)
...
@@ -372,10 +375,11 @@ public class SysTeamMemberResource {
...
@@ -372,10 +375,11 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"根据组保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据组保存组成员"
)
@ApiOperation
(
value
=
"根据组保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据组保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeams/{systeam_id}/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeams/{systeam_id}/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysTeam
(
@PathVariable
(
"systeam_id"
)
String
systeam_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
saveBySysTeam
(
@PathVariable
(
"systeam_id"
)
String
systeam_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setTeamid
(
systeam_id
);
domain
.
setTeamid
(
systeam_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
domain
));
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据组批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据组批量保存组成员"
)
@ApiOperation
(
value
=
"根据组批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据组批量保存组成员"
)
...
@@ -499,10 +503,11 @@ public class SysTeamMemberResource {
...
@@ -499,10 +503,11 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"根据部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据部门人员保存组成员"
)
@ApiOperation
(
value
=
"根据部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据部门人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysDepartmentSysEmployee
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
saveBySysDepartmentSysEmployee
(
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
domain
));
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据部门人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据部门人员批量保存组成员"
)
...
@@ -626,10 +631,11 @@ public class SysTeamMemberResource {
...
@@ -626,10 +631,11 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"根据单位机构人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构人员保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
saveBySysOrganizationSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
domain
));
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构人员批量保存组成员"
)
...
@@ -753,10 +759,11 @@ public class SysTeamMemberResource {
...
@@ -753,10 +759,11 @@ public class SysTeamMemberResource {
@ApiOperation
(
value
=
"根据单位机构部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构部门人员保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构部门人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysorganizations/{sysorganization_id}/sysdepartments/{sysdepartment_id}/sysemployees/{sysemployee_id}/systeammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveBySysOrganizationSysDepartmentSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
public
ResponseEntity
<
SysTeamMemberDTO
>
saveBySysOrganizationSysDepartmentSysEmployee
(
@PathVariable
(
"sysorganization_id"
)
String
sysorganization_id
,
@PathVariable
(
"sysdepartment_id"
)
String
sysdepartment_id
,
@PathVariable
(
"sysemployee_id"
)
String
sysemployee_id
,
@RequestBody
SysTeamMemberDTO
systeammemberdto
)
{
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
SysTeamMember
domain
=
systeammemberMapping
.
toDomain
(
systeammemberdto
);
domain
.
setUserid
(
sysemployee_id
);
domain
.
setUserid
(
sysemployee_id
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberService
.
save
(
domain
));
systeammemberService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeammemberMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"根据单位机构部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构部门人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构部门人员批量保存组成员"
)
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/SysTeamResource.java
浏览文件 @
36daf359
...
@@ -72,7 +72,7 @@ public class SysTeamResource {
...
@@ -72,7 +72,7 @@ public class SysTeamResource {
SysTeam
domain
=
systeamMapping
.
toDomain
(
systeamdto
);
SysTeam
domain
=
systeamMapping
.
toDomain
(
systeamdto
);
domain
.
setTeamid
(
systeam_id
);
domain
.
setTeamid
(
systeam_id
);
systeamService
.
update
(
domain
);
systeamService
.
update
(
domain
);
SysTeamDTO
dto
=
systeamMapping
.
toDto
(
domain
);
SysTeamDTO
dto
=
systeamMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
...
@@ -123,8 +123,10 @@ public class SysTeamResource {
...
@@ -123,8 +123,10 @@ public class SysTeamResource {
@ApiOperation
(
value
=
"保存组"
,
tags
=
{
"组"
},
notes
=
"保存组"
)
@ApiOperation
(
value
=
"保存组"
,
tags
=
{
"组"
},
notes
=
"保存组"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeams/save"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/systeams/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysTeamDTO
systeamdto
)
{
public
ResponseEntity
<
SysTeamDTO
>
save
(
@RequestBody
SysTeamDTO
systeamdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeamService
.
save
(
systeamMapping
.
toDomain
(
systeamdto
)));
SysTeam
domain
=
systeamMapping
.
toDomain
(
systeamdto
);
systeamService
.
save
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
systeamMapping
.
toDto
(
domain
));
}
}
@ApiOperation
(
value
=
"批量保存组"
,
tags
=
{
"组"
},
notes
=
"批量保存组"
)
@ApiOperation
(
value
=
"批量保存组"
,
tags
=
{
"组"
},
notes
=
"批量保存组"
)
...
...
ibzou-util/pom.xml
浏览文件 @
36daf359
...
@@ -90,5 +90,39 @@
...
@@ -90,5 +90,39 @@
<artifactId>
feign-httpclient
</artifactId>
<artifactId>
feign-httpclient
</artifactId>
</dependency>
</dependency>
<!-- drools -->
<dependency>
<groupId>
org.drools
</groupId>
<artifactId>
drools-compiler
</artifactId>
</dependency>
<dependency>
<groupId>
org.drools
</groupId>
<artifactId>
drools-core
</artifactId>
</dependency>
<dependency>
<groupId>
org.kie
</groupId>
<artifactId>
kie-spring
</artifactId>
</dependency>
<dependency>
<groupId>
org.kie
</groupId>
<artifactId>
kie-api
</artifactId>
</dependency>
<dependency>
<groupId>
org.flowable
</groupId>
<artifactId>
flowable-json-converter
</artifactId>
</dependency>
<dependency>
<groupId>
org.flowable
</groupId>
<artifactId>
flowable-ui-modeler-conf
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
log4j-slf4j-impl
</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
ibzou-util/src/main/java/cn/ibizlab/util/aspect/DELogicAspect.java
0 → 100644
浏览文件 @
36daf359
此差异已折叠。
点击以展开。
ibzou-util/src/main/java/cn/ibizlab/util/domain/DELogic.java
0 → 100644
浏览文件 @
36daf359
package
cn
.
ibizlab
.
util
.
domain
;
import
lombok.Data
;
import
org.flowable.bpmn.model.Process
;
import
org.kie.api.runtime.KieContainer
;
import
java.io.File
;
import
java.io.Serializable
;
import
java.util.List
;
@Data
public
class
DELogic
implements
Serializable
{
String
id
;
String
name
;
Process
process
;
KieContainer
container
;
List
<
DELogic
>
refLogic
;
List
<
File
>
refRuleFiles
;
String
md5
;
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录