Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
6bb6a4b4
Commit
6bb6a4b4
authored
Jun 02, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通赋码返回值修改
parent
836900fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+7
-6
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
6bb6a4b4
...
@@ -197,15 +197,15 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -197,15 +197,15 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
log
.
info
(
record
+
"已生成对应监管码或96333电梯识别码"
);
log
.
info
(
record
+
"已生成对应监管码或96333电梯识别码"
);
String
equState
=
EquipmentCategoryEnum
.
CSZT
.
getCode
();
String
equState
=
EquipmentCategoryEnum
.
CSZT
.
getCode
();
SupervisoryCodeInfo
supervisoryCodeInfo
=
new
SupervisoryCodeInfo
();
SupervisoryCodeInfo
supervisoryCodeInfo
=
new
SupervisoryCodeInfo
();
supervisoryCodeInfo
.
setCode96333
(
codeMap
.
get
(
"
elevatorCode
"
));
supervisoryCodeInfo
.
setCode96333
(
codeMap
.
get
(
"
code96333
"
));
supervisoryCodeInfo
.
setSupervisoryCode
(
codeMap
.
get
(
"supervis
or
Code"
));
supervisoryCodeInfo
.
setSupervisoryCode
(
codeMap
.
get
(
"supervis
e
Code"
));
supervisoryCodeInfo
.
setStatus
(
equState
);
supervisoryCodeInfo
.
setStatus
(
equState
);
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
String
supervisorCode
,
elevatorCode
;
String
supervisorCode
,
elevatorCode
;
//设备状态为报废,对应电梯码作废
//设备状态为报废,对应电梯码作废
equState
=
EquipmentCategoryEnum
.
BF
.
getCode
().
equals
(
equInfoDto
.
getEquState
())
?
EquipmentCategoryEnum
.
WSY
.
getCode
()
:
EquipmentCategoryEnum
.
YSY
.
getCode
();
equState
=
EquipmentCategoryEnum
.
BF
.
getCode
().
equals
(
equInfoDto
.
getEquState
())
?
EquipmentCategoryEnum
.
WSY
.
getCode
()
:
EquipmentCategoryEnum
.
YSY
.
getCode
();
supervisorCode
=
codeMap
.
get
(
"supervis
or
Code"
);
supervisorCode
=
codeMap
.
get
(
"supervis
e
Code"
);
elevatorCode
=
EquipmentCategoryEnum
.
BF
.
getCode
().
equals
(
equInfoDto
.
getEquState
())
?
null
:
codeMap
.
get
(
"
elevatorCode
"
);
elevatorCode
=
EquipmentCategoryEnum
.
BF
.
getCode
().
equals
(
equInfoDto
.
getEquState
())
?
null
:
codeMap
.
get
(
"
code96333
"
);
List
<
CategoryOtherInfo
>
categoryOtherInfo
=
categoryOtherInfoMapper
.
selectList
(
new
QueryWrapper
<
CategoryOtherInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisorCode
));
List
<
CategoryOtherInfo
>
categoryOtherInfo
=
categoryOtherInfoMapper
.
selectList
(
new
QueryWrapper
<
CategoryOtherInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisorCode
));
if
(
categoryOtherInfo
.
size
()
>
0
)
{
if
(
categoryOtherInfo
.
size
()
>
0
)
{
categoryOtherInfoMapper
.
updateCode
(
supervisorCode
,
equState
);
categoryOtherInfoMapper
.
updateCode
(
supervisorCode
,
equState
);
...
@@ -451,8 +451,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -451,8 +451,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(
ObjectUtils
.
isEmpty
(
supervisorCode
)
&&
ObjectUtils
.
isEmpty
(
elevatorCode
))
{
if
(
ObjectUtils
.
isEmpty
(
supervisorCode
)
&&
ObjectUtils
.
isEmpty
(
elevatorCode
))
{
return
new
HashMap
<>();
return
new
HashMap
<>();
}
}
resultMap
.
put
(
"supervisorCode"
,
ObjectUtils
.
isEmpty
(
supervisorCode
)
?
null
:
supervisorCode
.
toString
());
resultMap
.
put
(
"superviseCode"
,
ObjectUtils
.
isEmpty
(
supervisorCode
)
?
null
:
supervisorCode
.
toString
());
resultMap
.
put
(
"elevatorCode"
,
ObjectUtils
.
isEmpty
(
elevatorCode
)
?
null
:
elevatorCode
.
toString
());
resultMap
.
put
(
"code96333"
,
ObjectUtils
.
isEmpty
(
elevatorCode
)
?
null
:
elevatorCode
.
toString
());
resultMap
.
put
(
"qrCode"
,
ObjectUtils
.
isEmpty
(
supervisorCode
)
?
null
:
supervisorCode
.
toString
());
return
resultMap
;
return
resultMap
;
}
}
...
...
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