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 f8212b28
authored
Apr 18, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化代码
1 parent
11d2f910
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
34 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 @
f8212b2
...
@@ -17,6 +17,7 @@ import cn.com.glsx.stdinterface.common.enums.TypeConverseEunm;
...
@@ -17,6 +17,7 @@ import cn.com.glsx.stdinterface.common.enums.TypeConverseEunm;
import
cn.com.glsx.stdinterface.common.exception.StdInterfaceException
;
import
cn.com.glsx.stdinterface.common.exception.StdInterfaceException
;
import
cn.com.glsx.stdinterface.dto.*
;
import
cn.com.glsx.stdinterface.dto.*
;
import
cn.com.glsx.stdinterface.enums.BizServiceTypeEnum
;
import
cn.com.glsx.stdinterface.enums.BizServiceTypeEnum
;
import
cn.com.glsx.stdinterface.enums.DeviceComposeEnum
;
import
cn.com.glsx.stdinterface.enums.WorkOrderSourceEnum
;
import
cn.com.glsx.stdinterface.enums.WorkOrderSourceEnum
;
import
cn.com.glsx.stdinterface.enums.WorkOrderStatusEnum
;
import
cn.com.glsx.stdinterface.enums.WorkOrderStatusEnum
;
import
cn.com.glsx.stdinterface.modules.converter.*
;
import
cn.com.glsx.stdinterface.modules.converter.*
;
...
@@ -231,19 +232,19 @@ public class WorkOrderService {
...
@@ -231,19 +232,19 @@ public class WorkOrderService {
}
}
if
(
"1单有源"
.
equals
(
deviceCompose
))
{
if
(
"1单有源"
.
equals
(
deviceCompose
))
{
return
"010"
;
return
DeviceComposeEnum
.
SINGLE_WIRED
.
getCode
()
;
}
}
if
(
"2单无源"
.
equals
(
deviceCompose
))
{
if
(
"2单无源"
.
equals
(
deviceCompose
))
{
return
"001"
;
return
DeviceComposeEnum
.
SINGLE_WIRELESS
.
getCode
()
;
}
}
if
(
"3单有源+单无源"
.
equals
(
deviceCompose
))
{
if
(
"3单有源+单无源"
.
equals
(
deviceCompose
))
{
return
"011"
;
return
DeviceComposeEnum
.
ONE_WIRED_ONE_WIRELESS
.
getCode
()
;
}
}
if
(
"4单有源+双无源"
.
equals
(
deviceCompose
))
{
if
(
"4单有源+双无源"
.
equals
(
deviceCompose
))
{
return
"012"
;
return
DeviceComposeEnum
.
ONE_WIRED_TWO_WIRELESS
.
getCode
()
;
}
}
if
(
"5双无源"
.
equals
(
deviceCompose
))
{
if
(
"5双无源"
.
equals
(
deviceCompose
))
{
return
"002"
;
return
DeviceComposeEnum
.
TWO_WIRELESS
.
getCode
()
;
}
}
String
[]
devices
=
deviceCompose
.
split
(
";"
);
String
[]
devices
=
deviceCompose
.
split
(
";"
);
...
@@ -540,35 +541,6 @@ public class WorkOrderService {
...
@@ -540,35 +541,6 @@ public class WorkOrderService {
}
}
/**
/**
* 构建设组合信息
*
* @param deviceCompose 设备组合类型 010
*/
public
String
buildDeviceCompose
(
String
deviceCompose
)
{
String
deviceComposeStr
=
""
;
switch
(
deviceCompose
)
{
case
"010"
:
deviceComposeStr
=
"单有源"
;
break
;
case
"001"
:
deviceComposeStr
=
"单无源"
;
break
;
case
"011"
:
deviceComposeStr
=
"单有源+单无源"
;
break
;
case
"012"
:
deviceComposeStr
=
"单有源+双无源"
;
break
;
case
"002"
:
deviceComposeStr
=
"双无源"
;
break
;
default
:
deviceComposeStr
=
""
;
}
return
deviceComposeStr
;
}
/**
* 构建工单
* 构建工单
*
*
* @param orderReq
* @param orderReq
...
...
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