Commit 57128127 authored by maqing's avatar maqing

打卡分页

parent bc0d9467
...@@ -289,10 +289,10 @@ public class SrvOrganController { ...@@ -289,10 +289,10 @@ public class SrvOrganController {
*/ */
@GetMapping("/chSrvTaskDetailQuery") @GetMapping("/chSrvTaskDetailQuery")
public Result chSrvTaskDetailQuery(Integer pageNum, Integer pageSize,Long empId){ public Result chSrvTaskDetailQuery(Integer pageNum, Integer pageSize,Long empId){
Page<ChSrvTaskDetailVo> page = new Page<>(pageNum, pageSize); Page<ChSrvTaskDetailVo> page = new Page<>(2, 10);
List<ChSrvTaskDetailVo> chSrvTaskDetails = srvOrganEmpService.chSrvTaskDetailQuery(page,empId); page = srvOrganEmpService.chSrvTaskDetailQuery(page,6L);
if(chSrvTaskDetails.size()>0&& !chSrvTaskDetails.isEmpty()){ if(page.getSize()>0){
return Result.success(chSrvTaskDetails); return Result.success(page);
}else { }else {
return Result.failed(ResultCode.SRV_ORGAN_NOT_QUERY); return Result.failed(ResultCode.SRV_ORGAN_NOT_QUERY);
} }
......
...@@ -21,7 +21,7 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> { ...@@ -21,7 +21,7 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
* @param empId * @param empId
* @return * @return
*/ */
List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page, Long empId); Page<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId);
} }
......
...@@ -68,7 +68,7 @@ public interface SrvOrganEmpService { ...@@ -68,7 +68,7 @@ public interface SrvOrganEmpService {
Workbook srvOrganExport(Long organId, Boolean isInvolveChild, String empName, String srvOrganName, String certifNum, Workbook srvOrganExport(Long organId, Boolean isInvolveChild, String empName, String srvOrganName, String certifNum,
Short isLock, Short empType); Short isLock, Short empType);
List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId); Page<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId);
int chSrvTaskDetailDelete(long taskDetailId,String userName); int chSrvTaskDetailDelete(long taskDetailId,String userName);
} }
...@@ -3,6 +3,7 @@ package com.hungraim.ltc.service.impl; ...@@ -3,6 +3,7 @@ package com.hungraim.ltc.service.impl;
import cn.afterturn.easypoi.excel.ExcelExportUtil; import cn.afterturn.easypoi.excel.ExcelExportUtil;
import cn.afterturn.easypoi.excel.entity.ExportParams; import cn.afterturn.easypoi.excel.entity.ExportParams;
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType; import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.api.AttachFeignService; import com.hungraim.ltc.api.AttachFeignService;
import com.hungraim.ltc.dao.*; import com.hungraim.ltc.dao.*;
...@@ -164,8 +165,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -164,8 +165,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
} }
@Override @Override
public List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId) { public Page<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId) {
return chSrvTaskDetailMapper.chSrvTaskDetailQuery( page,empId); return chSrvTaskDetailMapper.chSrvTaskDetailQuery(page,empId);
} }
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
......
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