1.修改查询员工分配大哥的逻辑
This commit is contained in:
@@ -16,6 +16,7 @@ import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface EmployeeBigBrotherMapper extends BaseMapperX<EmployeeBigBrotherDO> {
|
||||
|
||||
IPage<EmployeeBigBrotherDO> selectPage(@Param("page") IPage<EmployeeBigBrotherDO> iPage,@Param("dto") EmployeeBigBrotherPageReqVO pageReqVO);
|
||||
|
||||
|
||||
IPage<EmployeeBigBrotherDO> selectPagewithSelf(@Param("page") IPage<EmployeeBigBrotherDO> iPage,@Param("dto") EmployeeBigBrotherPageReqVO pageReqVO);
|
||||
|
||||
@@ -101,7 +101,7 @@ public class EmployeeBigBrotherServiceImpl implements EmployeeBigBrotherService
|
||||
public PageResult<EmployeeBigBrotherDO> getEmployeeBigBrotherPage(EmployeeBigBrotherPageReqVO pageReqVO) {
|
||||
pageReqVO.setTenantId(TenantContextHolder.getTenantId());
|
||||
IPage<EmployeeBigBrotherDO> iPage = new Page<>(pageReqVO.getPageNo(),pageReqVO.getPageSize());
|
||||
IPage<EmployeeBigBrotherDO> bigBrotherDOIPage = employeeBigBrotherMapper.selectPagewithSelf(iPage, pageReqVO);
|
||||
IPage<EmployeeBigBrotherDO> bigBrotherDOIPage = employeeBigBrotherMapper.selectPage(iPage, pageReqVO);
|
||||
return new PageResult<>(bigBrotherDOIPage.getRecords(),bigBrotherDOIPage.getTotal());
|
||||
}
|
||||
|
||||
@@ -118,6 +118,7 @@ public class EmployeeBigBrotherServiceImpl implements EmployeeBigBrotherService
|
||||
bigBrotherDOS.add(bigBrotherDO);
|
||||
EmployeeBigBrotherDO employeeBigBrotherDO = BeanUtils.toBean(employeeBigBrotherSaveReqVO, EmployeeBigBrotherDO.class);
|
||||
employeeBigBrotherDO.setOperationStatus(0);
|
||||
employeeBigBrotherDO.setId(null);
|
||||
employeeBigBrotherDOS.add(employeeBigBrotherDO);
|
||||
}
|
||||
employeeBigBrotherMapper.insertBatch(employeeBigBrotherDOS);
|
||||
|
||||
Reference in New Issue
Block a user