You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
623 B

using EC.Entity.Transport;
using EC.Service.Base;
namespace EC.Service.Transport
{
public class MonthPlanService : MvcService<MonthPlanEntity>
{
public MonthPlanService()
{
}
#region BLL
/// <summary>
/// 通过主键查询月计划
/// </summary>
/// <returns></returns>
public MonthPlanEntity GetPlanBySerialNo(string sNo)
{
return SelectEntityByWhere($"SerialNumber='{sNo}'");
}
public MonthPlanEntity GetLastPlan(string companyId, int supplierId)
{
return SelectEntityByWhere($"CompanyId='{companyId}' AND SupplierId='{supplierId}' order by Id desc");
}
#endregion BLL
}
}