Commit b29d7b7f by xin.yang

fix bug

parent 073d2815
......@@ -25,9 +25,11 @@ namespace Siger.ApiACC.Controllers
private readonly ISigerProjectLevelSectionRepository _levelSectionRepository;
private readonly IAutomationFixtureMonitor _fixtureMonitor;
private readonly IProductRouteRepository _routeRepository;
private readonly IAutomationTaskListRepository _taskListRepository;
public SectionPropertyController(IUnitOfWork unitOfWork, IAutomationSectionPropertyRepository sectionPropertyRepository,
ISigerProjectLevelSectionRepository levelSectionRepository, IAutomationFixtureMonitor fixtureMonitor, IProductRouteRepository routeRepository)
ISigerProjectLevelSectionRepository levelSectionRepository, IAutomationFixtureMonitor fixtureMonitor, IProductRouteRepository routeRepository,
IAutomationTaskListRepository taskListRepository)
{
_unitOfWork = unitOfWork;
_sectionPropertyRepository = sectionPropertyRepository;
......@@ -64,7 +66,7 @@ namespace Siger.ApiACC.Controllers
public IActionResult GetMonitorSnProduct(int sectionid)
{
var res = new ResponseMonitorSnProduct();
var monitor = _fixtureMonitor.Get(sectionid);
var monitor = _fixtureMonitor.Get(q => q.section == sectionid);
if(monitor != null)
{
res.id = monitor.productId;
......
......@@ -169,5 +169,7 @@ namespace Siger.Middlelayer.AccRepository
public DbSet<siger_automation_fixture_tools_monitor> siger_automation_fixture_tools_moniter { get; set; }
public DbSet<siger_check_sn_trace_inspection> siger_check_sn_trace_inspection { get; set; }
public DbSet<siger_check_sn_trace_detail> siger_check_sn_trace_detail { get; set; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment