This commit is contained in:
qianhao.xu 2024-09-30 16:04:32 +08:00
parent 546359d81a
commit b2950823bf
3 changed files with 18 additions and 0 deletions

View File

@ -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);
}

View File

@ -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();
}
}

View File

@ -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();
}
}
}