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
bdf11dee
Commit
bdf11dee
authored
Aug 31, 2024
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理iotcode为空
parent
33bfd3f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+1
-1
BeanUtil.java
...src/main/java/com/yeejoin/equipmanage/utils/BeanUtil.java
+7
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
bdf11dee
...
...
@@ -2531,7 +2531,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
EquipmentSpecificIndex
equipmentSpecificIndex
=
new
EquipmentSpecificIndex
();
String
prefix
=
null
;
String
suffix
=
null
;
if
(
iotCode
.
length
()
>
8
)
{
if
(
!
StringUtils
.
isEmpty
(
iotCode
)
&&
iotCode
.
length
()
>
8
)
{
prefix
=
iotCode
.
substring
(
0
,
8
);
suffix
=
iotCode
.
substring
(
8
);
}
else
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/utils/BeanUtil.java
View file @
bdf11dee
...
...
@@ -4,6 +4,8 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.BeanWrapper
;
import
org.springframework.beans.BeanWrapperImpl
;
import
liquibase.util.StringUtil
;
import
java.util.HashSet
;
import
java.util.Set
;
...
...
@@ -33,6 +35,11 @@ public class BeanUtil {
public
static
boolean
judgePropertyContainsChar
(
String
sourceStr
,
String
specialStr
)
{
boolean
bool
=
Boolean
.
FALSE
;
if
(
StringUtil
.
isEmpty
(
sourceStr
)
||
StringUtil
.
isEmpty
(
specialStr
)){
return
bool
;
}
specialStr
=
specialStr
.
trim
();
sourceStr
=
sourceStr
.
trim
();
String
[]
strings
=
specialStr
.
split
(
","
);
for
(
String
code
:
strings
)
{
if
(
sourceStr
.
contains
(
code
))
{
...
...
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