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
818b8888
Commit
818b8888
authored
Jan 27, 2021
by
xin.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
1073830f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
12 deletions
+12
-12
FixtureToolsController.cs
...r/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
+2
-2
FixtureTools.cs
.../Siger.Middlelayer.Utility/ImportEntities/FixtureTools.cs
+4
-4
AutomationFixtureToolsAssemblyRepository.cs
.../Repositories/AutomationFixtureToolsAssemblyRepository.cs
+2
-2
AutomationFixtureToolsProductRepository.cs
...y/Repositories/AutomationFixtureToolsProductRepository.cs
+1
-1
AutomationFixtureToolsRepository.cs
...pository/Repositories/AutomationFixtureToolsRepository.cs
+2
-2
AutomationLocationRepository.cs
...ccRepository/Repositories/AutomationLocationRepository.cs
+1
-1
No files found.
Server/Apis/Siger.ApiACC/Controllers/FixtureToolsController.cs
View file @
818b8888
...
...
@@ -132,7 +132,7 @@ namespace Siger.ApiACC.Controllers
{
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
var
data
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
(
q
.
name
==
req
.
name
||
q
.
code
==
req
.
code
||
q
.
partnumber
==
req
.
partnumber
)
);
var
data
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
code
==
req
.
code
);
if
(
data
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
...
...
@@ -184,7 +184,7 @@ namespace Siger.ApiACC.Controllers
throw
new
BadRequestException
(
RequestEnum
.
ParameterMiss
);
}
var
entity
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
id
==
req
.
id
);
var
data
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
(
q
.
name
==
req
.
name
||
q
.
code
==
req
.
code
||
q
.
partnumber
==
req
.
partnumber
)
&&
q
.
id
!=
req
.
id
);
var
data
=
_toolsRepository
.
Get
(
q
=>
q
.
projectId
==
ProjectId
&&
q
.
code
==
req
.
code
&&
q
.
id
!=
req
.
id
);
if
(
data
!=
null
)
{
throw
new
BadRequestException
(
RequestEnum
.
DataExist
);
...
...
Server/Common/Siger.Middlelayer.Utility/ImportEntities/FixtureTools.cs
View file @
818b8888
...
...
@@ -82,7 +82,7 @@ namespace Siger.Middlelayer.Utility.ImportEntities
[
ExcelColumn
(
"工装类型"
)]
public
string
Categroy
{
get
;
set
;
}
[
ExcelColumn
(
"*工装
名称
"
)]
[
ExcelColumn
(
"*工装
编号
"
)]
public
string
FixtureTool
{
get
;
set
;
}
[
ExcelColumn
(
"*产品编号"
)]
...
...
@@ -127,13 +127,13 @@ namespace Siger.Middlelayer.Utility.ImportEntities
[
ExcelColumn
(
"父工装类型"
)]
public
string
ParentCategory
{
get
;
set
;
}
[
ExcelColumn
(
"*父工装
名称
"
)]
[
ExcelColumn
(
"*父工装
编号
"
)]
public
string
ParentFixtureTool
{
get
;
set
;
}
[
ExcelColumn
(
"子工装类型"
)]
public
string
Category
{
get
;
set
;
}
[
ExcelColumn
(
"*子工装
名称
"
)]
[
ExcelColumn
(
"*子工装
编号
"
)]
public
string
FixtureTool
{
get
;
set
;
}
[
ExcelColumn
(
"备注"
)]
...
...
@@ -195,7 +195,7 @@ namespace Siger.Middlelayer.Utility.ImportEntities
[
ExcelColumn
(
"*储位ID"
)]
public
string
LocationId
{
get
;
set
;
}
[
ExcelColumn
(
"*工装
名称
"
)]
[
ExcelColumn
(
"*工装
编号
"
)]
public
string
FixtureTool
{
get
;
set
;
}
[
ExcelColumn
(
"备注"
)]
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsAssemblyRepository.cs
View file @
818b8888
...
...
@@ -191,12 +191,12 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParentSonSame
}
"
);
}
var
parent
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
nam
e
==
item
.
ParentFixtureTool
&&
q
.
projectId
==
projectid
);
var
parent
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
cod
e
==
item
.
ParentFixtureTool
&&
q
.
projectId
==
projectid
);
if
(
parent
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
}
var
son
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
nam
e
==
item
.
FixtureTool
&&
q
.
projectId
==
projectid
);
var
son
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
cod
e
==
item
.
FixtureTool
&&
q
.
projectId
==
projectid
);
if
(
son
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsProductRepository.cs
View file @
818b8888
...
...
@@ -156,7 +156,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
}
var
fixtureTool
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
nam
e
==
item
.
FixtureTool
);
var
fixtureTool
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
cod
e
==
item
.
FixtureTool
);
if
(
fixtureTool
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationFixtureToolsRepository.cs
View file @
818b8888
...
...
@@ -147,12 +147,12 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
}
var
data
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
(
q
.
name
==
item
.
Name
||
q
.
code
==
item
.
Code
||
q
.
partnumber
==
item
.
PartNumber
)
);
var
data
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
projectId
==
projectid
&&
q
.
code
==
item
.
Code
);
if
(
data
!=
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
DataExist
}
"
);
}
if
(
list
.
Count
(
q
=>
q
.
Name
==
item
.
Name
||
q
.
Code
==
item
.
Code
||
q
.
PartNumber
==
item
.
PartNumber
)
>
1
)
if
(
list
.
Count
(
q
=>
q
.
Code
==
item
.
Code
)
>
1
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
DataExist
}
"
);
}
...
...
Server/Infrastructure/Repositories/Siger.Middlelayer.AccRepository/Repositories/AutomationLocationRepository.cs
View file @
818b8888
...
...
@@ -137,7 +137,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
ParameterMiss
}
"
);
}
var
fixturetool
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
nam
e
==
item
.
FixtureTool
&&
q
.
projectId
==
projectid
);
var
fixturetool
=
_context
.
siger_automation_fixture_tools
.
FirstOrDefault
(
q
=>
q
.
cod
e
==
item
.
FixtureTool
&&
q
.
projectId
==
projectid
);
if
(
fixturetool
==
null
)
{
errors
.
Add
(
$"
{
rowIndex
}
,
{(
int
)
RequestEnum
.
FixtureToolNotFound
}
"
);
...
...
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