This commit is contained in:
zengtao01
2024-07-22 11:41:18 +08:00
parent a5dc37dd67
commit 60ad369ce1
2 changed files with 1 additions and 21 deletions

View File

@ -252,5 +252,6 @@ public class CardServiceImpl implements CardService {
oldMoney = lastCardDO.getMoney();
}
cardDO.setMoney(oldMoney.add(money).setScale(2, BigDecimal.ROUND_HALF_UP));
cardMapper.insert(cardDO);
}
}