Commit 53ccc2aa authored by huyuchen's avatar huyuchen

线上问题修改

parent 2691b829
......@@ -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()));
......
......@@ -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
......
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