Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
6a49ea5e
提交
6a49ea5e
编写于
5月 21, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
23718905
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
31 行增加
和
0 行删除
+31
-0
IBZDepartmentMapper.java
...n/java/cn/ibizlab/core/ou/mapper/IBZDepartmentMapper.java
+2
-0
IBZDeptMemberMapper.java
...n/java/cn/ibizlab/core/ou/mapper/IBZDeptMemberMapper.java
+1
-0
IBZEmployeeMapper.java
...ain/java/cn/ibizlab/core/ou/mapper/IBZEmployeeMapper.java
+2
-0
IBZOrganizationMapper.java
...java/cn/ibizlab/core/ou/mapper/IBZOrganizationMapper.java
+2
-0
IIBZDepartmentService.java
...ava/cn/ibizlab/core/ou/service/IIBZDepartmentService.java
+7
-0
IIBZEmployeeService.java
.../java/cn/ibizlab/core/ou/service/IIBZEmployeeService.java
+6
-0
IIBZOrganizationService.java
...a/cn/ibizlab/core/ou/service/IIBZOrganizationService.java
+5
-0
IBZEmployeeServiceImpl.java
.../ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
+6
-0
未找到文件。
ibzou-core/src/main/java/cn/ibizlab/core/ou/mapper/IBZDepartmentMapper.java
浏览文件 @
6a49ea5e
...
@@ -30,6 +30,8 @@ public interface IBZDepartmentMapper extends BaseMapper<IBZDepartment>{
...
@@ -30,6 +30,8 @@ public interface IBZDepartmentMapper extends BaseMapper<IBZDepartment>{
@Override
@Override
@CacheEvict
(
value
=
"ibzdepartment"
,
key
=
"'row:'+#p0.deptid"
)
@CacheEvict
(
value
=
"ibzdepartment"
,
key
=
"'row:'+#p0.deptid"
)
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZDepartment
entity
);
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZDepartment
entity
);
@CacheEvict
(
value
=
"ibzdepartment"
,
key
=
"'row:'+#p0.deptid"
)
int
update
(
@Param
(
Constants
.
ENTITY
)
IBZDepartment
entity
,
@Param
(
"ew"
)
Wrapper
<
ibzdepartment
>
updateWrapper
);
@Override
@Override
@CacheEvict
(
value
=
"ibzdepartment"
,
key
=
"'row:'+#p0"
)
@CacheEvict
(
value
=
"ibzdepartment"
,
key
=
"'row:'+#p0"
)
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/mapper/IBZDeptMemberMapper.java
浏览文件 @
6a49ea5e
...
@@ -26,6 +26,7 @@ public interface IBZDeptMemberMapper extends BaseMapper<IBZDeptMember>{
...
@@ -26,6 +26,7 @@ public interface IBZDeptMemberMapper extends BaseMapper<IBZDeptMember>{
int
insert
(
IBZDeptMember
entity
);
int
insert
(
IBZDeptMember
entity
);
@Override
@Override
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZDeptMember
entity
);
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZDeptMember
entity
);
int
update
(
@Param
(
Constants
.
ENTITY
)
IBZDeptMember
entity
,
@Param
(
"ew"
)
Wrapper
<
ibzdeptmember
>
updateWrapper
);
@Override
@Override
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
/**
/**
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/mapper/IBZEmployeeMapper.java
浏览文件 @
6a49ea5e
...
@@ -29,6 +29,8 @@ public interface IBZEmployeeMapper extends BaseMapper<IBZEmployee>{
...
@@ -29,6 +29,8 @@ public interface IBZEmployeeMapper extends BaseMapper<IBZEmployee>{
@Override
@Override
@CacheEvict
(
value
=
"ibzemployee"
,
key
=
"'row:'+#p0.userid"
)
@CacheEvict
(
value
=
"ibzemployee"
,
key
=
"'row:'+#p0.userid"
)
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZEmployee
entity
);
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZEmployee
entity
);
@CacheEvict
(
value
=
"ibzemployee"
,
key
=
"'row:'+#p0.userid"
)
int
update
(
@Param
(
Constants
.
ENTITY
)
IBZEmployee
entity
,
@Param
(
"ew"
)
Wrapper
<
ibzemployee
>
updateWrapper
);
@Override
@Override
@CacheEvict
(
value
=
"ibzemployee"
,
key
=
"'row:'+#p0"
)
@CacheEvict
(
value
=
"ibzemployee"
,
key
=
"'row:'+#p0"
)
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/mapper/IBZOrganizationMapper.java
浏览文件 @
6a49ea5e
...
@@ -31,6 +31,8 @@ public interface IBZOrganizationMapper extends BaseMapper<IBZOrganization>{
...
@@ -31,6 +31,8 @@ public interface IBZOrganizationMapper extends BaseMapper<IBZOrganization>{
@Override
@Override
@CacheEvict
(
value
=
"ibzorganization"
,
key
=
"'row:'+#p0.orgid"
)
@CacheEvict
(
value
=
"ibzorganization"
,
key
=
"'row:'+#p0.orgid"
)
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZOrganization
entity
);
int
updateById
(
@Param
(
Constants
.
ENTITY
)
IBZOrganization
entity
);
@CacheEvict
(
value
=
"ibzorganization"
,
key
=
"'row:'+#p0.orgid"
)
int
update
(
@Param
(
Constants
.
ENTITY
)
IBZOrganization
entity
,
@Param
(
"ew"
)
Wrapper
<
ibzorganization
>
updateWrapper
);
@Override
@Override
@CacheEvict
(
value
=
"ibzorganization"
,
key
=
"'row:'+#p0"
)
@CacheEvict
(
value
=
"ibzorganization"
,
key
=
"'row:'+#p0"
)
int
deleteById
(
Serializable
id
);
int
deleteById
(
Serializable
id
);
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/IIBZDepartmentService.java
浏览文件 @
6a49ea5e
...
@@ -25,22 +25,29 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -25,22 +25,29 @@ import com.baomidou.mybatisplus.extension.service.IService;
public
interface
IIBZDepartmentService
extends
IService
<
IBZDepartment
>{
public
interface
IIBZDepartmentService
extends
IService
<
IBZDepartment
>{
boolean
create
(
IBZDepartment
et
)
;
boolean
create
(
IBZDepartment
et
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
createBatch
(
List
<
IBZDepartment
>
list
)
;
void
createBatch
(
List
<
IBZDepartment
>
list
)
;
IBZDepartment
get
(
String
key
)
;
IBZDepartment
get
(
String
key
)
;
boolean
save
(
IBZDepartment
et
)
;
boolean
save
(
IBZDepartment
et
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
saveBatch
(
List
<
IBZDepartment
>
list
)
;
void
saveBatch
(
List
<
IBZDepartment
>
list
)
;
boolean
checkKey
(
IBZDepartment
et
)
;
boolean
checkKey
(
IBZDepartment
et
)
;
IBZDepartment
getDraft
(
IBZDepartment
et
)
;
IBZDepartment
getDraft
(
IBZDepartment
et
)
;
boolean
remove
(
String
key
)
;
boolean
remove
(
String
key
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
removeBatch
(
Collection
<
String
>
idList
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
boolean
update
(
IBZDepartment
et
)
;
boolean
update
(
IBZDepartment
et
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
updateBatch
(
List
<
IBZDepartment
>
list
)
;
void
updateBatch
(
List
<
IBZDepartment
>
list
)
;
Page
<
IBZDepartment
>
searchCurDept
(
IBZDepartmentSearchContext
context
)
;
Page
<
IBZDepartment
>
searchCurDept
(
IBZDepartmentSearchContext
context
)
;
Page
<
IBZDepartment
>
searchDefault
(
IBZDepartmentSearchContext
context
)
;
Page
<
IBZDepartment
>
searchDefault
(
IBZDepartmentSearchContext
context
)
;
List
<
IBZDepartment
>
selectByParentdeptid
(
String
deptid
)
;
List
<
IBZDepartment
>
selectByParentdeptid
(
String
deptid
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
removeByParentdeptid
(
String
deptid
)
;
void
removeByParentdeptid
(
String
deptid
)
;
List
<
IBZDepartment
>
selectByOrgid
(
String
orgid
)
;
List
<
IBZDepartment
>
selectByOrgid
(
String
orgid
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
removeByOrgid
(
String
orgid
)
;
void
removeByOrgid
(
String
orgid
)
;
@CacheEvict
(
value
=
"ibzdepartment"
,
allEntries
=
true
)
void
saveByOrgid
(
String
orgid
,
List
<
IBZDepartment
>
list
)
;
void
saveByOrgid
(
String
orgid
,
List
<
IBZDepartment
>
list
)
;
/**
/**
*自定义查询SQL
*自定义查询SQL
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/IIBZEmployeeService.java
浏览文件 @
6a49ea5e
...
@@ -25,21 +25,27 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -25,21 +25,27 @@ import com.baomidou.mybatisplus.extension.service.IService;
public
interface
IIBZEmployeeService
extends
IService
<
IBZEmployee
>{
public
interface
IIBZEmployeeService
extends
IService
<
IBZEmployee
>{
boolean
remove
(
String
key
)
;
boolean
remove
(
String
key
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
removeBatch
(
Collection
<
String
>
idList
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
IBZEmployee
initPwd
(
IBZEmployee
et
)
;
IBZEmployee
initPwd
(
IBZEmployee
et
)
;
boolean
create
(
IBZEmployee
et
)
;
boolean
create
(
IBZEmployee
et
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
createBatch
(
List
<
IBZEmployee
>
list
)
;
void
createBatch
(
List
<
IBZEmployee
>
list
)
;
boolean
checkKey
(
IBZEmployee
et
)
;
boolean
checkKey
(
IBZEmployee
et
)
;
boolean
update
(
IBZEmployee
et
)
;
boolean
update
(
IBZEmployee
et
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
updateBatch
(
List
<
IBZEmployee
>
list
)
;
void
updateBatch
(
List
<
IBZEmployee
>
list
)
;
boolean
save
(
IBZEmployee
et
)
;
boolean
save
(
IBZEmployee
et
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
saveBatch
(
List
<
IBZEmployee
>
list
)
;
void
saveBatch
(
List
<
IBZEmployee
>
list
)
;
IBZEmployee
get
(
String
key
)
;
IBZEmployee
get
(
String
key
)
;
IBZEmployee
getDraft
(
IBZEmployee
et
)
;
IBZEmployee
getDraft
(
IBZEmployee
et
)
;
Page
<
IBZEmployee
>
searchDefault
(
IBZEmployeeSearchContext
context
)
;
Page
<
IBZEmployee
>
searchDefault
(
IBZEmployeeSearchContext
context
)
;
List
<
IBZEmployee
>
selectByMdeptid
(
String
deptid
)
;
List
<
IBZEmployee
>
selectByMdeptid
(
String
deptid
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
removeByMdeptid
(
String
deptid
)
;
void
removeByMdeptid
(
String
deptid
)
;
List
<
IBZEmployee
>
selectByOrgid
(
String
orgid
)
;
List
<
IBZEmployee
>
selectByOrgid
(
String
orgid
)
;
@CacheEvict
(
value
=
"ibzemployee"
,
allEntries
=
true
)
void
removeByOrgid
(
String
orgid
)
;
void
removeByOrgid
(
String
orgid
)
;
/**
/**
*自定义查询SQL
*自定义查询SQL
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/IIBZOrganizationService.java
浏览文件 @
6a49ea5e
...
@@ -26,12 +26,16 @@ public interface IIBZOrganizationService extends IService<IBZOrganization>{
...
@@ -26,12 +26,16 @@ public interface IIBZOrganizationService extends IService<IBZOrganization>{
boolean
checkKey
(
IBZOrganization
et
)
;
boolean
checkKey
(
IBZOrganization
et
)
;
boolean
update
(
IBZOrganization
et
)
;
boolean
update
(
IBZOrganization
et
)
;
@CacheEvict
(
value
=
"ibzorganization"
,
allEntries
=
true
)
void
updateBatch
(
List
<
IBZOrganization
>
list
)
;
void
updateBatch
(
List
<
IBZOrganization
>
list
)
;
boolean
create
(
IBZOrganization
et
)
;
boolean
create
(
IBZOrganization
et
)
;
@CacheEvict
(
value
=
"ibzorganization"
,
allEntries
=
true
)
void
createBatch
(
List
<
IBZOrganization
>
list
)
;
void
createBatch
(
List
<
IBZOrganization
>
list
)
;
boolean
save
(
IBZOrganization
et
)
;
boolean
save
(
IBZOrganization
et
)
;
@CacheEvict
(
value
=
"ibzorganization"
,
allEntries
=
true
)
void
saveBatch
(
List
<
IBZOrganization
>
list
)
;
void
saveBatch
(
List
<
IBZOrganization
>
list
)
;
boolean
remove
(
String
key
)
;
boolean
remove
(
String
key
)
;
@CacheEvict
(
value
=
"ibzorganization"
,
allEntries
=
true
)
void
removeBatch
(
Collection
<
String
>
idList
)
;
void
removeBatch
(
Collection
<
String
>
idList
)
;
IBZOrganization
get
(
String
key
)
;
IBZOrganization
get
(
String
key
)
;
IBZOrganization
getDraft
(
IBZOrganization
et
)
;
IBZOrganization
getDraft
(
IBZOrganization
et
)
;
...
@@ -39,6 +43,7 @@ public interface IIBZOrganizationService extends IService<IBZOrganization>{
...
@@ -39,6 +43,7 @@ public interface IIBZOrganizationService extends IService<IBZOrganization>{
Page
<
IBZOrganization
>
searchSelectPOrg
(
IBZOrganizationSearchContext
context
)
;
Page
<
IBZOrganization
>
searchSelectPOrg
(
IBZOrganizationSearchContext
context
)
;
Page
<
IBZOrganization
>
searchDefault
(
IBZOrganizationSearchContext
context
)
;
Page
<
IBZOrganization
>
searchDefault
(
IBZOrganizationSearchContext
context
)
;
List
<
IBZOrganization
>
selectByParentorgid
(
String
orgid
)
;
List
<
IBZOrganization
>
selectByParentorgid
(
String
orgid
)
;
@CacheEvict
(
value
=
"ibzorganization"
,
allEntries
=
true
)
void
removeByParentorgid
(
String
orgid
)
;
void
removeByParentorgid
(
String
orgid
)
;
/**
/**
*自定义查询SQL
*自定义查询SQL
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
浏览文件 @
6a49ea5e
...
@@ -54,6 +54,10 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
...
@@ -54,6 +54,10 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Lazy
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZOrganizationService
ibzorganizationService
;
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZOrganizationService
ibzorganizationService
;
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
logic
.
IIBZEmployeesaveDeptMemberLogic
savedeptmemberLogic
;
private
int
batchSize
=
500
;
private
int
batchSize
=
500
;
@Override
@Override
...
@@ -84,6 +88,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
...
@@ -84,6 +88,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
return
false
;
return
false
;
ibzdeptmemberService
.
saveByUserid
(
et
.
getUserid
(),
et
.
getIbzdeptmember
());
ibzdeptmemberService
.
saveByUserid
(
et
.
getUserid
(),
et
.
getIbzdeptmember
());
CachedBeanCopier
.
copy
(
get
(
et
.
getUserid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
getUserid
()),
et
);
savedeptmemberLogic
.
execute
(
et
);
return
true
;
return
true
;
}
}
...
@@ -106,6 +111,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
...
@@ -106,6 +111,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
return
false
;
return
false
;
ibzdeptmemberService
.
saveByUserid
(
et
.
getUserid
(),
et
.
getIbzdeptmember
());
ibzdeptmemberService
.
saveByUserid
(
et
.
getUserid
(),
et
.
getIbzdeptmember
());
CachedBeanCopier
.
copy
(
get
(
et
.
getUserid
()),
et
);
CachedBeanCopier
.
copy
(
get
(
et
.
getUserid
()),
et
);
savedeptmemberLogic
.
execute
(
et
);
return
true
;
return
true
;
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录