1.修改查询员工分配大哥的逻辑

This commit is contained in:
2025-07-07 16:00:02 +08:00
parent 9944059525
commit eee82c36fa
3 changed files with 91 additions and 1 deletions

View File

@@ -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);

View File

@@ -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);