Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
46e72ef8
Commit
46e72ef8
authored
Nov 13, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户陪诊员假数据
parent
e5fad2cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
pz-system/src/main/java/com/pz/merchant/service/impl/EmployeesServiceImpl.java
+13
-11
No files found.
pz-system/src/main/java/com/pz/merchant/service/impl/EmployeesServiceImpl.java
View file @
46e72ef8
...
...
@@ -510,15 +510,16 @@ public class EmployeesServiceImpl implements IEmployeesService {
@Override
public
DataViewVo
dataEmployees
(
DataViewBo
dataViewBo
)
{
Company
company
=
companyMapper
.
selectOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getUid
,
dataViewBo
.
getUserId
()));
if
(
null
==
company
){
DataViewVo
dataViewVo
=
new
DataViewVo
();
dataViewVo
.
setDataSum
(
0
);
return
dataViewVo
;
}
FalseData
falseData
=
falseDataMapper
.
selectOne
(
new
LambdaQueryWrapper
<
FalseData
>().
eq
(
FalseData:
:
getCompanyId
,
company
.
getId
()));
DataViewVo
dataViewVo
=
new
DataViewVo
();
if
(
null
!=
dataViewBo
.
getUserId
()){
Company
company
=
companyMapper
.
selectOne
(
new
LambdaQueryWrapper
<
Company
>().
eq
(
Company:
:
getUid
,
dataViewBo
.
getUserId
()));
if
(
null
==
company
){
dataViewVo
.
setDataSum
(
0
);
return
dataViewVo
;
}
FalseData
falseData
=
falseDataMapper
.
selectOne
(
new
LambdaQueryWrapper
<
FalseData
>().
eq
(
FalseData:
:
getCompanyId
,
company
.
getId
()));
if
(
dataViewBo
.
getCondition
()
==
2
){
dataViewVo
.
setDataSum
(
falseData
.
getCompanySeven
().
intValue
());
}
else
if
(
dataViewBo
.
getCondition
()
==
3
){
...
...
@@ -529,14 +530,15 @@ public class EmployeesServiceImpl implements IEmployeesService {
dataViewVo
.
setDataSum
(
falseData
.
getCompanySum
().
intValue
());
}
}
else
{
List
<
FalseData
>
falseData1
=
falseDataMapper
.
selectList
();
if
(
dataViewBo
.
getCondition
()
==
2
){
dataViewVo
.
setDataSum
(
falseData
.
getCompanySeven
().
intValue
());
dataViewVo
.
setDataSum
(
falseData
1
.
get
(
0
)
.
getCompanySeven
().
intValue
());
}
else
if
(
dataViewBo
.
getCondition
()
==
3
){
dataViewVo
.
setDataSum
(
falseData
.
getCompanyThirty
().
intValue
());
dataViewVo
.
setDataSum
(
falseData
1
.
get
(
0
)
.
getCompanyThirty
().
intValue
());
}
else
if
(
dataViewBo
.
getCondition
()
==
1
){
dataViewVo
.
setDataSum
(
falseData
.
getCompanyToday
().
intValue
());
dataViewVo
.
setDataSum
(
falseData
1
.
get
(
0
)
.
getCompanyToday
().
intValue
());
}
else
{
dataViewVo
.
setDataSum
(
falseData
.
getCompanySum
().
intValue
());
dataViewVo
.
setDataSum
(
falseData
1
.
get
(
0
)
.
getCompanySum
().
intValue
());
}
}
...
...
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