Commit 53ccc2aa authored by huyuchen's avatar huyuchen

线上问题修改

parent 2691b829
...@@ -94,12 +94,18 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -94,12 +94,18 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
@Override @Override
public IPage<TEmployeeInfo> getLeavePage(Page<TEmployeeInfo> page, TEmployeeInfo employeeInfo) { public IPage<TEmployeeInfo> getLeavePage(Page<TEmployeeInfo> page, TEmployeeInfo employeeInfo) {
List<String> projectList = baseMapper.getProjectEmpId(employeeInfo);
long leavePageCount; long leavePageCount;
if (projectList.isEmpty()) { if (Common.isEmpty(employeeInfo.getUnitName()) && Common.isEmpty(employeeInfo.getDeptName())
leavePageCount = 0L; && Common.isEmpty(employeeInfo.getDeptNo()) && Common.isEmpty(employeeInfo.getAuthSql())) {
leavePageCount = baseMapper.getLeavePageCount(employeeInfo, null);
} else { } else {
leavePageCount = baseMapper.getLeavePageCount(employeeInfo, projectList); List<String> projectList;
projectList = baseMapper.getProjectEmpId(employeeInfo);
if (projectList.isEmpty()) {
leavePageCount = 0L;
}else {
leavePageCount = baseMapper.getLeavePageCount(employeeInfo, projectList);
}
} }
page.setTotal(leavePageCount); page.setTotal(leavePageCount);
if (leavePageCount > 0L) { if (leavePageCount > 0L) {
......
...@@ -506,7 +506,23 @@ ...@@ -506,7 +506,23 @@
<!-- hgw 分页查询 --> <!-- hgw 分页查询 -->
<select id="getLeavePage" resultMap="tEmployeeExportMap"> <select id="getLeavePage" resultMap="tEmployeeExportMap">
SELECT 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 FROM
( (
SELECT SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment