Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
aed011ec
Commit
aed011ec
authored
Sep 17, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复短信发送bug
parent
4d325b34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
OrderMsgBiz.java
...n/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
+14
-6
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
View file @
aed011ec
...
...
@@ -14,7 +14,6 @@ import com.xxfc.platform.order.contant.enumerate.OrderTypeEnum;
import
com.xxfc.platform.order.contant.enumerate.RefundStatusEnum
;
import
com.xxfc.platform.order.contant.enumerate.RefundTypeEnum
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.pojo.account.OrderAccountDetail
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.dto.SmsTemplateDTO
;
import
com.xxfc.platform.universal.entity.Dictionary
;
...
...
@@ -297,6 +296,9 @@ public class OrderMsgBiz {
}
else
{
smstype
=
SmsTemplateDTO
.
CANCEL_A
;
}
//发送用户取消消息
sms2AppUser
(
startCompanyDetail
,
endCompanyDetail
,
orvd
,
otd
,
omd
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
}
else
{
//使用免费天数
if
(
null
!=
orvd
.
getFreeDays
()
&&
orvd
.
getFreeDays
()
>
0
)
{
...
...
@@ -304,14 +306,13 @@ public class OrderMsgBiz {
}
else
{
smstype
=
SmsTemplateDTO
.
CANCEL_C
;
}
//发送用户退款消息
smsParams
.
clear
();
sms2RefundAppUser
(
BigDecimal
.
ZERO
,
orderAccount
.
getDeductAmount
(),
orderAccount
.
getAccountAmount
(),
BigDecimal
.
ZERO
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
}
//发送用户取消消息
sms2AppUser
(
startCompanyDetail
,
endCompanyDetail
,
orvd
,
otd
,
omd
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
//发送用户退款消息
smsParams
.
clear
();
sms2RefundAppUser
(
BigDecimal
.
ZERO
,
orderAccount
.
getDeductAmount
(),
orderAccount
.
getAccountAmount
(),
BigDecimal
.
ZERO
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
//后台发送消息(出车人)
smsParams
.
clear
();
...
...
@@ -509,6 +510,13 @@ public class OrderMsgBiz {
smsParams
.
add
(
USER_N
+
appUserDTO
.
getRealname
());
}
break
;
case
SmsTemplateDTO
.
CANCEL_B
:
if
(
SYS_TRUE
.
equals
(
appUserDTO
.
getIsMember
())
&&
!
NONE
.
getCode
().
equals
(
appUserDTO
.
getMemberLevel
())
)
{
smsParams
.
add
(
USER_M
+
appUserDTO
.
getRealname
());
}
else
{
smsParams
.
add
(
USER_N
+
appUserDTO
.
getRealname
());
}
break
;
case
SmsTemplateDTO
.
PAY_I
:
if
(
SYS_TRUE
.
equals
(
appUserDTO
.
getIsMember
())
&&
!
NONE
.
getCode
().
equals
(
appUserDTO
.
getMemberLevel
())
)
{
smsParams
.
add
(
USER_M
+
appUserDTO
.
getRealname
());
...
...
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