package com.fjs.scenic.service.scenic.impl;

import com.fjs.scenic.entity.scenic.Pics;
import com.fjs.scenic.entity.scenic.ScenicDescription;
import com.fjs.scenic.mapper.scenic.ScenicDescriptionMapper;
import com.fjs.scenic.service.common.impl.BaseServiceImpl;
import com.fjs.scenic.service.scenic.PicsService;
import com.fjs.scenic.service.scenic.ScenicDescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * This class is used for ...
 *
 * @author lfj
 * @version 1.0
 * @CreateDate ${date} ${time}
 */
@Service
public class ScenicDescriptionServiceImpl extends BaseServiceImpl<ScenicDescription> implements ScenicDescriptionService {
    @Autowired
    private ScenicDescriptionMapper scenicDescriptionMapper;

    @Override
    public int update(ScenicDescription record) {
        return scenicDescriptionMapper.updateByFid(record);
    }

    @Override
    public ScenicDescription selectByScenicId(Integer id) {
        return scenicDescriptionMapper.selectByScenicId(id);
    }
}
