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
6243dd92
Commit
6243dd92
authored
Mar 31, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改string型判断引用
parent
a4e9e11c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+8
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
6243dd92
...
...
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.Sequence
;
import
com.baomidou.mybatisplus.core.toolkit.StringUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.common.collect.Lists
;
...
...
@@ -679,7 +680,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
PartDetailVO
partDetail
=
new
PartDetailVO
();
partDetail
.
setValue
(
"部件详情"
);
devOverview
.
setOperaState
(
StringUtil
s
.
isNotEmpty
(
equipmentSecificDetail
.
getStatus
())
?
equipmentSecificDetail
.
getStatus
()
:
"1"
);
devOverview
.
setOperaState
(
StringUtil
.
isNotEmpty
(
equipmentSecificDetail
.
getStatus
())
?
equipmentSecificDetail
.
getStatus
()
:
"1"
);
Map
<
String
,
Object
>
operaStateMap
=
new
HashMap
<>();
operaStateMap
.
put
(
"1"
,
"正常"
);
operaStateMap
.
put
(
"2"
,
"报警"
);
...
...
@@ -921,7 +922,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Override
public
boolean
equipmentgetIsSingleByQrcode
(
String
qrCode
,
Long
equipmentSpecifticId
)
{
EquipmentSpecific
equipmentSpecific
;
if
(
StringUtils
.
is
Empty
(
qrCode
))
{
if
(
StringUtils
.
is
Blank
(
qrCode
))
{
QueryWrapper
<
EquipmentSpecific
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
eq
(
"equipment_specific_id"
,
equipmentSpecifticId
);
equipmentSpecific
=
this
.
baseMapper
.
selectOne
(
wrapper
);
...
...
@@ -1111,7 +1112,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Override
public
List
<
EquipmentOnCarVo
>
getAirEquipSpecificList
(
String
like
,
String
notLike
,
Integer
status
)
{
String
[]
split
=
null
;
if
(
StringUtil
s
.
isNotEmpty
(
notLike
))
{
if
(
StringUtil
.
isNotEmpty
(
notLike
))
{
split
=
notLike
.
split
(
","
);
}
List
<
EquipmentOnCarVo
>
list
=
equipmentSpecificMapper
.
getAirEquipSpecificList
(
like
,
split
,
status
);
...
...
@@ -1124,7 +1125,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Override
public
IPage
<
EquipmentOnCarVo
>
onCarVoIPage
(
EquipmentSpecificDto
equipmentSpecificDto
)
{
String
[]
strs
=
null
;
if
(
StringUtil
s
.
isNotEmpty
(
codes
))
{
if
(
StringUtil
.
isNotEmpty
(
codes
))
{
strs
=
codes
.
split
(
","
);
}
equipmentSpecificDto
.
setCodes
(
strs
);
...
...
@@ -1187,15 +1188,15 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
equipmentSpecific
.
setEquipmentCode
(
equipmentCode
);
equipmentSpecific
.
setName
(
equipmentDetail
.
getName
());
if
(
StringUtil
s
.
isNotEmpty
(
equipmentDetail
.
getArea
()))
{
if
(
StringUtil
.
isNotEmpty
(
equipmentDetail
.
getArea
()))
{
String
[]
addressData
=
equipmentDetail
.
getArea
().
split
(
"@address@"
);
if
(
addressData
.
length
>
1
)
{
equipmentDetail
.
setArea
(
addressData
[
0
]);
JSONObject
langLatObj
=
JSON
.
parseObject
(
addressData
[
1
]);
if
(
StringUtil
s
.
isNotEmpty
(
langLatObj
.
getString
(
"longitude"
)))
{
if
(
StringUtil
.
isNotEmpty
(
langLatObj
.
getString
(
"longitude"
)))
{
equipmentDetail
.
setLongitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"longitude"
)));
}
if
(
StringUtil
s
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
if
(
StringUtil
.
isNotEmpty
(
langLatObj
.
getString
(
"latitude"
)))
{
equipmentDetail
.
setLatitude
(
Double
.
valueOf
(
langLatObj
.
getString
(
"latitude"
)));
}
}
...
...
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