有新订单的时候,不给商家发短信了,避免打扰商家
This commit is contained in:
parent
9f62bf8ddd
commit
f16efdd8b9
@ -2824,10 +2824,12 @@ public class LakalaApiServiceImpl implements LakalaApiService {
|
||||
// RMK 本次分账成功后,给商户和接收方 D1提现到银行卡
|
||||
if (CollUtil.isNotEmpty(detailDatas)) {
|
||||
for (JSONObject detailData : detailDatas.jsonIter()) {
|
||||
String recvNo = detailData.getStr("recv_no"); // 822商户号或接收方号
|
||||
String amt = detailData.getStr("amt"); // 单位(分)
|
||||
String recvNo = detailData.getStr("recv_no");
|
||||
String amt = detailData.getStr("amt");
|
||||
if (StrUtil.isNotBlank(recvNo) && StrUtil.isNotBlank(amt)) {
|
||||
ewalletWithDrawD1(recvNo, outSeparateNo, amt, JSONUtil.toJsonStr(detailDatas));
|
||||
Boolean drawSuccess = ewalletWithDrawD1(recvNo, outSeparateNo, amt, JSONUtil.toJsonStr(detailDatas));
|
||||
log.info("[拉卡拉分账通知] 账户D1提现{},商户号={},分账单号={},金额={}分",
|
||||
Boolean.TRUE.equals(drawSuccess) ? "成功" : "失败", recvNo, outSeparateNo, amt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3236,11 +3236,11 @@ public class ShopOrderBaseServiceImpl extends BaseServiceImpl<ShopOrderBaseMappe
|
||||
}
|
||||
|
||||
// 2024-12-10 add
|
||||
Map<String, Object> tmplArgs = new HashMap<>(2);
|
||||
tmplArgs.put("order_id", order_id);
|
||||
tmplArgs.put("order_payment_amount", order_payment_amount);
|
||||
// Map<String, Object> tmplArgs = new HashMap<>(2);
|
||||
// tmplArgs.put("order_id", order_id);
|
||||
// tmplArgs.put("order_payment_amount", order_payment_amount);
|
||||
// 所有店铺管理员的发送邮件, 提醒商家:您有一笔新的订单 ${order_id},请及时处理。
|
||||
shopMessageTemplateService.aliyunSmsSend(shopKeeperMobiles, "SMS_476810378", tmplArgs);//SMS_475836097
|
||||
// shopMessageTemplateService.aliyunSmsSend(shopKeeperMobiles, "SMS_476810378", tmplArgs);
|
||||
}
|
||||
|
||||
// 付款成功,对通知推广员进行提醒
|
||||
@ -4220,7 +4220,7 @@ public class ShopOrderBaseServiceImpl extends BaseServiceImpl<ShopOrderBaseMappe
|
||||
if (!shopProductItemService.edit(shopProductItem)) {
|
||||
throw new ApiException(String.format(I18nUtil._("释放: %s 冻结库存失败!"), order_item_row.getItem_id()));
|
||||
}
|
||||
log.debug("释放库存Item_src_id:{},数量:{}",shopProductItem.getItem_src_id(),order_item_quantity);
|
||||
log.debug("释放库存Item_src_id:{},数量:{}", shopProductItem.getItem_src_id(), order_item_quantity);
|
||||
// RMK 第三方数据同步相关:redis 给这个商品加上对应的库存
|
||||
Map<String, Integer> stockDeltaMap = new HashMap<>();
|
||||
stockDeltaMap.put(Convert.toStr(shopProductItem.getItem_src_id()), order_item_quantity);
|
||||
@ -7234,7 +7234,7 @@ public class ShopOrderBaseServiceImpl extends BaseServiceImpl<ShopOrderBaseMappe
|
||||
}
|
||||
|
||||
// RMK 第三方数据同步相关:redis 给这个商品减去上对应的库存
|
||||
log.debug("减库存Item_src_id:{},数量:{}",item_src_id,cart_quantity);
|
||||
log.debug("减库存Item_src_id:{},数量:{}", item_src_id, cart_quantity);
|
||||
Map<String, Integer> stockDeltaMap = new HashMap<>();
|
||||
stockDeltaMap.put(Convert.toStr(item_src_id), -cart_quantity);
|
||||
syncThirdDataService.incrProductStockToRedis(stockDeltaMap);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user