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
a4bf6f99
Commit
a4bf6f99
authored
Apr 10, 2026
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(监管):历史设备登记
1.增加日志打印
parent
9dfe76e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+12
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
View file @
a4bf6f99
...
@@ -2141,7 +2141,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -2141,7 +2141,9 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
param
.
put
(
"CYLINDER_CATEGORY"
,
dataMap
.
get
(
"cylinderCategory"
));
param
.
put
(
"FACTORY_NUM"
,
MapUtil
.
getStr
(
dataMap
,
"factoryNum"
));
param
.
put
(
"FACTORY_NUM"
,
MapUtil
.
getStr
(
dataMap
,
"factoryNum"
));
ESEquipmentCategoryDto
categoryDto
=
op
.
get
();
ESEquipmentCategoryDto
categoryDto
=
op
.
get
();
log
.
info
(
"1.设备数据使用登记更新,更新前数据:{}"
,
JSONObject
.
toJSONString
(
categoryDto
)
);
BeanUtil
.
copyProperties
(
param
,
categoryDto
,
true
);
BeanUtil
.
copyProperties
(
param
,
categoryDto
,
true
);
log
.
info
(
"2.设备数据使用登记更新,待更新为:{}"
,
JSONObject
.
toJSONString
(
categoryDto
)
);
return
categoryDto
;
return
categoryDto
;
}
}
log
.
error
(
"办理使用登记的设备{},在es中不存在"
,
dataMap
.
get
(
"equipId"
));
log
.
error
(
"办理使用登记的设备{},在es中不存在"
,
dataMap
.
get
(
"equipId"
));
...
@@ -4828,6 +4830,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4828,6 +4830,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
build
());
.
build
());
}
}
esEquipmentCategory
.
saveWithFallback
(
equipmentCategoryDto
);
esEquipmentCategory
.
saveWithFallback
(
equipmentCategoryDto
);
log
.
info
(
"3.设备数据使用登记更新,更新后数据:{}"
,
JSONObject
.
toJSONString
(
this
.
findLastEquipEs
(
equipId
)));
eventPublisher
.
publish
(
new
EquipCreateOrEditEvent
(
this
,
BusinessTypeEnum
.
JG_NEW_EQUIP
.
name
(),
Sets
.
newHashSet
(
equipId
),
EquipCreateOrEditEvent
.
EquipType
.
equip
));
eventPublisher
.
publish
(
new
EquipCreateOrEditEvent
(
this
,
BusinessTypeEnum
.
JG_NEW_EQUIP
.
name
(),
Sets
.
newHashSet
(
equipId
),
EquipCreateOrEditEvent
.
EquipType
.
equip
));
return
this
.
baseMapper
.
getDetailById
(
jgUseRegistration
.
getSequenceNbr
());
return
this
.
baseMapper
.
getDetailById
(
jgUseRegistration
.
getSequenceNbr
());
}
}
...
@@ -4844,6 +4847,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
...
@@ -4844,6 +4847,15 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}
}
}
}
private
ESEquipmentCategoryDto
findLastEquipEs
(
String
equipId
)
{
try
{
return
esEquipmentCategory
.
findById
(
equipId
).
orElse
(
new
ESEquipmentCategoryDto
());
}
catch
(
Exception
e
)
{
log
.
error
(
"查询设备信息失败:{}"
,
equipId
,
e
);
return
new
ESEquipmentCategoryDto
();
}
}
public
String
buildTaskModel
(
JgUseRegistration
jgUseRegistration
,
JSONObject
map
,
ReginParams
reginParams
)
{
public
String
buildTaskModel
(
JgUseRegistration
jgUseRegistration
,
JSONObject
map
,
ReginParams
reginParams
)
{
TaskModelDto
modelDto
=
new
TaskModelDto
();
TaskModelDto
modelDto
=
new
TaskModelDto
();
modelDto
.
setNextExecuteUser
(
jgUseRegistration
.
getNextExecuteUserIds
());
modelDto
.
setNextExecuteUser
(
jgUseRegistration
.
getNextExecuteUserIds
());
...
...
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