Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
838299c9
提交
838299c9
编写于
9月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码
上级
b39d60bb
变更
23
显示空白字符变更
内嵌
并排
正在显示
23 个修改的文件
包含
142 行增加
和
142 行删除
+142
-142
view-config.json
app_web/public/assets/json/view-config.json
+2
-2
ibzorganization-auth-service-base.ts
...vice/ibzorganization/ibzorganization-auth-service-base.ts
+1
-1
ibzorganization-auth-service.ts
...thservice/ibzorganization/ibzorganization-auth-service.ts
+1
-1
ibzorganization_en_US.ts
.../lanres/entities/ibzorganization/ibzorganization_en_US.ts
+2
-2
ibzorganization_zh_CN.ts
.../lanres/entities/ibzorganization/ibzorganization_zh_CN.ts
+2
-2
viewconfig.ts
app_web/src/mock/viewconfig/viewconfig.ts
+2
-2
ibzorganization-service-base.ts
...c/service/ibzorganization/ibzorganization-service-base.ts
+1
-1
ibzorganization-service.ts
...eb/src/service/ibzorganization/ibzorganization-service.ts
+1
-1
ibzorganization-ui-service-base.ts
...ervice/ibzorganization/ibzorganization-ui-service-base.ts
+1
-1
ibzorganization-ui-service.ts
...c/uiservice/ibzorganization/ibzorganization-ui-service.ts
+1
-1
default-searchform-service.ts
...nization/default-searchform/default-searchform-service.ts
+1
-1
main-form-service.ts
...rc/widgets/ibzorganization/main-form/main-form-service.ts
+1
-1
main-grid-service.ts
...rc/widgets/ibzorganization/main-grid/main-grid-service.ts
+1
-1
new-form-form-service.ts
...ts/ibzorganization/new-form-form/new-form-form-service.ts
+1
-1
org-tree-treeview-service.ts
...ganization/org-tree-treeview/org-tree-treeview-service.ts
+1
-1
IBZOrganization.java
.../main/java/cn/ibizlab/core/ou/domain/IBZOrganization.java
+1
-1
IBZOrganizationServiceImpl.java
...zlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
+1
-1
systemResource.json
ibzou-core/src/main/resources/permission/systemResource.json
+1
-1
IBZDepartmentResource.java
.../main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
+13
-13
IBZDeptMemberResource.java
.../main/java/cn/ibizlab/api/rest/IBZDeptMemberResource.java
+39
-39
IBZEmployeeResource.java
...rc/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
+28
-28
IBZOrganizationResource.java
...ain/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
+14
-14
IBZTeamMemberResource.java
.../main/java/cn/ibizlab/api/rest/IBZTeamMemberResource.java
+26
-26
未找到文件。
app_web/public/assets/json/view-config.json
浏览文件 @
838299c9
...
...
@@ -209,7 +209,7 @@
},
"ibzorganizationpickupview"
:
{
"title"
:
"单位机构数据选择视图"
,
"caption"
:
"单位机构
1
"
,
"caption"
:
"单位机构"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"ou"
,
"viewname"
:
"IBZOrganizationPickupView"
,
...
...
@@ -217,7 +217,7 @@
},
"ibzorganizationpickupgridview"
:
{
"title"
:
"单位机构选择表格视图"
,
"caption"
:
"单位机构
1
"
,
"caption"
:
"单位机构"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"ou"
,
"viewname"
:
"IBZOrganizationPickupGridView"
,
...
...
app_web/src/authservice/ibzorganization/ibzorganization-auth-service-base.ts
浏览文件 @
838299c9
import
AuthService
from
'../auth-service'
;
/**
* 单位机构
1
权限服务对象基类
* 单位机构权限服务对象基类
*
* @export
* @class IBZOrganizationAuthServiceBase
...
...
app_web/src/authservice/ibzorganization/ibzorganization-auth-service.ts
浏览文件 @
838299c9
...
...
@@ -2,7 +2,7 @@ import IBZOrganizationAuthServiceBase from './ibzorganization-auth-service-base'
/**
* 单位机构
1
权限服务对象
* 单位机构权限服务对象
*
* @export
* @class IBZOrganizationAuthService
...
...
app_web/src/locale/lanres/entities/ibzorganization/ibzorganization_en_US.ts
浏览文件 @
838299c9
...
...
@@ -32,11 +32,11 @@ export default {
title
:
"单位管理"
,
},
pickupview
:
{
caption
:
"单位机构
1
"
,
caption
:
"单位机构"
,
title
:
"单位机构数据选择视图"
,
},
pickupgridview
:
{
caption
:
"单位机构
1
"
,
caption
:
"单位机构"
,
title
:
"单位机构选择表格视图"
,
},
},
...
...
app_web/src/locale/lanres/entities/ibzorganization/ibzorganization_zh_CN.ts
浏览文件 @
838299c9
...
...
@@ -31,11 +31,11 @@ export default {
title
:
"单位管理"
,
},
pickupview
:
{
caption
:
"单位机构
1
"
,
caption
:
"单位机构"
,
title
:
"单位机构数据选择视图"
,
},
pickupgridview
:
{
caption
:
"单位机构
1
"
,
caption
:
"单位机构"
,
title
:
"单位机构选择表格视图"
,
},
},
...
...
app_web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
838299c9
...
...
@@ -217,7 +217,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
},
"ibzorganizationpickupview"
:
{
"title"
:
"单位机构数据选择视图"
,
"caption"
:
"单位机构
1
"
,
"caption"
:
"单位机构"
,
"viewtype"
:
"DEPICKUPVIEW"
,
"viewmodule"
:
"ou"
,
"viewname"
:
"IBZOrganizationPickupView"
,
...
...
@@ -225,7 +225,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
},
"ibzorganizationpickupgridview"
:
{
"title"
:
"单位机构选择表格视图"
,
"caption"
:
"单位机构
1
"
,
"caption"
:
"单位机构"
,
"viewtype"
:
"DEPICKUPGRIDVIEW"
,
"viewmodule"
:
"ou"
,
"viewname"
:
"IBZOrganizationPickupGridView"
,
...
...
app_web/src/service/ibzorganization/ibzorganization-service-base.ts
浏览文件 @
838299c9
...
...
@@ -4,7 +4,7 @@ import EntityService from '../entity-service';
/**
* 单位机构
1
服务对象基类
* 单位机构服务对象基类
*
* @export
* @class IBZOrganizationServiceBase
...
...
app_web/src/service/ibzorganization/ibzorganization-service.ts
浏览文件 @
838299c9
...
...
@@ -3,7 +3,7 @@ import IBZOrganizationServiceBase from './ibzorganization-service-base';
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @export
* @class IBZOrganizationService
...
...
app_web/src/uiservice/ibzorganization/ibzorganization-ui-service-base.ts
浏览文件 @
838299c9
...
...
@@ -6,7 +6,7 @@ import IBZOrganizationService from '@/service/ibzorganization/ibzorganization-se
import
IBZOrganizationAuthService
from
'@/authservice/ibzorganization/ibzorganization-auth-service'
;
/**
* 单位机构
1
UI服务对象基类
* 单位机构UI服务对象基类
*
* @export
* @class IBZOrganizationUIServiceBase
...
...
app_web/src/uiservice/ibzorganization/ibzorganization-ui-service.ts
浏览文件 @
838299c9
import
IBZOrganizationUIServiceBase
from
'./ibzorganization-ui-service-base'
;
/**
* 单位机构
1
UI服务对象
* 单位机构UI服务对象
*
* @export
* @class IBZOrganizationUIService
...
...
app_web/src/widgets/ibzorganization/default-searchform/default-searchform-service.ts
浏览文件 @
838299c9
...
...
@@ -13,7 +13,7 @@ import DefaultModel from './default-searchform-model';
export
default
class
DefaultService
extends
ControlService
{
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof DefaultService
...
...
app_web/src/widgets/ibzorganization/main-form/main-form-service.ts
浏览文件 @
838299c9
...
...
@@ -13,7 +13,7 @@ import MainModel from './main-form-model';
export
default
class
MainService
extends
ControlService
{
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof MainService
...
...
app_web/src/widgets/ibzorganization/main-grid/main-grid-service.ts
浏览文件 @
838299c9
...
...
@@ -13,7 +13,7 @@ import MainModel from './main-grid-model';
export
default
class
MainService
extends
ControlService
{
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof MainService
...
...
app_web/src/widgets/ibzorganization/new-form-form/new-form-form-service.ts
浏览文件 @
838299c9
...
...
@@ -13,7 +13,7 @@ import NewFormModel from './new-form-form-model';
export
default
class
NewFormService
extends
ControlService
{
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof NewFormService
...
...
app_web/src/widgets/ibzorganization/org-tree-treeview/org-tree-treeview-service.ts
浏览文件 @
838299c9
...
...
@@ -15,7 +15,7 @@ import i18n from '@/locale';
export
default
class
OrgTreeService
extends
ControlService
{
/**
* 单位机构
1
服务对象
* 单位机构服务对象
*
* @type {IBZOrganizationService}
* @memberof OrgTreeService
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/domain/IBZOrganization.java
浏览文件 @
838299c9
...
...
@@ -29,7 +29,7 @@ import com.baomidou.mybatisplus.annotation.*;
import
cn.ibizlab.util.domain.EntityMP
;
/**
* 实体[单位机构
1
]
* 实体[单位机构]
*/
@Getter
@Setter
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
浏览文件 @
838299c9
...
...
@@ -40,7 +40,7 @@ import com.alibaba.fastjson.JSONObject;
import
org.springframework.util.StringUtils
;
/**
* 实体[单位机构
1
] 服务对象接口实现
* 实体[单位机构] 服务对象接口实现
*/
@Slf4j
@Service
(
"IBZOrganizationServiceImpl"
)
...
...
ibzou-core/src/main/resources/permission/systemResource.json
浏览文件 @
838299c9
...
...
@@ -13,7 +13,7 @@
}
,
{
"dename"
:
"IBZOrganization"
,
"delogicname"
:
"单位机构
1
"
,
"delogicname"
:
"单位机构"
,
"sysmoudle"
:{
"id"
:
"OU"
,
"name"
:
"ou"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"DEFAULT"
}],
"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"
}],
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
浏览文件 @
838299c9
...
...
@@ -157,7 +157,7 @@ public class IBZDepartmentResource {
.
body
(
new
PageImpl
(
ibzdepartmentMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentMapping.toDomain(#ibzdepartmentdto),'ibzou-IBZDepartment-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1建立部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
建立部门"
)
@ApiOperation
(
value
=
"根据单位机构
建立部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
建立部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments"
)
public
ResponseEntity
<
IBZDepartmentDTO
>
createByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZDepartmentDTO
ibzdepartmentdto
)
{
IBZDepartment
domain
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdto
);
...
...
@@ -168,7 +168,7 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentMapping.toDomain(#ibzdepartmentdtos),'ibzou-IBZDepartment-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量建立部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
批量建立部门"
)
@ApiOperation
(
value
=
"根据单位机构
批量建立部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
批量建立部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZDepartmentDTO
>
ibzdepartmentdtos
)
{
List
<
IBZDepartment
>
domainlist
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdtos
);
...
...
@@ -181,7 +181,7 @@ public class IBZDepartmentResource {
@VersionCheck
(
entity
=
"ibzdepartment"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibzdepartmentService.get(#ibzdepartment_id),'ibzou-IBZDepartment-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1更新部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
更新部门"
)
@ApiOperation
(
value
=
"根据单位机构
更新部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
更新部门"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}"
)
public
ResponseEntity
<
IBZDepartmentDTO
>
updateByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZDepartmentDTO
ibzdepartmentdto
)
{
IBZDepartment
domain
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdto
);
...
...
@@ -193,7 +193,7 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentService.getIbzdepartmentByEntities(this.ibzdepartmentMapping.toDomain(#ibzdepartmentdtos)),'ibzou-IBZDepartment-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量更新部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
批量更新部门"
)
@ApiOperation
(
value
=
"根据单位机构
批量更新部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
批量更新部门"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZDepartmentDTO
>
ibzdepartmentdtos
)
{
List
<
IBZDepartment
>
domainlist
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdtos
);
...
...
@@ -205,14 +205,14 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentService.get(#ibzdepartment_id),'ibzou-IBZDepartment-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1删除部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
删除部门"
)
@ApiOperation
(
value
=
"根据单位机构
删除部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
删除部门"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdepartmentService
.
remove
(
ibzdepartment_id
));
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentService.getIbzdepartmentByIds(#ids),'ibzou-IBZDepartment-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量删除部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
批量删除部门"
)
@ApiOperation
(
value
=
"根据单位机构
批量删除部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
批量删除部门"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganization
(
@RequestBody
List
<
String
>
ids
)
{
ibzdepartmentService
.
removeBatch
(
ids
);
...
...
@@ -220,7 +220,7 @@ public class IBZDepartmentResource {
}
@PostAuthorize
(
"hasPermission(this.ibzdepartmentMapping.toDomain(returnObject.body),'ibzou-IBZDepartment-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1获取部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
获取部门"
)
@ApiOperation
(
value
=
"根据单位机构
获取部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
获取部门"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}"
)
public
ResponseEntity
<
IBZDepartmentDTO
>
getByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
)
{
IBZDepartment
domain
=
ibzdepartmentService
.
get
(
ibzdepartment_id
);
...
...
@@ -228,7 +228,7 @@ public class IBZDepartmentResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1获取部门草稿"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
获取部门草稿"
)
@ApiOperation
(
value
=
"根据单位机构
获取部门草稿"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
获取部门草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/getdraft"
)
public
ResponseEntity
<
IBZDepartmentDTO
>
getDraftByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
)
{
IBZDepartment
domain
=
new
IBZDepartment
();
...
...
@@ -236,14 +236,14 @@ public class IBZDepartmentResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdepartmentMapping
.
toDto
(
ibzdepartmentService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1检查部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
检查部门"
)
@ApiOperation
(
value
=
"根据单位机构
检查部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
检查部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZDepartmentDTO
ibzdepartmentdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdepartmentService
.
checkKey
(
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdto
)));
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentMapping.toDomain(#ibzdepartmentdto),'ibzou-IBZDepartment-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
保存部门"
)
@ApiOperation
(
value
=
"根据单位机构
保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
保存部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZDepartmentDTO
ibzdepartmentdto
)
{
IBZDepartment
domain
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdto
);
...
...
@@ -252,7 +252,7 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasPermission(this.ibzdepartmentMapping.toDomain(#ibzdepartmentdtos),'ibzou-IBZDepartment-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构1
批量保存部门"
)
@ApiOperation
(
value
=
"根据单位机构
批量保存部门"
,
tags
=
{
"部门"
},
notes
=
"根据单位机构
批量保存部门"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZDepartmentDTO
>
ibzdepartmentdtos
)
{
List
<
IBZDepartment
>
domainlist
=
ibzdepartmentMapping
.
toDomain
(
ibzdepartmentdtos
);
...
...
@@ -264,7 +264,7 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDepartment-searchDefault-all') and hasPermission(#context,'ibzou-IBZDepartment-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1获取DEFAULT"
,
tags
=
{
"部门"
}
,
notes
=
"根据单位机构1
获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
获取DEFAULT"
,
tags
=
{
"部门"
}
,
notes
=
"根据单位机构
获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZDepartmentDTO
>>
fetchIBZDepartmentDefaultByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
IBZDepartmentSearchContext
context
)
{
context
.
setN_orgid_eq
(
ibzorganization_id
);
...
...
@@ -278,7 +278,7 @@ public class IBZDepartmentResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDepartment-searchDefault-all') and hasPermission(#context,'ibzou-IBZDepartment-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1查询DEFAULT"
,
tags
=
{
"部门"
}
,
notes
=
"根据单位机构1
查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
查询DEFAULT"
,
tags
=
{
"部门"
}
,
notes
=
"根据单位机构
查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZDepartmentDTO
>>
searchIBZDepartmentDefaultByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZDepartmentSearchContext
context
)
{
context
.
setN_orgid_eq
(
ibzorganization_id
);
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZDeptMemberResource.java
浏览文件 @
838299c9
...
...
@@ -543,7 +543,7 @@ public class IBZDeptMemberResource {
.
body
(
new
PageImpl
(
ibzdeptmemberMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
createByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -554,7 +554,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门批量建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门批量建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -566,7 +566,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
updateByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -578,7 +578,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门批量更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门批量更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -590,14 +590,14 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
remove
(
ibzdeptmember_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门批量删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门批量删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZDepartment
(
@RequestBody
List
<
String
>
ids
)
{
ibzdeptmemberService
.
removeBatch
(
ids
);
...
...
@@ -605,7 +605,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Get-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门获取部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门获取部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
IBZDeptMember
domain
=
ibzdeptmemberService
.
get
(
ibzdeptmember_id
);
...
...
@@ -613,7 +613,7 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1部门获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门获取部门成员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门获取部门成员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/getdraft"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getDraftByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
)
{
IBZDeptMember
domain
=
new
IBZDeptMember
();
...
...
@@ -621,14 +621,14 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberMapping
.
toDto
(
ibzdeptmemberService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1部门检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门检查部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门检查部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
checkKey
(
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -637,7 +637,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门批量保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -649,7 +649,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
部门获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
部门获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZDeptMemberDTO
>>
fetchIBZDeptMemberDefaultByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzdepartment_id
);
...
...
@@ -663,7 +663,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
部门查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
部门查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzdeptmembers/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZDeptMemberDTO
>>
searchIBZDeptMemberDefaultByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzdepartment_id
);
...
...
@@ -672,7 +672,7 @@ public class IBZDeptMemberResource {
.
body
(
new
PageImpl
(
ibzdeptmemberMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
createByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -683,7 +683,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员批量建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员批量建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -695,7 +695,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
updateByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -707,7 +707,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员批量更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员批量更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -719,14 +719,14 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
remove
(
ibzdeptmember_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员批量删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员批量删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZEmployee
(
@RequestBody
List
<
String
>
ids
)
{
ibzdeptmemberService
.
removeBatch
(
ids
);
...
...
@@ -734,7 +734,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Get-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员获取部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员获取部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
IBZDeptMember
domain
=
ibzdeptmemberService
.
get
(
ibzdeptmember_id
);
...
...
@@ -742,7 +742,7 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1人员获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员获取部门成员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员获取部门成员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/getdraft"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getDraftByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZDeptMember
domain
=
new
IBZDeptMember
();
...
...
@@ -750,14 +750,14 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberMapping
.
toDto
(
ibzdeptmemberService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1人员检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员检查部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员检查部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
checkKey
(
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -766,7 +766,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
人员批量保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -778,7 +778,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
人员获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
人员获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZDeptMemberDTO
>>
fetchIBZDeptMemberDefaultByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -792,7 +792,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
人员查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
人员查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
人员查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZDeptMemberDTO
>>
searchIBZDeptMemberDefaultByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -801,7 +801,7 @@ public class IBZDeptMemberResource {
.
body
(
new
PageImpl
(
ibzdeptmemberMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
createByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -812,7 +812,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员批量建立部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量建立部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员批量建立部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -824,7 +824,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
updateByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -836,7 +836,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员批量更新部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量更新部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员批量更新部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -848,14 +848,14 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
remove
(
ibzdeptmember_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员批量删除部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量删除部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员批量删除部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@RequestBody
List
<
String
>
ids
)
{
ibzdeptmemberService
.
removeBatch
(
ids
);
...
...
@@ -863,7 +863,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Get-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员获取部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员获取部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/{ibzdeptmember_id}"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzdeptmember_id"
)
String
ibzdeptmember_id
)
{
IBZDeptMember
domain
=
ibzdeptmemberService
.
get
(
ibzdeptmember_id
);
...
...
@@ -871,7 +871,7 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员获取部门成员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取部门成员草稿"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员获取部门成员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/getdraft"
)
public
ResponseEntity
<
IBZDeptMemberDTO
>
getDraftByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZDeptMember
domain
=
new
IBZDeptMember
();
...
...
@@ -879,14 +879,14 @@ public class IBZDeptMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberMapping
.
toDto
(
ibzdeptmemberService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1部门人员检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员检查部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员检查部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员检查部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzdeptmemberService
.
checkKey
(
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberDTO
ibzdeptmemberdto
)
{
IBZDeptMember
domain
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdto
);
...
...
@@ -895,7 +895,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构1
部门人员批量保存部门成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量保存部门成员"
,
tags
=
{
"部门成员"
},
notes
=
"根据单位机构
部门人员批量保存部门成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZDeptMemberDTO
>
ibzdeptmemberdtos
)
{
List
<
IBZDeptMember
>
domainlist
=
ibzdeptmemberMapping
.
toDomain
(
ibzdeptmemberdtos
);
...
...
@@ -907,7 +907,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
部门人员获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
部门人员获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZDeptMemberDTO
>>
fetchIBZDeptMemberDefaultByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -921,7 +921,7 @@ public class IBZDeptMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDeptMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构1
部门人员查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员查询DEFAULT"
,
tags
=
{
"部门成员"
}
,
notes
=
"根据单位机构
部门人员查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzdeptmembers/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZDeptMemberDTO
>>
searchIBZDeptMemberDefaultByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZDeptMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
浏览文件 @
838299c9
...
...
@@ -309,7 +309,7 @@ public class IBZEmployeeResource {
.
body
(
new
PageImpl
(
ibzemployeeMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedto),'ibzou-IBZEmployee-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
建立人员"
)
@ApiOperation
(
value
=
"根据单位机构
建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
建立人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
createByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -320,7 +320,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedtos),'ibzou-IBZEmployee-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
批量建立人员"
)
@ApiOperation
(
value
=
"根据单位机构
批量建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
批量建立人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -333,7 +333,7 @@ public class IBZEmployeeResource {
@VersionCheck
(
entity
=
"ibzemployee"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.get(#ibzemployee_id),'ibzou-IBZEmployee-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
更新人员"
)
@ApiOperation
(
value
=
"根据单位机构
更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
更新人员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
updateByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -345,7 +345,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.getIbzemployeeByEntities(this.ibzemployeeMapping.toDomain(#ibzemployeedtos)),'ibzou-IBZEmployee-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
批量更新人员"
)
@ApiOperation
(
value
=
"根据单位机构
批量更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
批量更新人员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -357,14 +357,14 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.get(#ibzemployee_id),'ibzou-IBZEmployee-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
删除人员"
)
@ApiOperation
(
value
=
"根据单位机构
删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
删除人员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeService
.
remove
(
ibzemployee_id
));
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.getIbzemployeeByIds(#ids),'ibzou-IBZEmployee-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
批量删除人员"
)
@ApiOperation
(
value
=
"根据单位机构
批量删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
批量删除人员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganization
(
@RequestBody
List
<
String
>
ids
)
{
ibzemployeeService
.
removeBatch
(
ids
);
...
...
@@ -372,7 +372,7 @@ public class IBZEmployeeResource {
}
@PostAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(returnObject.body),'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1获取人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
获取人员"
)
@ApiOperation
(
value
=
"根据单位机构
获取人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
获取人员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
getByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZEmployee
domain
=
ibzemployeeService
.
get
(
ibzemployee_id
);
...
...
@@ -380,7 +380,7 @@ public class IBZEmployeeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1获取人员草稿"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
获取人员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
获取人员草稿"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
获取人员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/getdraft"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
getDraftByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
)
{
IBZEmployee
domain
=
new
IBZEmployee
();
...
...
@@ -388,14 +388,14 @@ public class IBZEmployeeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeMapping
.
toDto
(
ibzemployeeService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1检查人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
检查人员"
)
@ApiOperation
(
value
=
"根据单位机构
检查人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
检查人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeService
.
checkKey
(
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-InitPwd-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
人员"
)
@ApiOperation
(
value
=
"根据单位机构
人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/initpwd"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
initPwdByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -406,7 +406,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedto),'ibzou-IBZEmployee-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
保存人员"
)
@ApiOperation
(
value
=
"根据单位机构
保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -415,7 +415,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedtos),'ibzou-IBZEmployee-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
批量保存人员"
)
@ApiOperation
(
value
=
"根据单位机构
批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
批量保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -427,7 +427,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-searchDefault-all') and hasPermission(#context,'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1获取DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构1
获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
获取DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构
获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZEmployeeDTO
>>
fetchIBZEmployeeDefaultByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
IBZEmployeeSearchContext
context
)
{
context
.
setN_orgid_eq
(
ibzorganization_id
);
...
...
@@ -441,7 +441,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-searchDefault-all') and hasPermission(#context,'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1查询DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构1
查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
查询DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构
查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZEmployeeDTO
>>
searchIBZEmployeeDefaultByIBZOrganization
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZEmployeeSearchContext
context
)
{
context
.
setN_orgid_eq
(
ibzorganization_id
);
...
...
@@ -450,7 +450,7 @@ public class IBZEmployeeResource {
.
body
(
new
PageImpl
(
ibzemployeeMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedto),'ibzou-IBZEmployee-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门建立人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门建立人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
createByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -461,7 +461,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedtos),'ibzou-IBZEmployee-Create')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门批量建立人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量建立人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门批量建立人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -474,7 +474,7 @@ public class IBZEmployeeResource {
@VersionCheck
(
entity
=
"ibzemployee"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.get(#ibzemployee_id),'ibzou-IBZEmployee-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门更新人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门更新人员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
updateByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -486,7 +486,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.getIbzemployeeByEntities(this.ibzemployeeMapping.toDomain(#ibzemployeedtos)),'ibzou-IBZEmployee-Update')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门批量更新人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量更新人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门批量更新人员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -498,14 +498,14 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.get(#ibzemployee_id),'ibzou-IBZEmployee-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门删除人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门删除人员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeService
.
remove
(
ibzemployee_id
));
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeService.getIbzemployeeByIds(#ids),'ibzou-IBZEmployee-Remove')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门批量删除人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量删除人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门批量删除人员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZDepartment
(
@RequestBody
List
<
String
>
ids
)
{
ibzemployeeService
.
removeBatch
(
ids
);
...
...
@@ -513,7 +513,7 @@ public class IBZEmployeeResource {
}
@PostAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(returnObject.body),'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门获取人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门获取人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门获取人员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
getByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZEmployee
domain
=
ibzemployeeService
.
get
(
ibzemployee_id
);
...
...
@@ -521,7 +521,7 @@ public class IBZEmployeeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1部门获取人员草稿"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门获取人员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取人员草稿"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门获取人员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/getdraft"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
getDraftByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
)
{
IBZEmployee
domain
=
new
IBZEmployee
();
...
...
@@ -529,14 +529,14 @@ public class IBZEmployeeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeMapping
.
toDto
(
ibzemployeeService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1部门检查人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门检查人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门检查人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门检查人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzemployeeService
.
checkKey
(
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-InitPwd-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/initpwd"
)
public
ResponseEntity
<
IBZEmployeeDTO
>
initPwdByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -547,7 +547,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedto),'ibzou-IBZEmployee-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门保存人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
IBZEmployee
domain
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedto
);
...
...
@@ -556,7 +556,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasPermission(this.ibzemployeeMapping.toDomain(#ibzemployeedtos),'ibzou-IBZEmployee-Save')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构1
部门批量保存人员"
)
@ApiOperation
(
value
=
"根据单位机构
部门批量保存人员"
,
tags
=
{
"人员"
},
notes
=
"根据单位机构
部门批量保存人员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
List
<
IBZEmployeeDTO
>
ibzemployeedtos
)
{
List
<
IBZEmployee
>
domainlist
=
ibzemployeeMapping
.
toDomain
(
ibzemployeedtos
);
...
...
@@ -568,7 +568,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-searchDefault-all') and hasPermission(#context,'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门获取DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构1
部门获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门获取DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构
部门获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZEmployeeDTO
>>
fetchIBZEmployeeDefaultByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
IBZEmployeeSearchContext
context
)
{
context
.
setN_mdeptid_eq
(
ibzdepartment_id
);
...
...
@@ -582,7 +582,7 @@ public class IBZEmployeeResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-searchDefault-all') and hasPermission(#context,'ibzou-IBZEmployee-Get')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门查询DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构1
部门查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门查询DEFAULT"
,
tags
=
{
"人员"
}
,
notes
=
"根据单位机构
部门查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZEmployeeDTO
>>
searchIBZEmployeeDefaultByIBZOrganizationIBZDepartment
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@RequestBody
IBZEmployeeSearchContext
context
)
{
context
.
setN_mdeptid_eq
(
ibzdepartment_id
);
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
浏览文件 @
838299c9
...
...
@@ -34,7 +34,7 @@ import cn.ibizlab.core.ou.filter.IBZOrganizationSearchContext;
import
cn.ibizlab.util.annotation.VersionCheck
;
@Slf4j
@Api
(
tags
=
{
"单位机构
1
"
})
@Api
(
tags
=
{
"单位机构"
})
@RestController
(
"api-ibzorganization"
)
@RequestMapping
(
""
)
public
class
IBZOrganizationResource
{
...
...
@@ -47,7 +47,7 @@ public class IBZOrganizationResource {
public
IBZOrganizationMapping
ibzorganizationMapping
;
@PreAuthorize
(
"hasPermission(this.ibzorganizationMapping.toDomain(#ibzorganizationdto),'ibzou-IBZOrganization-Create')"
)
@ApiOperation
(
value
=
"新建单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"新建单位机构1
"
)
@ApiOperation
(
value
=
"新建单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"新建单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations"
)
public
ResponseEntity
<
IBZOrganizationDTO
>
create
(
@RequestBody
IBZOrganizationDTO
ibzorganizationdto
)
{
IBZOrganization
domain
=
ibzorganizationMapping
.
toDomain
(
ibzorganizationdto
);
...
...
@@ -57,7 +57,7 @@ public class IBZOrganizationResource {
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationMapping.toDomain(#ibzorganizationdtos),'ibzou-IBZOrganization-Create')"
)
@ApiOperation
(
value
=
"批量新建单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"批量新建单位机构1
"
)
@ApiOperation
(
value
=
"批量新建单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"批量新建单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
IBZOrganizationDTO
>
ibzorganizationdtos
)
{
ibzorganizationService
.
createBatch
(
ibzorganizationMapping
.
toDomain
(
ibzorganizationdtos
));
...
...
@@ -66,7 +66,7 @@ public class IBZOrganizationResource {
@VersionCheck
(
entity
=
"ibzorganization"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibzorganizationService.get(#ibzorganization_id),'ibzou-IBZOrganization-Update')"
)
@ApiOperation
(
value
=
"更新单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"更新单位机构1
"
)
@ApiOperation
(
value
=
"更新单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"更新单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}"
)
public
ResponseEntity
<
IBZOrganizationDTO
>
update
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@RequestBody
IBZOrganizationDTO
ibzorganizationdto
)
{
IBZOrganization
domain
=
ibzorganizationMapping
.
toDomain
(
ibzorganizationdto
);
...
...
@@ -77,7 +77,7 @@ public class IBZOrganizationResource {
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationService.getIbzorganizationByEntities(this.ibzorganizationMapping.toDomain(#ibzorganizationdtos)),'ibzou-IBZOrganization-Update')"
)
@ApiOperation
(
value
=
"批量更新单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"批量更新单位机构1
"
)
@ApiOperation
(
value
=
"批量更新单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"批量更新单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
IBZOrganizationDTO
>
ibzorganizationdtos
)
{
ibzorganizationService
.
updateBatch
(
ibzorganizationMapping
.
toDomain
(
ibzorganizationdtos
));
...
...
@@ -85,14 +85,14 @@ public class IBZOrganizationResource {
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationService.get(#ibzorganization_id),'ibzou-IBZOrganization-Remove')"
)
@ApiOperation
(
value
=
"删除单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"删除单位机构1
"
)
@ApiOperation
(
value
=
"删除单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"删除单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}"
)
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzorganizationService
.
remove
(
ibzorganization_id
));
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationService.getIbzorganizationByIds(#ids),'ibzou-IBZOrganization-Remove')"
)
@ApiOperation
(
value
=
"批量删除单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"批量删除单位机构1
"
)
@ApiOperation
(
value
=
"批量删除单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"批量删除单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
ibzorganizationService
.
removeBatch
(
ids
);
...
...
@@ -100,7 +100,7 @@ public class IBZOrganizationResource {
}
@PostAuthorize
(
"hasPermission(this.ibzorganizationMapping.toDomain(returnObject.body),'ibzou-IBZOrganization-Get')"
)
@ApiOperation
(
value
=
"获取单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"获取单位机构1
"
)
@ApiOperation
(
value
=
"获取单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"获取单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}"
)
public
ResponseEntity
<
IBZOrganizationDTO
>
get
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
)
{
IBZOrganization
domain
=
ibzorganizationService
.
get
(
ibzorganization_id
);
...
...
@@ -108,27 +108,27 @@ public class IBZOrganizationResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"获取单位机构
1草稿"
,
tags
=
{
"单位机构1"
},
notes
=
"获取单位机构1
草稿"
)
@ApiOperation
(
value
=
"获取单位机构
草稿"
,
tags
=
{
"单位机构"
},
notes
=
"获取单位机构
草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/getdraft"
)
public
ResponseEntity
<
IBZOrganizationDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzorganizationMapping
.
toDto
(
ibzorganizationService
.
getDraft
(
new
IBZOrganization
())));
}
@ApiOperation
(
value
=
"检查单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"检查单位机构1
"
)
@ApiOperation
(
value
=
"检查单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"检查单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBZOrganizationDTO
ibzorganizationdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzorganizationService
.
checkKey
(
ibzorganizationMapping
.
toDomain
(
ibzorganizationdto
)));
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationMapping.toDomain(#ibzorganizationdto),'ibzou-IBZOrganization-Save')"
)
@ApiOperation
(
value
=
"保存单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"保存单位机构1
"
)
@ApiOperation
(
value
=
"保存单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"保存单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
IBZOrganizationDTO
ibzorganizationdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzorganizationService
.
save
(
ibzorganizationMapping
.
toDomain
(
ibzorganizationdto
)));
}
@PreAuthorize
(
"hasPermission(this.ibzorganizationMapping.toDomain(#ibzorganizationdtos),'ibzou-IBZOrganization-Save')"
)
@ApiOperation
(
value
=
"批量保存单位机构
1"
,
tags
=
{
"单位机构1"
},
notes
=
"批量保存单位机构1
"
)
@ApiOperation
(
value
=
"批量保存单位机构
"
,
tags
=
{
"单位机构"
},
notes
=
"批量保存单位机构
"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
IBZOrganizationDTO
>
ibzorganizationdtos
)
{
ibzorganizationService
.
saveBatch
(
ibzorganizationMapping
.
toDomain
(
ibzorganizationdtos
));
...
...
@@ -136,7 +136,7 @@ public class IBZOrganizationResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZOrganization-searchDefault-all') and hasPermission(#context,'ibzou-IBZOrganization-Get')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"单位机构
1
"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"单位机构"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZOrganizationDTO
>>
fetchDefault
(
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
...
...
@@ -149,7 +149,7 @@ public class IBZOrganizationResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZOrganization-searchDefault-all') and hasPermission(#context,'ibzou-IBZOrganization-Get')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"单位机构
1
"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"单位机构"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZOrganizationDTO
>>
searchDefault
(
@RequestBody
IBZOrganizationSearchContext
context
)
{
Page
<
IBZOrganization
>
domains
=
ibzorganizationService
.
searchDefault
(
context
)
;
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZTeamMemberResource.java
浏览文件 @
838299c9
...
...
@@ -543,7 +543,7 @@ public class IBZTeamMemberResource {
.
body
(
new
PageImpl
(
ibzteammemberMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员建立组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员建立组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
createByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -554,7 +554,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员批量建立组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员批量建立组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -566,7 +566,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员更新组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员更新组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
updateByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -578,7 +578,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员批量更新组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员批量更新组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -590,14 +590,14 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员删除组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员删除组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberService
.
remove
(
ibzteammember_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员批量删除组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员批量删除组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZEmployee
(
@RequestBody
List
<
String
>
ids
)
{
ibzteammemberService
.
removeBatch
(
ids
);
...
...
@@ -605,7 +605,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Get-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员获取组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员获取组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员获取组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
getByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
)
{
IBZTeamMember
domain
=
ibzteammemberService
.
get
(
ibzteammember_id
);
...
...
@@ -613,7 +613,7 @@ public class IBZTeamMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1人员获取组成员草稿"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员获取组成员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取组成员草稿"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员获取组成员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/getdraft"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
getDraftByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZTeamMember
domain
=
new
IBZTeamMember
();
...
...
@@ -621,14 +621,14 @@ public class IBZTeamMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberMapping
.
toDto
(
ibzteammemberService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1人员检查组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员检查组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员检查组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员检查组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberService
.
checkKey
(
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -637,7 +637,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构
人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
人员批量保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -649,7 +649,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员获取DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构1
人员获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
人员获取DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构
人员获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZTeamMemberDTO
>>
fetchIBZTeamMemberDefaultByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
IBZTeamMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -663,7 +663,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1人员查询DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构1
人员查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
人员查询DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构
人员查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZTeamMemberDTO
>>
searchIBZTeamMemberDefaultByIBZOrganizationIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -672,7 +672,7 @@ public class IBZTeamMemberResource {
.
body
(
new
PageImpl
(
ibzteammemberMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员建立组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员建立组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
createByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -683,7 +683,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Create-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员批量建立组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量建立组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员批量建立组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
createBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -695,7 +695,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员更新组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员更新组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
updateByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -707,7 +707,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Update-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员批量更新组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量更新组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员批量更新组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -719,14 +719,14 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员删除组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员删除组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
Boolean
>
removeByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberService
.
remove
(
ibzteammember_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Remove-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员批量删除组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量删除组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员批量删除组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@RequestBody
List
<
String
>
ids
)
{
ibzteammemberService
.
removeBatch
(
ids
);
...
...
@@ -734,7 +734,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Get-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员获取组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员获取组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/{ibzteammember_id}"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
getByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@PathVariable
(
"ibzteammember_id"
)
String
ibzteammember_id
)
{
IBZTeamMember
domain
=
ibzteammemberService
.
get
(
ibzteammember_id
);
...
...
@@ -742,7 +742,7 @@ public class IBZTeamMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取组成员草稿"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员获取组成员草稿"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取组成员草稿"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员获取组成员草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/getdraft"
)
public
ResponseEntity
<
IBZTeamMemberDTO
>
getDraftByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
)
{
IBZTeamMember
domain
=
new
IBZTeamMember
();
...
...
@@ -750,14 +750,14 @@ public class IBZTeamMemberResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberMapping
.
toDto
(
ibzteammemberService
.
getDraft
(
domain
)));
}
@ApiOperation
(
value
=
"根据单位机构
1部门人员检查组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员检查组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员检查组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员检查组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKeyByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibzteammemberService
.
checkKey
(
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/save"
)
public
ResponseEntity
<
Boolean
>
saveByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberDTO
ibzteammemberdto
)
{
IBZTeamMember
domain
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdto
);
...
...
@@ -766,7 +766,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-Save-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构1
部门人员批量保存组成员"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员批量保存组成员"
,
tags
=
{
"组成员"
},
notes
=
"根据单位机构
部门人员批量保存组成员"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatchByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
List
<
IBZTeamMemberDTO
>
ibzteammemberdtos
)
{
List
<
IBZTeamMember
>
domainlist
=
ibzteammemberMapping
.
toDomain
(
ibzteammemberdtos
);
...
...
@@ -778,7 +778,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员获取DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构1
部门人员获取DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员获取DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构
部门人员获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/fetchdefault"
)
public
ResponseEntity
<
List
<
IBZTeamMemberDTO
>>
fetchIBZTeamMemberDefaultByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
IBZTeamMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
@@ -792,7 +792,7 @@ public class IBZTeamMemberResource {
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzou-IBZTeamMember-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据单位机构
1部门人员查询DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构1
部门人员查询DEFAULT"
)
@ApiOperation
(
value
=
"根据单位机构
部门人员查询DEFAULT"
,
tags
=
{
"组成员"
}
,
notes
=
"根据单位机构
部门人员查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/{ibzorganization_id}/ibzdepartments/{ibzdepartment_id}/ibzemployees/{ibzemployee_id}/ibzteammembers/searchdefault"
)
public
ResponseEntity
<
Page
<
IBZTeamMemberDTO
>>
searchIBZTeamMemberDefaultByIBZOrganizationIBZDepartmentIBZEmployee
(
@PathVariable
(
"ibzorganization_id"
)
String
ibzorganization_id
,
@PathVariable
(
"ibzdepartment_id"
)
String
ibzdepartment_id
,
@PathVariable
(
"ibzemployee_id"
)
String
ibzemployee_id
,
@RequestBody
IBZTeamMemberSearchContext
context
)
{
context
.
setN_userid_eq
(
ibzemployee_id
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录