fix: 修复

dev_no_inv
chenhc 9 months ago committed by qyt
parent 7cd67071bd
commit daf7354443

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

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

Loading…
Cancel
Save