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 }