Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
2ab9ca11
Commit
2ab9ca11
authored
Apr 11, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加消息发送系统
parent
9c744fbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
portal-manager/src/main/java/com/mortals/xhx/common/code/AppSourceEnum.java
.../main/java/com/mortals/xhx/common/code/AppSourceEnum.java
+1
-1
portal-manager/src/main/java/com/mortals/xhx/common/code/MessageTypeEnum.java
...ain/java/com/mortals/xhx/common/code/MessageTypeEnum.java
+11
-11
No files found.
portal-manager/src/main/java/com/mortals/xhx/common/code/AppSourceEnum.java
View file @
2ab9ca11
...
@@ -49,7 +49,7 @@ public enum AppSourceEnum {
...
@@ -49,7 +49,7 @@ public enum AppSourceEnum {
try
{
try
{
boolean
hasE
=
false
;
boolean
hasE
=
false
;
for
(
String
e
:
eItem
)
{
for
(
String
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
if
(
item
.
getValue
()
.
equals
(
e
)
)
{
hasE
=
true
;
hasE
=
true
;
break
;
break
;
}
}
...
...
portal-manager/src/main/java/com/mortals/xhx/common/code/MessageTypeEnum.java
View file @
2ab9ca11
...
@@ -4,10 +4,10 @@ import java.util.LinkedHashMap;
...
@@ -4,10 +4,10 @@ import java.util.LinkedHashMap;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* 消息类型(等待超时预警,办理超时预警,差评预警)枚举类
* 消息类型(等待超时预警,办理超时预警,差评预警)枚举类
*
*
* @author zxfei
* @author zxfei
*/
*/
public
enum
MessageTypeEnum
{
public
enum
MessageTypeEnum
{
等待超时预警
(
"等待超时预警"
,
"等待超时预警"
),
等待超时预警
(
"等待超时预警"
,
"等待超时预警"
),
办理超时预警
(
"办理超时预警"
,
"办理超时预警"
),
办理超时预警
(
"办理超时预警"
,
"办理超时预警"
),
...
@@ -30,7 +30,7 @@ public enum MessageTypeEnum {
...
@@ -30,7 +30,7 @@ public enum MessageTypeEnum {
public
static
MessageTypeEnum
getByValue
(
String
value
)
{
public
static
MessageTypeEnum
getByValue
(
String
value
)
{
for
(
MessageTypeEnum
messageTypeEnum
:
MessageTypeEnum
.
values
())
{
for
(
MessageTypeEnum
messageTypeEnum
:
MessageTypeEnum
.
values
())
{
if
(
messageTypeEnum
.
getValue
()
==
value
)
{
if
(
messageTypeEnum
.
getValue
()
.
equals
(
value
)
)
{
return
messageTypeEnum
;
return
messageTypeEnum
;
}
}
}
}
...
@@ -38,18 +38,18 @@ public enum MessageTypeEnum {
...
@@ -38,18 +38,18 @@ public enum MessageTypeEnum {
}
}
/**
/**
* 获取Map集合
* 获取Map集合
*
*
* @param eItem 不包含项
* @param eItem 不包含项
* @return
* @return
*/
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
String
...
eItem
)
{
public
static
Map
<
String
,
String
>
getEnumMap
(
String
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
MessageTypeEnum
item
:
MessageTypeEnum
.
values
())
{
for
(
MessageTypeEnum
item
:
MessageTypeEnum
.
values
())
{
try
{
try
{
boolean
hasE
=
false
;
boolean
hasE
=
false
;
for
(
String
e
:
eItem
)
{
for
(
String
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
if
(
item
.
getValue
()
.
equals
(
e
)
)
{
hasE
=
true
;
hasE
=
true
;
break
;
break
;
}
}
...
...
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