提交代码

dev-discount
胡锐 2 years ago
parent c79c509146
commit 2784b736e1
  1. 6
      hai-service/src/main/java/com/hai/entity/HighUser.java
  2. 2
      hai-service/src/main/java/com/hai/service/impl/BsIntegralRebateServiceImpl.java

@ -1,5 +1,7 @@
package com.hai.entity; package com.hai.entity;
import com.hai.model.UserModel;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
@ -12,7 +14,7 @@ import java.util.Date;
* 代码由工具生成 * 代码由工具生成
* *
**/ **/
public class HighUser implements Serializable { public class HighUser extends UserModel implements Serializable {
/** /**
* 用户编号 * 用户编号
*/ */
@ -367,4 +369,4 @@ public class HighUser implements Serializable {
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
} }

@ -112,7 +112,9 @@ public class BsIntegralRebateServiceImpl implements BsIntegralRebateService {
BigDecimal integralNum = object.getBigDecimal("price").multiply(bsIntegralRebate.getPercentage()).setScale( 0, BigDecimal.ROUND_HALF_UP ); BigDecimal integralNum = object.getBigDecimal("price").multiply(bsIntegralRebate.getPercentage()).setScale( 0, BigDecimal.ROUND_HALF_UP );
/*
HighOrder order = highOrderService.getOrderById(object.getLong("orderId")); HighOrder order = highOrderService.getOrderById(object.getLong("orderId"));
*/
highUserService.goldHandle(object.getLong("userId"), integralNum.intValue(), 1, 4, object.getLong("orderId") , object.getString("remark") + integralNum); highUserService.goldHandle(object.getLong("userId"), integralNum.intValue(), 1, 4, object.getLong("orderId") , object.getString("remark") + integralNum);

Loading…
Cancel
Save