|
|
@ -118,16 +118,8 @@ public class BsIntegralRebateServiceImpl implements BsIntegralRebateService { |
|
|
|
BigDecimal integralNumFirst = object.getBigDecimal("price").multiply(bsIntegralRebate.getFirstDistribution()).setScale( 0, BigDecimal.ROUND_HALF_UP ); |
|
|
|
BigDecimal integralNumFirst = object.getBigDecimal("price").multiply(bsIntegralRebate.getFirstDistribution()).setScale( 0, BigDecimal.ROUND_HALF_UP ); |
|
|
|
BigDecimal integralNumSecond = object.getBigDecimal("price").multiply(bsIntegralRebate.getSecondDistribution()).setScale( 0, BigDecimal.ROUND_HALF_UP ); |
|
|
|
BigDecimal integralNumSecond = object.getBigDecimal("price").multiply(bsIntegralRebate.getSecondDistribution()).setScale( 0, BigDecimal.ROUND_HALF_UP ); |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
HighOrder order = highOrderService.getOrderById(object.getLong("orderId")); |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
order.setWhetherRebate(true); |
|
|
|
order.setWhetherRebate(true); |
|
|
|
|
|
|
|
|
|
|
|
highOrderService.updateOrder(order); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
highUserService.goldHandle(object.getLong("userId"), integralNum.intValue(), 1, 4, object.getLong("orderId") , object.getString("remark") + integralNum); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
|
|
|
|
|
|
|
|
jsonObject.put("integralNumFirst" , integralNumFirst); |
|
|
|
jsonObject.put("integralNumFirst" , integralNumFirst); |
|
|
@ -138,6 +130,9 @@ public class BsIntegralRebateServiceImpl implements BsIntegralRebateService { |
|
|
|
jsonObject.put("logoImg" , object.getString("logoImg")); |
|
|
|
jsonObject.put("logoImg" , object.getString("logoImg")); |
|
|
|
|
|
|
|
|
|
|
|
bsDistributionUserRelService.distributionRebate(jsonObject); |
|
|
|
bsDistributionUserRelService.distributionRebate(jsonObject); |
|
|
|
|
|
|
|
highOrderService.updateOrder(order); |
|
|
|
|
|
|
|
highUserService.goldHandle(object.getLong("userId"), integralNum.intValue(), 1, 4, object.getLong("orderId") , object.getString("remark") + integralNum); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|