Commit e1ce6ae6 authored by 332784038@qq.com's avatar 332784038@qq.com

装柜短信通知时间参数以实际装柜时间为准

parent 82c50fbc
...@@ -1669,6 +1669,15 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements ...@@ -1669,6 +1669,15 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
templateParams.put("marks", marks); templateParams.put("marks", marks);
switch (smsSceneEnum) { switch (smsSceneEnum) {
case SHIPMENT_CABINET: case SHIPMENT_CABINET:
BoxCabinetDO boxCabinetDO = boxCabinetService.getByShipmentId(boxDO.getId());
if (Objects.nonNull(boxCabinetDO) && Objects.nonNull(boxCabinetDO.getLdBoxTime())) {
DateTime ldBoxTime = DateTime.of(boxCabinetDO.getLdBoxTime());
// 这里需要重置时间参数,这里的时间参数为填写的实际装柜时间
templateParams.put("date", DateUtils.formatDateTime(ldBoxTime));
templateParams.put("year", ldBoxTime.year());
templateParams.put("month", ldBoxTime.month() + 1);
templateParams.put("day", ldBoxTime.dayOfMonth());
}
// 装柜通知 // 装柜通知
if (orderNoList.size() > 1) { if (orderNoList.size() > 1) {
templateCode = SmsSceneEnum.SHIPMENT_CABINETS.getTemplateCode(); templateCode = SmsSceneEnum.SHIPMENT_CABINETS.getTemplateCode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment