根据公司ID,查询该公司下的所有用户。

This commit is contained in:
Echo 2025-07-10 17:07:26 +08:00
parent 881ec2af9a
commit ce1b43836c
2 changed files with 21 additions and 16 deletions

View File

@ -66,15 +66,17 @@ public class BpmOAExpensesController {
@DataPermission(enable = false)
public CommonResult<PageResult<BpmOAExpensesPageRespVO>> getExpensesPage(BpmOAExpensesPageReqVO pageReqVO) {
Long companyId = pageReqVO.getFactoryId() ;
//1 = 113 中鼐智能科技江西有限公司, 10000083 = 136 世瑞华科技(深圳)有限公司 10000061 = 166 中鼐智能科技(江西)有限公司(高安)
if(companyId == 1L) {
companyId = 113L;
}else if(companyId == 10000083L) {
companyId = 136L;
}else if(companyId == 10000061L ){
companyId = 166L ;
if(companyId != null) {
//1 = 113 中鼐智能科技江西有限公司, 10000083 = 136 世瑞华科技(深圳)有限公司 10000061 = 166 中鼐智能科技(江西)有限公司(高安)
if (companyId == 1L) {
companyId = 113L;
} else if (companyId == 10000083L) {
companyId = 136L;
} else if (companyId == 10000061L) {
companyId = 166L;
}
pageReqVO.setFactoryId(companyId) ;
}
pageReqVO.setFactoryId(companyId) ;
PageResult<BpmOAExpensesPageRespVO> respVO = expensesService.getExpensesPage(pageReqVO);
return success(respVO);
}

View File

@ -69,15 +69,18 @@ public class LoanController {
@PreAuthorize("@ss.hasPermission('system:loan:query')")
public CommonResult<PageResult<LoanRespVO>> getLoanPage(@Valid LoanPageReqVO pageReqVO) {
Long companyId = pageReqVO.getDeptId() ;
//1 = 113 中鼐智能科技江西有限公司, 10000083 = 136 世瑞华科技(深圳)有限公司 10000061 = 166 中鼐智能科技(江西)有限公司(高安)
if(companyId == 1L) {
companyId = 113L;
}else if(companyId == 10000083L) {
companyId = 136L;
}else if(companyId == 10000061L ){
companyId = 166L ;
if(companyId != null) {
//1 = 113 中鼐智能科技江西有限公司, 10000083 = 136 世瑞华科技(深圳)有限公司 10000061 = 166 中鼐智能科技(江西)有限公司(高安)
if (companyId == 1L) {
companyId = 113L;
} else if (companyId == 10000083L) {
companyId = 136L;
} else if (companyId == 10000061L) {
companyId = 166L;
}
pageReqVO.setDeptId(companyId) ;
}
pageReqVO.setDeptId(companyId) ;
PageResult<LoanDO> pageResult = loanService.getLoanPage(pageReqVO);
PageResult<LoanRespVO> result = BeanUtils.toBean(pageResult, LoanRespVO.class);