|
|
@ -145,10 +145,10 @@ private string registerName = "webContext"; |
|
|
|
|
|
|
|
IList<Department> departmentList = null; |
|
|
|
|
|
|
|
var response = mdsApiService.GetShopDetailList(); |
|
|
|
if (!response.Success) |
|
|
|
throw new Exception(response.Msg); |
|
|
|
departmentList = response.Data?.Where(d => d.Name.Contains("供应链")).ToList(); |
|
|
|
//var response = mdsApiService.GetShopDetailList();
|
|
|
|
//if (!response.Success)
|
|
|
|
// throw new Exception(response.Msg);
|
|
|
|
departmentList = allDepartmentList?.Where(d => d.Name.Contains("供应链")).ToList(); |
|
|
|
if (departmentList.Count == 0) |
|
|
|
throw new Exception("缺少有效的部门数据"); |
|
|
|
|
|
|
|