class SeatSettingServiceImpl extends ServiceImpl<SeatSettingMapper, SeatSetting> implements SeatSettingService {
    @Override
    public SeatSetting getSetting(String storeId) {
        LambdaQueryWrapper<SeatSetting> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SeatSetting::getTenantId, storeId);
        SeatSetting seatSetting = this.baseMapper.selectOne(queryWrapper);
        if (seatSetting == null) {
            seatSetting = new SeatSetting();
            seatSetting.setOutLineAutoReply("您好，我现在不在线，请您留下关键内容和联系方式，我看到后会立马回电。");
            seatSetting.setLongTermAutoReply("您好，我正在查阅相关资料，请您稍等。");
            seatSetting.setWelcome("您好，请问有什么可以帮您？");
            seatSetting.setTenantId(storeId);
            this.save(seatSetting);
        }
        return seatSetting;
    }

    @Override
    public SeatSetting updateByStore(SeatSetting seatSetting) {<FILL_FUNCTION_BODY>}
}

        SeatSetting oldSetting = this.baseMapper.selectById(seatSetting.getId());
        if (oldSetting.getTenantId().equals(seatSetting.getTenantId())) {
            this.updateById(seatSetting);
        } else {
            throw new ServiceException(ResultCode.ERROR);
        }
        return seatSetting;
    
<no_super_class>