pengjing 1 year ago
parent
commit
af209dd556
1 changed files with 9 additions and 9 deletions
  1. 9 9
      OrderSystem.Services/OrderService.cs

+ 9 - 9
OrderSystem.Services/OrderService.cs

@@ -17,15 +17,15 @@ namespace OrderSystem.Services
         }
         public List<ContractModel> GetContractList(string mobile) 
         {
-            var contractList = (from c in DbContext.VxContractInfo
-                        select new ContractModel
-                        {
-                            ContractNo = c.合同号,
-                            Count = c.图纸数,
-                            Mobile = c.客户号码,
-                            CustomerName = c.客户名称,
-                            Status = c.订单状态
-                        }).ToList();
+            var contractList = (from c in DbContext.VxContractInfo.Where(e => e.客户号码 == mobile)
+                                select new ContractModel
+                                {
+                                    ContractNo = c.合同号,
+                                    Count = c.图纸数,
+                                    Mobile = c.客户号码,
+                                    CustomerName = c.客户名称,
+                                    Status = c.订单状态
+                                }).ToList();
 
             var orderList = (from o in DbContext.VxOrderInfo.Where(e => e.客户号码 == mobile)
                              select new OrderModel