Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
e08680a1
Commit
e08680a1
authored
Dec 19, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控货订单有收货人时也发送短信
parent
9f4160b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
8 deletions
+36
-8
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+36
-8
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
e08680a1
...
...
@@ -2382,21 +2382,49 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
cargoControlParamMap
.
put
(
"marks"
,
marks
);
cargoControlParamMap
.
put
(
"cmb"
,
chargeVolume
);
cargoControlParamMap
.
put
(
"kg"
,
chargeWeight
);
// if (orderDO.getIsCollection()) {
// Map<Integer, CurrencyRespDTO> currencyRespDTOMap = currencyApi.getAllCurrency();
// CurrencyRespDTO respDTO = currencyRespDTOMap.get(orderDO.getCollectionProxyCurrency());
// String currencyName = Objects.isNull(respDTO) ? "RMB" : respDTO.getTitleEn();
// cargoControlParamMap.put("collectofgoods", orderDO.getCollectionProxy() + currencyName);
// templateCode = SmsSceneEnum.WAREHOUSE_IN_CONTROL_COLLECT_OF_GOODS.getTemplateCode();
// } else {
if
(
orderDO
.
getTransportId
()
==
3
)
{
templateCode
=
SmsSceneEnum
.
AIR_WAREHOUSE_IN_CONTROL
.
getTemplateCode
();
}
else
{
templateCode
=
SmsSceneEnum
.
WAREHOUSE_IN_CONTROL
.
getTemplateCode
();
}
// }
// 给控货人发送入仓控货成功短信
this
.
smsSendNotice
(
cargoControlCode
,
cargoControlPhone
,
cargoControlCustomerId
,
templateCode
,
cargoControlParamMap
);
// 收货人 短信发送信息
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
())
.
orderByDesc
(
OrderConsigneeDO:
:
getId
)
.
last
(
"limit 1"
));
if
(
orderConsigneeDO
!=
null
)
{
Map
<
String
,
Object
>
consigneeParamMap
=
new
HashMap
<>();
String
consigneeCountryCode
=
orderConsigneeDO
.
getCountryCode
();
String
consigneePhone
=
orderConsigneeDO
.
getPhone
();
Long
consigneeCustomerId
=
orderConsigneeDO
.
getCustomerId
();
String
consigneeStartWarehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getStartTitleZh
()
:
logisticsInfoDto
.
getStartTitleEn
();
String
consigneeDestWearehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getDestTitleZh
()
:
logisticsInfoDto
.
getDestTitleEn
();
if
(!
StringUtils
.
equals
(
consignorCountryCode
.
concat
(
consignorPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
consigneeParamMap
.
put
(
"date"
,
DateUtils
.
formatDateTime
(
orderDO
.
getRucangTime
()));
consigneeParamMap
.
put
(
"cnts"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"warehouse"
,
consigneeStartWarehouseName
);
// 入仓名
consigneeParamMap
.
put
(
"year"
,
ruchang
.
year
());
consigneeParamMap
.
put
(
"month"
,
ruchang
.
month
()
+
1
);
consigneeParamMap
.
put
(
"day"
,
ruchang
.
dayOfMonth
());
consigneeParamMap
.
put
(
"order"
,
orderDO
.
getOrderNo
());
// orderNo
consigneeParamMap
.
put
(
"branch"
,
consigneeDestWearehouseName
);
// 提货点
consigneeParamMap
.
put
(
"box"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"marks"
,
marks
);
consigneeParamMap
.
put
(
"cmb"
,
chargeVolume
);
consigneeParamMap
.
put
(
"kg"
,
chargeWeight
);
}
if
(!
StringUtils
.
equals
(
cargoControlCode
.
concat
(
cargoControlPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
// 给收货人发送短信
this
.
smsSendNotice
(
consigneeCountryCode
,
consigneePhone
,
consigneeCustomerId
,
templateCode
,
consigneeParamMap
);
}
}
}
}
else
{
Map
<
String
,
Object
>
consignorParamMap
=
new
HashMap
<>();
...
...
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