Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68b453bc
authored
Oct 23, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.25.0 优化设备类型校验逻辑
1 parent
93906df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
src/main/java/cn/com/glsx/stdinterface/modules/service/WorkOrderService.java
View file @
68b453b
...
@@ -984,9 +984,13 @@ public class WorkOrderService {
...
@@ -984,9 +984,13 @@ public class WorkOrderService {
DeviceDTO
deviceDTO
=
deviceDTOR
.
getData
(
DeviceDTO
.
class
);
DeviceDTO
deviceDTO
=
deviceDTOR
.
getData
(
DeviceDTO
.
class
);
if
(
deviceDTO
!=
null
)
{
if
(
deviceDTO
!=
null
)
{
// 增加设备类型校验
// 增加设备类型校验
// deviceItem.setWireType(deviceDTO.getSource());
if
(
Objects
.
isNull
(
deviceItem
.
getWireType
()))
{
if
(!
deviceDTO
.
getSource
().
equals
(
deviceItem
.
getWireType
()))
{
deviceItem
.
setWireType
(
deviceDTO
.
getSource
());
throw
new
StdInterfaceException
(
"656565"
,
"设备类型不匹配"
);
}
else
{
// 包活干会将设备类型传递过来 此处校验主要对包活干设备类型校验
if
(!
deviceDTO
.
getSource
().
equals
(
deviceItem
.
getWireType
()))
{
throw
new
StdInterfaceException
(
"656565"
,
"设备类型不匹配"
);
}
}
}
}
else
{
}
else
{
throw
new
StdInterfaceException
(
"656565"
,
"该设备尚未入库"
);
throw
new
StdInterfaceException
(
"656565"
,
"该设备尚未入库"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment