余额问题 2

This commit is contained in:
wangw 2025-10-17 10:08:20 +08:00
parent e96b01c57f
commit 95982b58f8
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ public class SmsShopMoneyServiceImpl extends ServiceImpl<SmsShopMoneyMapper, Sms
@Override
public SmsShopMoney getShopMoney(Long shopId) {
SmsShopMoney shopMoney = getOne((
new QueryWrapper().eq(SmsShopMoney::getShopId, StpKit.USER.getShopId())));
new QueryWrapper().eq(SmsShopMoney::getShopId,shopId)));
if (shopMoney == null) {
shopMoney = new SmsShopMoney();
shopMoney.setShopId(StpKit.USER.getShopId());
shopMoney.setShopId(shopId);
shopMoney.setMoney(BigDecimal.ZERO);
save(shopMoney);
}