Commit b28c64af authored by Smile's avatar Smile Committed by wux

bug175:(生产)会员-积分记录订单v值积分规则设置的是收货人,发货人也产生了积分记录。

parent 22555bce
...@@ -231,6 +231,16 @@ public class OrderVStrategy extends AbstractScoreRuleStrategy { ...@@ -231,6 +231,16 @@ public class OrderVStrategy extends AbstractScoreRuleStrategy {
logNote.append("发货人绑定会员:").append(contactsDO.getUsername()).append(",会员ID:").append(userId).append(";"); logNote.append("发货人绑定会员:").append(contactsDO.getUsername()).append(",会员ID:").append(userId).append(";");
} }
} }
}else {
CustomerContactsDO contactsDO = getCustomerMemberId(consignorId);
if (!hasConsignor&&customerSideArray.length!=0){
logNote.append("发货人绑定会员:").append(contactsDO.getUsername()).append(",会员ID:").append(consignorId).append(";");
userId = 0L;
logNote.append("积分规则客户方不包含发货人");
}
if (hasConsignor||customerSideArray.length==0){
logNote.append("发货人绑定会员:").append(contactsDO.getUsername()).append(",会员ID:").append(consignorId).append(";");
}
} }
// 校验积分上限,添加加分用户列表 // 校验积分上限,添加加分用户列表
if (isBackendOrder && isUserScoreMaxed(userId, scoreRuleDO)) { if (isBackendOrder && isUserScoreMaxed(userId, scoreRuleDO)) {
......
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