Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
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
pseer
gxpt_ht
Commits
8d0301b8
Commit
8d0301b8
authored
Dec 28, 2023
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保洁任务中断短信提醒
parent
fa0bfc30
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
+19
-1
SmsTypeEnum.java
...-common/src/main/java/share/common/enums/SmsTypeEnum.java
+1
-0
SmsService.java
...system/src/main/java/share/system/service/SmsService.java
+6
-1
SmsServiceImpl.java
...c/main/java/share/system/service/impl/SmsServiceImpl.java
+12
-0
No files found.
share-common/src/main/java/share/common/enums/SmsTypeEnum.java
View file @
8d0301b8
...
@@ -13,6 +13,7 @@ public enum SmsTypeEnum {
...
@@ -13,6 +13,7 @@ public enum SmsTypeEnum {
SMS_CLEAN_RECORDS_TEMP_15
(
3
,
"sms.clean.records.template.15"
,
"即将保洁任务短信提醒"
),
SMS_CLEAN_RECORDS_TEMP_15
(
3
,
"sms.clean.records.template.15"
,
"即将保洁任务短信提醒"
),
SMS_ORDER_START_TEMP
(
4
,
"sms.order.start.template"
,
"订单即将开始提示短信"
),
SMS_ORDER_START_TEMP
(
4
,
"sms.order.start.template"
,
"订单即将开始提示短信"
),
SMS_ORDER_END_TEMP
(
5
,
"sms.order.end.template"
,
"订单即结束始提示短信"
),
SMS_ORDER_END_TEMP
(
5
,
"sms.order.end.template"
,
"订单即结束始提示短信"
),
SMS_CLEAN_RECORDS_STOP_TEMP
(
6
,
"sms.clean.records.stop.template"
,
"保洁任务中断短信提醒"
),
;
;
private
Integer
code
;
private
Integer
code
;
...
...
share-system/src/main/java/share/system/service/SmsService.java
View file @
8d0301b8
...
@@ -46,7 +46,12 @@ public interface SmsService {
...
@@ -46,7 +46,12 @@ public interface SmsService {
*/
*/
boolean
sendSmsOrderEndRemind
(
String
phone
,
SStore
store
,
SRoom
room
);
boolean
sendSmsOrderEndRemind
(
String
phone
,
SStore
store
,
SRoom
room
);
/**
* 发送保洁任务中断提示短信(用户续单成功提示保洁任务中断,已经发送过保洁提醒短信)
* @param phone
* @return
*/
boolean
sendSmsCleanRecordsStopRemind
(
String
phone
,
SStore
store
,
SRoom
room
);
}
}
share-system/src/main/java/share/system/service/impl/SmsServiceImpl.java
View file @
8d0301b8
...
@@ -145,6 +145,18 @@ public class SmsServiceImpl implements SmsService {
...
@@ -145,6 +145,18 @@ public class SmsServiceImpl implements SmsService {
}
}
}
}
@Override
public
boolean
sendSmsCleanRecordsStopRemind
(
String
phone
,
SStore
store
,
SRoom
room
)
{
// 通过配置获取短信模版
SysConfig
config
=
sysConfigMapper
.
checkConfigKeyUnique
(
SmsTypeEnum
.
SMS_CLEAN_RECORDS_STOP_TEMP
.
getValue
());
if
(
config
!=
null
)
{
String
content
=
MessageFormat
.
format
(
config
.
getConfigValue
(),
store
.
getName
(),
room
.
getName
(),
store
.
getAddress
());
return
sendSms
(
phone
,
SmsTypeEnum
.
SMS_CLEAN_RECORDS_STOP_TEMP
.
getCode
(),
content
);
}
else
{
return
Boolean
.
FALSE
;
}
}
private
String
getSmsContent
(
String
phone
,
Integer
tag
)
{
private
String
getSmsContent
(
String
phone
,
Integer
tag
)
{
// 验证码 特殊处理 code
// 验证码 特殊处理 code
if
(
tag
.
equals
(
SmsTypeEnum
.
SMS_CODE_TEMP
.
getCode
()))
{
if
(
tag
.
equals
(
SmsTypeEnum
.
SMS_CODE_TEMP
.
getCode
()))
{
...
...
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