余额问题 2
This commit is contained in:
parent
e96b01c57f
commit
95982b58f8
|
|
@ -28,10 +28,10 @@ public class SmsShopMoneyServiceImpl extends ServiceImpl<SmsShopMoneyMapper, Sms
|
||||||
@Override
|
@Override
|
||||||
public SmsShopMoney getShopMoney(Long shopId) {
|
public SmsShopMoney getShopMoney(Long shopId) {
|
||||||
SmsShopMoney shopMoney = getOne((
|
SmsShopMoney shopMoney = getOne((
|
||||||
new QueryWrapper().eq(SmsShopMoney::getShopId, StpKit.USER.getShopId())));
|
new QueryWrapper().eq(SmsShopMoney::getShopId,shopId)));
|
||||||
if (shopMoney == null) {
|
if (shopMoney == null) {
|
||||||
shopMoney = new SmsShopMoney();
|
shopMoney = new SmsShopMoney();
|
||||||
shopMoney.setShopId(StpKit.USER.getShopId());
|
shopMoney.setShopId(shopId);
|
||||||
shopMoney.setMoney(BigDecimal.ZERO);
|
shopMoney.setMoney(BigDecimal.ZERO);
|
||||||
save(shopMoney);
|
save(shopMoney);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue