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
53ccc2aa
Commit
53ccc2aa
authored
Oct 09, 2022
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上问题修改
parent
2691b829
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
+27
-5
TEmployeeInfoServiceImpl.java
.../yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
+10
-4
TEmployeeInfoMapper.xml
...ves-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
+17
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmployeeInfoServiceImpl.java
View file @
53ccc2aa
...
...
@@ -94,13 +94,19 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
@Override
public
IPage
<
TEmployeeInfo
>
getLeavePage
(
Page
<
TEmployeeInfo
>
page
,
TEmployeeInfo
employeeInfo
)
{
List
<
String
>
projectList
=
baseMapper
.
getProjectEmpId
(
employeeInfo
);
long
leavePageCount
;
if
(
Common
.
isEmpty
(
employeeInfo
.
getUnitName
())
&&
Common
.
isEmpty
(
employeeInfo
.
getDeptName
())
&&
Common
.
isEmpty
(
employeeInfo
.
getDeptNo
())
&&
Common
.
isEmpty
(
employeeInfo
.
getAuthSql
()))
{
leavePageCount
=
baseMapper
.
getLeavePageCount
(
employeeInfo
,
null
);
}
else
{
List
<
String
>
projectList
;
projectList
=
baseMapper
.
getProjectEmpId
(
employeeInfo
);
if
(
projectList
.
isEmpty
())
{
leavePageCount
=
0L
;
}
else
{
}
else
{
leavePageCount
=
baseMapper
.
getLeavePageCount
(
employeeInfo
,
projectList
);
}
}
page
.
setTotal
(
leavePageCount
);
if
(
leavePageCount
>
0L
)
{
page
.
setPages
((
long
)
Math
.
ceil
(
leavePageCount
/
page
.
getSize
()));
...
...
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TEmployeeInfoMapper.xml
View file @
53ccc2aa
...
...
@@ -506,7 +506,23 @@
<!-- hgw 分页查询 -->
<select
id=
"getLeavePage"
resultMap=
"tEmployeeExportMap"
>
SELECT
*
c.ID,
c.EMP_CODE,
c.EMP_NATRUE,
c.EMP_NAME,
c.EMP_IDCARD,
c.EMP_PHONE,
c.FILE_PROVINCE,
c.FILE_CITY,
c.FILE_TOWN,
c.LEAVE_TIME,
c.LEAVE_USER_NAME,
c.CREATE_TIME,
b.DEPT_ID,
b.EMP_ID,
b.UNIT_NAME,
b.DEPT_NAME,
b.DEPT_NO
FROM
(
SELECT
...
...
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