Commit bc0d9467 authored by maqing's avatar maqing

打卡分页

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