Commit b19d216b authored by shiyu's avatar shiyu

估价发送短信2

parent 79a72e9f
......@@ -484,8 +484,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
SupplierItem item = supplierItemDao.findById(dto.getId());
if (CommConsts.SYSTEM_ACCOUNT.longValue() != item.getCreatorId() && CommConsts.SELF_SUPPORT_ACCOUNT.longValue() != item.getCreatorId()) {
String buyerOpenId = sendMsgService.getOpenIdByUserId(item.getCreatorId());
String officialEstimatedPrice = PriceUtil.convertPriceFenToYuan(item.getOfficialEstimatedPrice());
if (com.xxdxxs.utils.StringUtils.hasLength(buyerOpenId)) {
String officialEstimatedPrice = PriceUtil.convertPriceFenToYuan(item.getOfficialEstimatedPrice());
ExchangeNoticeMsg exchangeNoticeMsg = new ExchangeNoticeMsg();
exchangeNoticeMsg.setItemId(item.getId());
exchangeNoticeMsg.setItemName(item.getName());
......@@ -499,7 +499,10 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
aliSmsSender.sendSms(item.getCreatorId(), msg);
}
} else {
logger.info(">>>>> 买家openid为空, 发送消息失败 <<<<<");
logger.info(">>>>> 买家openid为空, 改为发送短信 <<<<<");
String url = wxAppletApi.getUrlLink("/pages/detail/index","itemId=" + dto.getId());
String msg = "您上传的商品" + item.getName() + "已完成估价,估价金额为" + officialEstimatedPrice + "元, 请前往"+ url + "查看";
aliSmsSender.sendSms(item.getCreatorId(), msg);
}
}
return Result.success();
......
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