Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
Laisi_AutoMES2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiawei.su
Laisi_AutoMES2
Commits
b29d7b7f
Commit
b29d7b7f
authored
Feb 06, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
073d2815
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
SectionPropertyController.cs
...pis/Siger.ApiACC/Controllers/SectionPropertyController.cs
+4
-2
ApiAccDbContext.cs
...tories/Siger.Middlelayer.AccRepository/ApiAccDbContext.cs
+2
-0
No files found.
Server/Apis/Siger.ApiACC/Controllers/SectionPropertyController.cs
View file @
b29d7b7f
...
...
@@ -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
;
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/ApiAccDbContext.cs
View file @
b29d7b7f
...
...
@@ -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
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment