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
3fe57b20
Commit
3fe57b20
authored
Jun 18, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(重要提醒):设备新增提醒开发
1.重要提醒设备开发联调测试
parent
9143938c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
NewEquipReminderAdapter.java
...jg/biz/reminder/biz/newEquip/NewEquipReminderAdapter.java
+3
-2
RemindServiceImpl.java
...oot/module/jg/biz/reminder/service/RemindServiceImpl.java
+2
-1
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/reminder/biz/newEquip/NewEquipReminderAdapter.java
View file @
3fe57b20
...
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.jg.biz.reminder.dto.MatchItemDto;
import
com.yeejoin.amos.boot.module.jg.biz.reminder.dto.ReminderItemDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgRegisterInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgUseInfo
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.stereotype.Component
;
...
...
@@ -55,7 +56,7 @@ public class NewEquipReminderAdapter extends DefaultReminder {
IdxBizJgRegisterInfo
registerInfo
=
newEquipParseService
.
geEquipInfoFromJson
(
formData
,
IdxBizJgRegisterInfo
.
class
);
IdxBizJgUseInfo
bizJgUseInfo
=
newEquipParseService
.
geEquipInfoFromJson
(
formData
,
IdxBizJgUseInfo
.
class
);
ReminderItemDto
reminderItemDto
=
new
ReminderItemDto
();
reminderItemDto
.
setEquipId
(
bizId
==
null
?
"1"
:
bizId
);
reminderItemDto
.
setEquipId
(
StringUtils
.
isEmpty
(
bizId
)
?
"1"
:
bizId
);
reminderItemDto
.
setEquipNo
(
bizJgUseInfo
.
getUseInnerCode
());
reminderItemDto
.
setEquipName
(
registerInfo
.
getProductName
());
reminderItemDto
.
setDetailData
(
newEquipParseService
.
getDetailInfoFromJson
(
formData
));
...
...
@@ -68,7 +69,7 @@ public class NewEquipReminderAdapter extends DefaultReminder {
public
MatchItemDto
setMatchItem
(
String
bizId
,
Map
<
String
,
Object
>
formData
)
{
MatchItemDto
matchItemDto
=
MatchItemDto
.
builder
().
build
();
newEquipParseService
.
setEquCateInfoForInsert
(
formData
,
matchItemDto
);
matchItemDto
.
setRegType
(
bizId
!=
null
?
newEquipParseService
.
getRegTypeForEdit
(
bizId
)
:
newEquipParseService
.
getRegTypeForInsert
(
formData
));
matchItemDto
.
setRegType
(
StringUtils
.
isNotEmpty
(
bizId
)
?
newEquipParseService
.
getRegTypeForEdit
(
bizId
)
:
newEquipParseService
.
getRegTypeForInsert
(
formData
));
return
matchItemDto
;
}
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/reminder/service/RemindServiceImpl.java
View file @
3fe57b20
...
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.module.jg.biz.reminder.core.IReminderHandler;
import
com.yeejoin.amos.boot.module.jg.biz.reminder.core.ReminderFactory
;
import
com.yeejoin.amos.boot.module.jg.biz.reminder.dto.ReminderItemDto
;
import
lombok.RequiredArgsConstructor
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
...
...
@@ -17,7 +18,7 @@ public class RemindServiceImpl {
private
final
ReminderFactory
reminderFactory
;
public
IPage
<
ReminderItemDto
>
getReminderItems
(
Page
<
ReminderItemDto
>
page
,
String
bizId
,
String
bizType
,
IReminderHandler
.
SourceType
sourceType
,
Map
<
String
,
Object
>
formData
)
{
return
reminderFactory
.
getReminderHandler
(
bizType
).
remindersPage
(
page
,
bizId
,
sourceType
,
formData
);
return
reminderFactory
.
getReminderHandler
(
bizType
).
remindersPage
(
page
,
StringUtils
.
isEmpty
(
bizId
)
?
null
:
bizId
,
sourceType
,
formData
);
}
public
Integer
getReminderLevel
(
String
bizId
,
String
bizType
)
{
...
...
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