分销修改
This commit is contained in:
parent
0b6a54b914
commit
1faf6cccbb
|
|
@ -13,6 +13,7 @@ import com.czg.account.entity.UserInfo;
|
|||
import com.czg.account.service.UserInfoService;
|
||||
import com.czg.config.RedisCst;
|
||||
import com.czg.exception.ApiNotPrintException;
|
||||
import com.czg.exception.CzgException;
|
||||
import com.czg.service.RedisService;
|
||||
import com.czg.service.account.mapper.ShopUserMapper;
|
||||
import com.czg.service.account.mapper.UserInfoMapper;
|
||||
|
|
@ -98,4 +99,12 @@ public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> i
|
|||
}
|
||||
return b;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateDistributionAmount(long userId, BigDecimal amount) {
|
||||
boolean b = mapper.updateAmount(userId, amount);
|
||||
if (!b) {
|
||||
throw new CzgException("更新分销金额失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue