FeedbackResponseDaoImpl.java
932 Bytes
package com.bjivt.dao.showtime.impl;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.bjivt.base.dao.impl.BaseDaoImpl;
import com.bjivt.dao.showtime.FeedbackResponsDao;
import com.bjivt.entity.showtime.FeedbackResponse;
import com.google.common.collect.Maps;
@Component
public class FeedbackResponseDaoImpl extends BaseDaoImpl<FeedbackResponse, Integer>implements FeedbackResponsDao {
@Autowired(required = true)
protected SqlSession sqlSessionTemplate;
@Override
public FeedbackResponse selectByFeedbackId(FeedbackResponse feedbackResponse) {
Map<String,Object> param = Maps.newHashMap();
param.put(FeedbackResponse.class.getSimpleName(),feedbackResponse);
return sqlSessionTemplate.selectOne("com.bjivt.entity.showtime.FeedbackResponse.selectByFeedbackId", param);
}
}