同步
This commit is contained in:
commit
e6d045c663
@ -59,7 +59,7 @@ public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent,
|
||||
//如果订单状态不为空
|
||||
if (orderDetailVO != null) {
|
||||
Map<String, String> params = new HashMap<>();
|
||||
switch (orderMessage.getNewStatus()){
|
||||
switch (orderMessage.getNewStatus()) {
|
||||
//如果订单新的状态为已取消 则发送取消订单站内信
|
||||
case CANCELLED:
|
||||
params.put(NoticeMessageParameterEnum.CANCEL_REASON.getType(), orderDetailVO.getOrder().getCancelReason());
|
||||
@ -82,7 +82,7 @@ public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent,
|
||||
break;
|
||||
//如果是拼团订单,发送拼团成功消息
|
||||
case UNDELIVERED:
|
||||
if(orderDetailVO.getOrder().getOrderPromotionType().equals(OrderPromotionTypeEnum.PINTUAN.name())){
|
||||
if (OrderPromotionTypeEnum.PINTUAN.name().equals(orderDetailVO.getOrder().getOrderPromotionType())) {
|
||||
//拼团成功消息
|
||||
noticeMessageDTO.setNoticeMessageNodeEnum(NoticeMessageNodeEnum.PINTUAN_SUCCESS);
|
||||
}
|
||||
@ -148,11 +148,14 @@ public class NoticeMessageExecute implements TradeEvent, OrderStatusChangeEvent,
|
||||
|
||||
@Override
|
||||
public void memberPointChange(MemberPointMessage memberPointMessage) {
|
||||
if (memberPointMessage == null) {
|
||||
return;
|
||||
}
|
||||
//组织站内信参数
|
||||
NoticeMessageDTO noticeMessageDTO = new NoticeMessageDTO();
|
||||
noticeMessageDTO.setMemberId(memberPointMessage.getMemberId());
|
||||
Map<String, String> params = new HashMap<>();
|
||||
if (memberPointMessage.getType().equals(1)) {
|
||||
if (memberPointMessage.getType()) {
|
||||
params.put("expenditure_points", "0");
|
||||
params.put("income_points", memberPointMessage.getPoint().toString());
|
||||
} else {
|
||||
|
@ -40,9 +40,9 @@ public class PointLogInterceptor {
|
||||
point = Long.valueOf(obj[0].toString());
|
||||
}
|
||||
//变动类型
|
||||
Integer type = 0;
|
||||
Boolean type = false;
|
||||
if (obj[1] != null) {
|
||||
type = Integer.valueOf(obj[1].toString());
|
||||
type = Boolean.valueOf(obj[1].toString());
|
||||
}
|
||||
//会员ID
|
||||
String memberId = "";
|
||||
@ -55,7 +55,7 @@ public class PointLogInterceptor {
|
||||
MemberPointsHistory memberPointsHistory = new MemberPointsHistory();
|
||||
memberPointsHistory.setMemberId(member.getId());
|
||||
memberPointsHistory.setMemberName(member.getUsername());
|
||||
memberPointsHistory.setPointType(type);
|
||||
memberPointsHistory.setPointType(type ? 1 : 0);
|
||||
memberPointsHistory.setVariablePoint(point);
|
||||
memberPointsHistory.setBeforePoint(new Double(CurrencyUtil.sub(member.getPoint(), point)).longValue());
|
||||
memberPointsHistory.setPoint(member.getPoint());
|
||||
@ -64,7 +64,7 @@ public class PointLogInterceptor {
|
||||
memberPointsHistoryService.save(memberPointsHistory);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("积分操作错误",e);
|
||||
log.error("积分操作错误", e);
|
||||
}
|
||||
|
||||
|
||||
|
@ -203,8 +203,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
||||
public Order cancel(String orderSn, String reason) {
|
||||
Order order = OperationalJudgment.judgment(this.getBySn(orderSn));
|
||||
//如果订单促销类型不为空&&订单是拼团订单,并且订单未成团,则抛出异常
|
||||
if (StringUtils.isNotEmpty(order.getOrderPromotionType())
|
||||
&& order.getOrderPromotionType().equals(OrderPromotionTypeEnum.PINTUAN.name())
|
||||
if (OrderPromotionTypeEnum.PINTUAN.name().equals(order.getOrderPromotionType())
|
||||
&& !order.getOrderStatus().equals(OrderStatusEnum.UNDELIVERED.name())) {
|
||||
throw new ServiceException(ResultCode.ORDER_CAN_NOT_CANCEL);
|
||||
}
|
||||
@ -286,7 +285,7 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
|
||||
Order order = this.getBySn(orderSn);
|
||||
//判断是否为拼团订单,进行特殊处理
|
||||
//判断订单类型进行不同的订单确认操作
|
||||
if (order.getOrderPromotionType() != null && order.getOrderPromotionType().equals(OrderPromotionTypeEnum.PINTUAN.name())) {
|
||||
if (OrderPromotionTypeEnum.PINTUAN.name().equals(order.getOrderPromotionType())) {
|
||||
this.checkPintuanOrder(order.getPromotionId(), order.getParentOrderSn());
|
||||
} else {
|
||||
//判断订单类型
|
||||
|
@ -47,7 +47,7 @@ public class MemberWithdrawApplyManagerController {
|
||||
@ApiOperation(value = "提现申请审核")
|
||||
@PostMapping
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "apply_id", value = "审核记录id", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "applyId", value = "审核记录id", required = true, paramType = "query"),
|
||||
@ApiImplicitParam(name = "result", value = "审核结果", required = true, paramType = "query", dataType = "boolean"),
|
||||
@ApiImplicitParam(name = "remark", value = "审核备注", paramType = "query")
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user