1
This commit is contained in:
parent
546359d81a
commit
b2950823bf
@ -102,6 +102,15 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
//TODO 获取产线
|
||||
[HttpGet("get_all_line")]
|
||||
public IActionResult GetAllLines()
|
||||
{
|
||||
var response = _QcDefectCollectionService.GetAllLines();
|
||||
|
||||
return ToResponse(response);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ using DOAN.Model.MES.quality;
|
||||
using DOAN.Model.MES.quality.Dto;
|
||||
|
||||
using System.Collections.Generic;
|
||||
using DOAN.Model.MES.base_;
|
||||
|
||||
namespace DOAN.Service.MES.quality
|
||||
{
|
||||
@ -21,5 +22,7 @@ namespace DOAN.Service.MES.quality
|
||||
|
||||
int UpdateQcDefectCollection(QcDefectCollection parm);
|
||||
|
||||
List<BaseWorkRoute> GetAllLines();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,6 +11,7 @@ using DOAN.Repository;
|
||||
using System.Linq;
|
||||
using DOAN.Model.Mobile.Dto;
|
||||
using DOAN.Infrastructure;
|
||||
using DOAN.Model.MES.base_;
|
||||
|
||||
namespace DOAN.Service.MES.quality
|
||||
{
|
||||
@ -101,5 +102,10 @@ namespace DOAN.Service.MES.quality
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
public List<BaseWorkRoute> GetAllLines()
|
||||
{
|
||||
return Context.Queryable<BaseWorkRoute>().Where(it => it.Status == 1).ToList();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user