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
11bb412a
Commit
11bb412a
authored
Jun 18, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中心BUG修改
parent
e98565f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+2
-1
SignServiceImpl.java
...mos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
+2
-2
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 @
11bb412a
...
...
@@ -1967,8 +1967,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
Date
now
=
new
Date
();
String
scrapTime
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
).
format
(
calendar
.
getTime
());
int
day
=
DateUtils
.
dateBetween
(
now
,
calendar
.
getTime
());
log
.
info
(
"报废时间:{}"
,
day
);
log
.
info
(
"报废时间ID:{}"
,
e
.
get
(
"id"
).
toString
());
if
(
day
<
Integer
.
parseInt
(
equipmentScrapDay
)
&&
day
>
-
1
)
{
syncSystemctlMsg
(
e
,
scrapTime
,
day
);
}
else
if
(
day
==
-
1
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/SignServiceImpl.java
View file @
11bb412a
...
...
@@ -214,9 +214,9 @@ public class SignServiceImpl extends BaseService<SignDto,Sign,SignMapper> implem
if
(
mapSign
.
size
()
==
0
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"bizOrgCode"
,
""
);
map
Sign
.
add
(
map
);
map
List
.
add
(
map
);
try
{
emqKeeper
.
getMqttClient
().
publish
(
"jcs/sign/put"
,
JSONObject
.
toJSONString
(
map
Sign
).
getBytes
(),
1
,
false
);
emqKeeper
.
getMqttClient
().
publish
(
"jcs/sign/put"
,
JSONObject
.
toJSONString
(
map
List
).
getBytes
(),
1
,
false
);
}
catch
(
MqttException
exp
)
{
log
.
info
(
String
.
format
(
"发送eqm转kafka消息失败:%s"
,
exp
.
getMessage
()));
}
...
...
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