mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-04 16:26:40 +00:00
fix: 代码生成数据表查询
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
package com.java2nb.novel.service;
|
||||
|
||||
import com.java2nb.novel.domain.BookCommentDO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 小说评论表
|
||||
*
|
||||
* @author xiongxy
|
||||
* @email 1179705413@qq.com
|
||||
* @date 2023-04-14 21:59:28
|
||||
*/
|
||||
public interface BookCommentService {
|
||||
|
||||
BookCommentDO get(Long id);
|
||||
|
||||
List<BookCommentDO> list(Map<String, Object> map);
|
||||
|
||||
int count(Map<String, Object> map);
|
||||
|
||||
int save(BookCommentDO bookComment);
|
||||
|
||||
int update(BookCommentDO bookComment);
|
||||
|
||||
int remove(Long id);
|
||||
|
||||
int batchRemove(Long[] ids);
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.java2nb.novel.service.impl;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.java2nb.novel.dao.BookCommentDao;
|
||||
import com.java2nb.novel.domain.BookCommentDO;
|
||||
import com.java2nb.novel.service.BookCommentService;
|
||||
|
||||
|
||||
|
||||
@Service
|
||||
public class BookCommentServiceImpl implements BookCommentService {
|
||||
@Autowired
|
||||
private BookCommentDao bookCommentDao;
|
||||
|
||||
@Override
|
||||
public BookCommentDO get(Long id){
|
||||
return bookCommentDao.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BookCommentDO> list(Map<String, Object> map){
|
||||
return bookCommentDao.list(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int count(Map<String, Object> map){
|
||||
return bookCommentDao.count(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int save(BookCommentDO bookComment){
|
||||
return bookCommentDao.save(bookComment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int update(BookCommentDO bookComment){
|
||||
return bookCommentDao.update(bookComment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int remove(Long id){
|
||||
return bookCommentDao.remove(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchRemove(Long[] ids){
|
||||
return bookCommentDao.batchRemove(ids);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user