fix:不是查找组织代码而是所在区域代码
This commit is contained in:
@@ -361,9 +361,9 @@ namespace Ewide.Core.Service
|
||||
{
|
||||
var org = await _sysOrgRep.FirstOrDefaultAsync(o => o.Id == orgId);
|
||||
if (dataScopeType == (int)DataScopeType.AREA_WITH_CHILD)
|
||||
return await _sysOrgRep.DetachedEntities.Where(p => p.AreaCode.StartsWith(org.Code)).Select(p => p.Id).ToListAsync();
|
||||
return await _sysOrgRep.DetachedEntities.Where(p => p.AreaCode.StartsWith(org.AreaCode)).Select(p => p.Id).ToListAsync();
|
||||
if (dataScopeType == (int)DataScopeType.AREA)
|
||||
return await _sysOrgRep.DetachedEntities.Where(p => p.AreaCode == org.Code).Select(p => p.Id).ToListAsync();
|
||||
return await _sysOrgRep.DetachedEntities.Where(p => p.AreaCode == org.AreaCode).Select(p => p.Id).ToListAsync();
|
||||
return new List<string>();
|
||||
}
|
||||
public async Task<List<string>> GetAreaDataScopeIdListWithoutChildrenArea(string areaNumberCode)
|
||||
|
||||
Reference in New Issue
Block a user