工做關鍵代碼記錄

委託實現兩個list集合代碼對應賦值
 1 resultModel = new TuhuAccountingShopReadOnlyManager().SelectShopOpenInvoiceInfomation(request, 0);
 2                 var ListShops = new ShopInventoryOnlyReadManager().GetManyListShopsByShopId(0);//根據門店ID查詢全部門店基本信息
 3                 if (resultModel != null)
 4                 {
 5                     resultList = resultModel.ShopStatementList;
 6                     foreach (var item in resultList)
 7                     {
 8                         var currItem = ListShops.Find(delegate (ShopInventory p) { return p.PKID == item.ShopId; });
 9                         item.ShopName = currItem.SimpleName;
10                     }
11                 }
View Code
相關文章
相關標籤/搜索