package com.fdkanfang.service.backend.impl;

import com.fdkanfang.dao.backend.IBaseMapper;
import com.fdkanfang.dao.backend.ISceneProEditMapper;
import com.fdkanfang.domain.backend.SceneProEditEntity;
import com.fdkanfang.service.BaseMapperServiceImpl;
import com.fdkanfang.service.backend.ISceneProEditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Created by Hb_zzZ on 2019/7/23.
 */
@Service
public class SceneProEditServiceImpl extends BaseMapperServiceImpl<SceneProEditEntity, Long> implements ISceneProEditService {

    @Autowired
    private ISceneProEditMapper mapper;

    @Override
    public IBaseMapper<SceneProEditEntity, Long> getBaseMapper() {
        return mapper;
    }

//    @Override
//    public List<ResponseScene> convert(List<SceneProEditEntity> list) throws Exception {
//        List<ResponseScene> responseScenes = new ArrayList<>();
//        for (SceneProEditEntity sceneProEditEntity : list){
//            ResponseScene responseScene = new ResponseScene();
//            BeanUtils.copyProperties(sceneProEditEntity, responseScene);
//            responseScenes.add(responseScene);
//        }
//        return responseScenes;
//    }

    @Override
    public SceneProEditEntity findByProId(Long proId) {
        return mapper.findByProId(proId);
    }
}
