|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.hai.service.impl; |
|
|
|
package com.hai.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
import com.hai.dao.BsIntegralRebateMapper; |
|
|
|
import com.hai.dao.BsIntegralRebateMapper; |
|
|
|
import com.hai.entity.BsIntegralRebate; |
|
|
|
import com.hai.entity.BsIntegralRebate; |
|
|
|
import com.hai.entity.BsIntegralRebateExample; |
|
|
|
import com.hai.entity.BsIntegralRebateExample; |
|
|
@ -98,13 +99,13 @@ public class BsIntegralRebateServiceImpl implements BsIntegralRebateService { |
|
|
|
|
|
|
|
|
|
|
|
BsIntegralRebate bsIntegralRebate = findIntegralRebateByMap(map); |
|
|
|
BsIntegralRebate bsIntegralRebate = findIntegralRebateByMap(map); |
|
|
|
|
|
|
|
|
|
|
|
if (bsIntegralRebate != null) { |
|
|
|
if (DateUtil.isEffectiveDate(object.getDate("createTime"), bsIntegralRebate.getStartTime() , bsIntegralRebate.getEndTime())) { |
|
|
|
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 ); |
|
|
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|