checklist.md 1.1 KB

Checklist

  • 积分发放使用 RoundingMode.HALF_UP(四舍五入),不再使用 ROUND_CEILING
  • FsStoreOrderComputedParam.preAllocatedIntegral 类型为 Integer
  • computedOrderspreAllocatedIntegrals 数组类型为 Integer[]
  • totalIntegral 使用 long 类型,user.getIntegral() 使用 longValue() 取值
  • totalDeduction 使用 BigDecimal.divide 计算,保留 2 位小数
  • 子订单积分分配使用 BigDecimal 算术,不出现 double 中间运算
  • cap 超限后 allocatedDeductionSumallocatedIntegralSum 使用 cap 后的值累加
  • 最后一个店铺积分 = totalIntegral - allocatedIntegralSum(减法兜底)
  • 最后一个店铺抵扣金额 = totalDeduction - allocatedDeductionSum(减法兜底)
  • 所有积分值均为整数,不出现小数点
  • computedOrderMultiStorepreAllocatedIntegral 的 Integer → double 转换正确
  • 旧的单店铺积分逻辑(computedOrder / store.integral)不受影响
  • 退款积分逻辑(refundIntegral)不受影响