Commit bc0d9467 authored by maqing's avatar maqing

打卡分页

parent 8f9eac61
......@@ -288,8 +288,9 @@ public class SrvOrganController {
* @return
*/
@GetMapping("/chSrvTaskDetailQuery")
public Result chSrvTaskDetailQuery(Long empId){
List<ChSrvTaskDetailVo> chSrvTaskDetails = srvOrganEmpService.chSrvTaskDetailQuery(1L);
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);
}else {
......
package com.hungraim.ltc.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvTaskDetail;
import com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo;
import org.apache.ibatis.annotations.Mapper;
......@@ -20,7 +21,7 @@ public interface ChSrvTaskDetailMapper extends BaseMapper<ChSrvTaskDetail> {
* @param empId
* @return
*/
List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Long empId);
List<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(Long empId);
List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId);
int chSrvTaskDetailDelete(long taskDetailId,String userName);
}
......@@ -164,8 +164,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
}
@Override
public List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Long empId) {
return chSrvTaskDetailMapper.chSrvTaskDetailQuery(empId);
public List<ChSrvTaskDetailVo> chSrvTaskDetailQuery(Page<ChSrvTaskDetailVo> page,Long empId) {
return chSrvTaskDetailMapper.chSrvTaskDetailQuery( page,empId);
}
@Transactional(rollbackFor = Exception.class)
......
......@@ -9,7 +9,7 @@ public class ChSrvTaskDetailVo {
private Long taskDetailId;
private String name;
private String empName;
private Integer orgamId;
......
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