Commit 57128127 authored by maqing's avatar maqing

打卡分页

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