工做关键代码记录

委托实现两个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
相关文章
相关标签/搜索