Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
292d35eed0
@ -361,7 +361,7 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
|
|||||||
|
|
||||||
// 3. 记录订单日志
|
// 3. 记录订单日志
|
||||||
TradeOrderLogUtils.setOrderInfo(order.getId(), order.getStatus(), TradeOrderStatusEnum.DELIVERED.getStatus(),
|
TradeOrderLogUtils.setOrderInfo(order.getId(), order.getStatus(), TradeOrderStatusEnum.DELIVERED.getStatus(),
|
||||||
MapUtil.<String, Object>builder().put("expressName", express != null ? express.getName() : "")
|
MapUtil.<String, Object>builder().put("deliveryName", express != null ? express.getName() : "")
|
||||||
.put("logisticsNo", express != null ? deliveryReqVO.getLogisticsNo() : "").build());
|
.put("logisticsNo", express != null ? deliveryReqVO.getLogisticsNo() : "").build());
|
||||||
|
|
||||||
// 4. 发送站内信
|
// 4. 发送站内信
|
||||||
|
@ -27,6 +27,7 @@ import java.util.Collection;
|
|||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
import static cn.iocoder.yudao.module.member.enums.ErrorCodeConstants.*;
|
import static cn.iocoder.yudao.module.member.enums.ErrorCodeConstants.*;
|
||||||
@ -259,7 +260,7 @@ public class MemberLevelServiceImpl implements MemberLevelService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 3. 更新会员表上的等级编号、经验值
|
// 3. 更新会员表上的等级编号、经验值
|
||||||
memberUserService.updateUserLevel(user.getId(), levelRecord.getLevelId(), userExperience);
|
memberUserService.updateUserLevel(user.getId(), Optional.ofNullable(levelRecord.getLevelId()).orElse(user.getLevelId()), userExperience);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user