ReplyServiceImpl.java
페이지 정보
본문
package com.pkt.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.pkt.mapper.ReplyMapper;
import com.pkt.model.Criteria;
import com.pkt.model.ReplyVO;
import lombok.AllArgsConstructor;
import lombok.extern.log4j.Log4j;
@Log4j
@Service //스프링 빈으로 인식되기 위해 선언
@AllArgsConstructor
public class ReplyServiceImpl implements ReplyService {
private ReplyMapper mapper;
@Override
public List<ReplyVO> listReply(Integer bno) {
return mapper.list(bno);
}
@Override
public void addReply(ReplyVO vo) {
mapper.create(vo);
}
@Override
public void modifyReply(ReplyVO vo) {
mapper.update(vo);
}
@Override
public void removeReply(Integer rno) {
mapper.delete(rno);
}
@Override
public List<ReplyVO> listReplyPage(Integer bno, Criteria cri) {
Map<String, Object> m = new HashMap<>();
m.put("bno", bno);
m.put("cri", cri);
return mapper.listPage(m);
}
@Override
public int count(Integer bno) {
return mapper.count(bno);
}
}
- 이전글ReplyService.java 24.07.31
- 다음글ReplyController.java 24.07.31
댓글목록
등록된 댓글이 없습니다.