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
b1cff347
Commit
b1cff347
authored
Jan 20, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some update
parent
51c9aabc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
FixtureToolsController.cs
...r/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
+2
-2
FixtureToolsProductController.cs
...Siger.ApiACC/Controllers/FixtureToolsProductController.cs
+2
-2
No files found.
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
View file @
b1cff347
...
...
@@ -55,7 +55,7 @@ namespace Siger.ApiACC.Controllers
var
category
=
_toolsCategoryRepository
.
Get
(
q
=>
q
.
id
==
req
.
categoryid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
if
(
category
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
throw
new
BadRequestException
(
RequestEnum
.
FixtureTool
Catgeory
NotFound
);
}
var
entity
=
new
siger_automation_fixture_tools
...
...
@@ -106,7 +106,7 @@ namespace Siger.ApiACC.Controllers
var
category
=
_toolsCategoryRepository
.
Get
(
q
=>
q
.
id
==
req
.
categoryid
.
ToInt
()
&&
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
);
if
(
category
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
throw
new
BadRequestException
(
RequestEnum
.
FixtureTool
Catgeory
NotFound
);
}
entity
.
category
=
category
.
guid
;
...
...
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsProductController.cs
View file @
b1cff347
...
...
@@ -52,7 +52,7 @@ namespace Siger.ApiACC.Controllers
var
fixtureTool
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
fixturetoolid
.
ToInt
());
if
(
fixtureTool
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureTool
Catgeory
NotFound
);
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
}
var
product
=
_productRepository
.
Get
(
q
=>
q
.
projectid
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
productid
.
ToInt
());
if
(
product
==
null
)
...
...
@@ -104,7 +104,7 @@ namespace Siger.ApiACC.Controllers
var
fixtureTool
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
fixturetoolid
.
ToInt
());
if
(
fixtureTool
==
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
FixtureTool
Catgeory
NotFound
);
throw
new
BadRequestException
(
RequestEnum
.
FixtureToolNotFound
);
}
var
product
=
_productRepository
.
Get
(
q
=>
q
.
projectid
==
ProjectId
&&
q
.
status
==
(
int
)
RowState
.
Valid
&&
q
.
id
==
req
.
productid
.
ToInt
());
if
(
product
==
null
)
...
...
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