|
|
|
@@ -290,7 +290,7 @@ public class WxCreditHistoryServiceImpl implements WxCreditHistoryService { |
|
|
|
// if (total > Integer.MAX_VALUE) { |
|
|
|
// throw new MallinkException(ErrorCode.OUT_OF_CREDIT); |
|
|
|
// } |
|
|
|
if (total < 0 && !Objects.equals(record.getCreditType(),EnumScoreType.REFUND_CONSUMPTION.getCode())) { |
|
|
|
if (total < 0 && creditChangeNum < 0 && !Objects.equals(record.getCreditType(),EnumScoreType.REFUND_CONSUMPTION.getCode())) { |
|
|
|
throw new MallinkException(ErrorCode.CREDIT_NOT_ENOUGH); |
|
|
|
} |
|
|
|
//如果为导入的会员 则直接覆盖总积分和操作积分明细 |
|
|
|
|