You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

package com.ischoolbar.programmer.service.common.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ischoolbar.programmer.dao.common.CommentDao;
import com.ischoolbar.programmer.entity.common.Comment;
import com.ischoolbar.programmer.service.common.CommentService;
@Service
public class CommentServiceImpl implements CommentService {
@Autowired
private CommentDao commentDao;
@Override
public int add(Comment comment) {
// TODO Auto-generated method stub
return commentDao.add(comment);
}
@Override
public int edit(Comment comment) {
// TODO Auto-generated method stub
return commentDao.edit(comment);
}
@Override
public int delete(Long id) {
// TODO Auto-generated method stub
return commentDao.delete(id);
}
@Override
public List<Comment> findList(Map<String, Object> queMap) {
// TODO Auto-generated method stub
return commentDao.findList(queMap);
}
@Override
public Integer getTotal(Map<String, Object> queryMap) {
// TODO Auto-generated method stub
return commentDao.getTotal(queryMap);
}
@Override
public Comment findById(Long id) {
// TODO Auto-generated method stub
return commentDao.findById(id);
}
}