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
036770ac
Commit
036770ac
authored
Feb 03, 2021
by
jiawei.su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixedbug
parent
5c16ef62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
AutomationController.cs
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
+3
-1
AutomationTaskListRepository.cs
...ccRepository/Repositories/AutomationTaskListRepository.cs
+4
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/AutomationController.cs
View file @
036770ac
...
@@ -458,7 +458,9 @@ namespace Siger.ApiACC.Controllers
...
@@ -458,7 +458,9 @@ namespace Siger.ApiACC.Controllers
else
else
{
{
var
nextRoute
=
productRoutes
.
OrderBy
(
d
=>
d
.
serialNumber
).
FirstOrDefault
();
var
nextRoute
=
productRoutes
.
OrderBy
(
d
=>
d
.
serialNumber
).
FirstOrDefault
();
locationObj
.
route
=
nextRoute
!=
null
?
nextRoute
.
id
.
ToString
()
:
""
;
locationObj
.
routeid
=
nextRoute
!=
null
?
nextRoute
.
id
:
0
;
locationObj
.
route
=
nextRoute
!=
null
?
nextRoute
.
name
:
""
;
}
}
_automationLocation
.
Update
(
locationObj
);
_automationLocation
.
Update
(
locationObj
);
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationTaskListRepository.cs
View file @
036770ac
...
@@ -94,6 +94,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -94,6 +94,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
{
var
query
=
from
q
in
_context
.
siger_automation_task_list
var
query
=
from
q
in
_context
.
siger_automation_task_list
join
t
in
_context
.
siger_automation_fixture_tools
on
q
.
fixtureguid
equals
t
.
guid
join
t
in
_context
.
siger_automation_fixture_tools
on
q
.
fixtureguid
equals
t
.
guid
join
r
in
_context
.
siger_project_product_route
on
q
.
route
equals
r
.
id
into
rtemp
from
r
in
rtemp
.
DefaultIfEmpty
()
join
s
in
_context
.
siger_project_level_section
on
q
.
sectionid
equals
s
.
id
join
s
in
_context
.
siger_project_level_section
on
q
.
sectionid
equals
s
.
id
join
lv
in
_context
.
siger_project_level_section
on
s
.
parentid
equals
lv
.
id
join
lv
in
_context
.
siger_project_level_section
on
s
.
parentid
equals
lv
.
id
where
q
.
projectId
==
projectid
where
q
.
projectId
==
projectid
...
@@ -117,7 +119,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
...
@@ -117,7 +119,8 @@ namespace Siger.Middlelayer.AccRepository.Repositories
ordernumber
=
q
.
ordercode
,
ordernumber
=
q
.
ordercode
,
productCode
=
q
.
productcode
,
productCode
=
q
.
productcode
,
program
=
q
.
programnumber
,
program
=
q
.
programnumber
,
route
=
q
.
remark
,
route
=
r
!=
null
?
$"
{
r
.
serialNumber
}
-
{
r
.
name
}
"
:
""
,
tasktype
=
EnumHelper
.
GetEnumDesc
(
q
.
tasktype
),
tasktype
=
EnumHelper
.
GetEnumDesc
(
q
.
tasktype
),
status
=
q
.
status
,
status
=
q
.
status
,
...
...
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