Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
c4164d70
Commit
c4164d70
authored
Jan 16, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/MVP1.4' into MVP1.4
parents
c2fdeb3c
d6e864bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
17 deletions
+39
-17
TEmployeeProjectServiceImpl.java
...fu/archives/service/impl/TEmployeeProjectServiceImpl.java
+15
-4
Common.java
.../com/yifu/cloud/plus/v1/yifu/common/core/util/Common.java
+8
-0
BusinessUserController.java
...plus/v1/yifu/admin/controller/BusinessUserController.java
+16
-13
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeProjectServiceImpl.java
View file @
c4164d70
...
@@ -1548,15 +1548,25 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
...
@@ -1548,15 +1548,25 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
employee
=
tEmployeeInfoMapper
.
selectById
(
employeeInfo
.
getEmpId
());
employee
=
tEmployeeInfoMapper
.
selectById
(
employeeInfo
.
getEmpId
());
initEmpBusinessInfo
(
employeeInfo
,
employee
,
businessVo
,
tBusinessEmployeeExtendInfo
);
initEmpBusinessInfo
(
employeeInfo
,
employee
,
businessVo
,
tBusinessEmployeeExtendInfo
);
}
}
// 获取合同数据
// 获取合同数据(去除作废,终止)
List
<
TEmployeeContractInfo
>
contractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
List
<
TEmployeeContractInfo
>
contractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
ne
(
TEmployeeContractInfo:
:
getSituation
,
EmployeeConstants
.
SITUATION_SIX
)
.
ne
(
TEmployeeContractInfo:
:
getSituation
,
EmployeeConstants
.
SITUATION_SEVEN
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
// 获取合同数据(全部2023-1-16 11:32:12 倩倩要求:B端人员里要看到作废中止的合同(原话:显示没有问题))
List
<
TEmployeeContractInfo
>
allContractInfoList
=
contractInfoMapper
.
selectList
(
Wrappers
.<
TEmployeeContractInfo
>
query
().
lambda
()
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getEmpIdcard
,
employeeInfo
.
getEmpIdcard
())
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getIsObsolete
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
eq
(
TEmployeeContractInfo:
:
getSettleDomain
,
settleDomain
)
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
.
orderByDesc
(
TEmployeeContractInfo:
:
getContractStart
));
// 处理详情对应的合同信息
// 处理详情对应的合同信息
if
(
Common
.
isNotNull
(
contractInfoList
)){
if
(
Common
.
isNotNull
(
contractInfoList
)){
initEmpBusinessContractInfo
(
businessDetailVo
,
contractInfoList
);
initEmpBusinessContractInfo
(
businessDetailVo
,
contractInfoList
,
allContractInfoList
);
}
}
// 获取最高学历
// 获取最高学历
List
<
TEmpEducation
>
educations
=
empEducationMapper
.
selectList
(
Wrappers
.<
TEmpEducation
>
query
().
lambda
()
List
<
TEmpEducation
>
educations
=
empEducationMapper
.
selectList
(
Wrappers
.<
TEmpEducation
>
query
().
lambda
()
...
@@ -1606,14 +1616,15 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
...
@@ -1606,14 +1616,15 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
return
R
.
ok
(
businessVo
);
return
R
.
ok
(
businessVo
);
}
}
private
void
initEmpBusinessContractInfo
(
EmployeeBusinessDetailVo
businessDetailVo
,
List
<
TEmployeeContractInfo
>
contractInfoList
)
{
private
void
initEmpBusinessContractInfo
(
EmployeeBusinessDetailVo
businessDetailVo
,
List
<
TEmployeeContractInfo
>
contractInfoList
,
List
<
TEmployeeContractInfo
>
allContractInfoList
)
{
businessDetailVo
.
setSituationCount
(
contractInfoList
.
size
());
businessDetailVo
.
setSituationCount
(
contractInfoList
.
size
());
if
(
businessDetailVo
.
getSituationCount
()
>
CommonConstants
.
ONE_INT
){
if
(
businessDetailVo
.
getSituationCount
()
>
CommonConstants
.
ONE_INT
){
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationRenew
);
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationRenew
);
}
else
{
}
else
{
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationNew
);
businessDetailVo
.
setSituation
(
EmpBusinessConstants
.
empContractSituationNew
);
}
}
businessDetailVo
.
setContractInfoList
(
c
ontractInfoList
);
businessDetailVo
.
setContractInfoList
(
allC
ontractInfoList
);
TEmployeeContractInfo
contractInfo
=
contractInfoList
.
get
(
CommonConstants
.
ZERO_INT
);
TEmployeeContractInfo
contractInfo
=
contractInfoList
.
get
(
CommonConstants
.
ZERO_INT
);
if
(
null
!=
contractInfo
.
getContractEnd
()){
if
(
null
!=
contractInfo
.
getContractEnd
()){
businessDetailVo
.
setContractEndDate
(
DateUtil
.
formatDate
(
contractInfo
.
getContractEnd
()));
businessDetailVo
.
setContractEndDate
(
DateUtil
.
formatDate
(
contractInfo
.
getContractEnd
()));
...
...
yifu-common/yifu-common-core/src/main/java/com/yifu/cloud/plus/v1/yifu/common/core/util/Common.java
View file @
c4164d70
...
@@ -14,6 +14,9 @@ import java.math.BigDecimal;
...
@@ -14,6 +14,9 @@ import java.math.BigDecimal;
import
java.math.RoundingMode
;
import
java.math.RoundingMode
;
import
java.text.DecimalFormat
;
import
java.text.DecimalFormat
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.function.Function
;
import
java.util.function.Predicate
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -652,4 +655,9 @@ public class Common {
...
@@ -652,4 +655,9 @@ public class Common {
}
}
return
errorMessageList
;
return
errorMessageList
;
}
}
public
static
<
T
>
Predicate
<
T
>
distinctByKey
(
Function
<?
super
T
,
?>
keyExtractor
)
{
Set
<
Object
>
seen
=
ConcurrentHashMap
.
newKeySet
();
return
t
->
seen
.
add
(
keyExtractor
.
apply
(
t
));
}
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/BusinessUserController.java
View file @
c4164d70
...
@@ -22,6 +22,7 @@ import io.swagger.v3.oas.annotations.Operation;
...
@@ -22,6 +22,7 @@ import io.swagger.v3.oas.annotations.Operation;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.ehcache.impl.internal.util.ServiceUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
import
org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
;
...
@@ -235,19 +236,21 @@ public class BusinessUserController {
...
@@ -235,19 +236,21 @@ public class BusinessUserController {
Set
<
SysMenu
>
all
=
new
HashSet
<>();
Set
<
SysMenu
>
all
=
new
HashSet
<>();
SecurityUtils
.
getRolesByClient
(
ClientNameConstants
.
CLIENT_B
)
SecurityUtils
.
getRolesByClient
(
ClientNameConstants
.
CLIENT_B
)
.
forEach
(
roleId
->
all
.
addAll
(
sysMenuService
.
findMenuByRoleId
(
roleId
)));
.
forEach
(
roleId
->
all
.
addAll
(
sysMenuService
.
findMenuByRoleId
(
roleId
)));
List
<
MenuTreeForVue
>
menuTreeList
;
List
<
MenuTreeForVue
>
menuTreeList
=
null
;
if
(
Common
.
isNotNull
(
type
))
{
if
(
Common
.
isNotNull
(
all
)){
menuTreeList
=
all
.
stream
()
if
(
Common
.
isNotNull
(
type
))
{
.
filter
(
menuVo
->
type
.
equals
(
menuVo
.
getType
()))
menuTreeList
=
all
.
stream
().
filter
(
Common
.
distinctByKey
(
SysMenu:
:
getMenuId
))
.
map
(
MenuTreeForVue:
:
new
)
.
filter
(
menuVo
->
type
.
equals
(
menuVo
.
getType
()))
.
sorted
(
Comparator
.
comparingInt
(
MenuTreeForVue:
:
getSort
))
.
map
(
MenuTreeForVue:
:
new
)
.
collect
(
Collectors
.
toList
());
.
sorted
(
Comparator
.
comparingInt
(
MenuTreeForVue:
:
getSort
))
}
else
{
.
collect
(
Collectors
.
toList
());
menuTreeList
=
all
.
stream
()
}
else
{
.
map
(
MenuTreeForVue:
:
new
)
menuTreeList
=
all
.
stream
().
filter
(
Common
.
distinctByKey
(
SysMenu:
:
getMenuId
))
.
sorted
(
Comparator
.
comparingInt
(
MenuTreeForVue:
:
getSort
))
.
map
(
MenuTreeForVue:
:
new
)
.
collect
(
Collectors
.
toList
());
.
sorted
(
Comparator
.
comparingInt
(
MenuTreeForVue:
:
getSort
))
}
.
collect
(
Collectors
.
toList
());
}
}
return
new
R
<>(
TreeUtil
.
bulid
(
menuTreeList
,
-
1
));
return
new
R
<>(
TreeUtil
.
bulid
(
menuTreeList
,
-
1
));
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment