fix: 修复

dev_no_inv
chenhc 9 months ago
parent a8b853ef96
commit 0c21bd46a3

@ -214,13 +214,16 @@ public class AuthAdminServiceImpl extends ServiceImpl<AuthAdminDao, AuthAdmin> i
@Override
public List<AuthAdmin> getUserByDeptCode(String deptCode) {
DeptEntity deptEntity = deptService.selectByCode(deptCode);
List<DeptUserEntity> deptUserEntitys = deptUserDao.selectList(new LambdaQueryWrapper<DeptUserEntity>().eq(DeptUserEntity::getDeptId, deptEntity.getId()));
List<Long> userIds = deptUserEntitys.stream()
.map(DeptUserEntity::getUserId)
.collect(Collectors.toList());
List<AuthAdmin> authAdmins = authAdminDao.selectList(new LambdaQueryWrapper<AuthAdmin>().in(AuthAdmin::getId, userIds));
List<AuthAdmin> authAdmins = new ArrayList<>();
if (CollUtil.isEmpty(userIds)){
return authAdmins;
}
authAdmins = authAdminDao.selectList(new LambdaQueryWrapper<AuthAdmin>().in(AuthAdmin::getId, userIds));
return authAdmins;
}

@ -92,7 +92,7 @@ public class AsyncIoCollectOrderDownloadTask implements SchedulingConfigurer {
try{
collectOriginService.downloadOrderV2(collectOrderRequest);
}catch (Exception e){
log.error("自动下载原始下载出错:{}", e.getMessage());
log.error("自动下载原始单据出错:{}", e.getMessage());
}
}
}

Loading…
Cancel
Save