余额问题 2
This commit is contained in:
parent
e96b01c57f
commit
95982b58f8
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue