首检添加数据看板
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Model.mes.md;
|
||||
using ZR.Service.mes.md.IService;
|
||||
using ZR.Service.MES.md.IService;
|
||||
|
||||
namespace ZR.Service.MES.md
|
||||
@@ -47,10 +40,10 @@ namespace ZR.Service.MES.md
|
||||
|
||||
public List<MdWorkshop> GetMdWorkshops(int lineCode = 0)
|
||||
{
|
||||
if(lineCode == 0)
|
||||
if (lineCode == 0)
|
||||
return Context.Queryable<MdWorkshop>().ToList();
|
||||
else
|
||||
return Context.Queryable<MdWorkshop>().Where(it=>it.Equals(lineCode)).ToList();
|
||||
return Context.Queryable<MdWorkshop>().Where(it => it.Equals(lineCode)).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user