|
@@ -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
|