package com.ssj.service.sys.feedback.service.impl;

import com.ssj.bean.sys.feedback.domain.SconPhotoFeedbackDetail;
import com.ssj.dao.sys.feedback.dao.SconPhotoFeedbackDetailDao;
import com.ssj.framework.core.common.service.BaseServiceImpl;
import com.ssj.service.sys.feedback.service.SconPhotoFeedbackDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/** 
 * @author  ZhangCaibao 
 * @version 2018年5月11日 下午3:48:40 
 * 类说明 
 */
@Service
@Transactional
public class SconPhotoFeedbackDetailServiceImpl extends BaseServiceImpl<SconPhotoFeedbackDetail, String> implements SconPhotoFeedbackDetailService {

	@Autowired
	private SconPhotoFeedbackDetailDao  dao;
	@Override
	public PagingAndSortingRepository<SconPhotoFeedbackDetail, String> getDao() {
		return dao;
	}
	@Override
	public List<SconPhotoFeedbackDetail> findByFeedbackIdOrderByNumAsc(
			String feedbackId) {
		return dao.findByFeedbackIdOrderByNumAsc(feedbackId);
	}

	public List<SconPhotoFeedbackDetail> findPhotoByPid (String bizId){
		return dao.findPhotoByPid(bizId);
	}
}
