更改了代码的结构
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,12 +1,106 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: ActivityDAO
|
||||
* @Description: 活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然,栾益铭
|
||||
* @date: 26.3.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.10 刘浩然 v1.0.0 新建
|
||||
* 26.3.10 栾益铭 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.Activity;
|
||||
import java.util.List;
|
||||
|
||||
public interface ActivityDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectAll
|
||||
* @Description: 查询所有活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<Activity> selectAll();
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectById
|
||||
* @Description: 根据ID查询活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Activity selectById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(Activity activity);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: update
|
||||
* @Description: 更新活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int update(Activity activity);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: deleteById
|
||||
* @Description: 根据ID删除活动
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int deleteById(Long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: ActivityRegistrationDAO
|
||||
* @Description: 活动登记
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然,李建业
|
||||
* @date: 26.3.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.13 刘浩然 v1.0.0 新建
|
||||
* 26.3.13 李建业 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.Activity;
|
||||
import com.chinasofti.model.ActivityRegistration;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: AssistanceLogDAO
|
||||
* @Description: 协助
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然,任盅爵
|
||||
* @date: 26.3.14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.14 刘浩然 v1.0.0 新建
|
||||
* 26.3.14 任盅爵 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.AssistanceLog;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -1,12 +1,106 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: BookCopyDAO
|
||||
* @Description: 副本
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 任盅爵,刘浩然
|
||||
* @date: 26.3.17
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.17 任盅爵 v1.0.0 新建
|
||||
* 26.3.17 刘浩然 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.BookCopy;
|
||||
import java.util.List;
|
||||
|
||||
public interface BookCopyDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByBookId
|
||||
* @Description: 根据图书ID查询副本列表
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<BookCopy> selectByBookId(Long bookId);
|
||||
BookCopy selectAvailableByBookId(Long bookId); // 获取一个可借副本
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectAvailableByBookId
|
||||
* @Description: 获取一个可借副本
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
BookCopy selectAvailableByBookId(Long bookId);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: updateStatus
|
||||
* @Description: 更新副本状态
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int updateStatus(Long copyId, String status);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入副本
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(BookCopy copy);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: countAvailableByBookId
|
||||
* @Description: 统计可借副本数量
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int countAvailableByBookId(Long bookId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,123 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: BookDAO
|
||||
* @Description: 书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 任盅爵,刘浩然
|
||||
* @date: 26.3.16
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.16 刘浩然 v1.0.0 新建
|
||||
* 26.3.16 任盅爵 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.Book;
|
||||
import java.util.List;
|
||||
|
||||
public interface BookDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectById
|
||||
* @Description: 根据ID查询图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Book selectById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: search
|
||||
* @Description: 搜索图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<Book> search(String isbn, String title, String author, String targetAudience);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectAll
|
||||
* @Description: 查询所有图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<Book> selectAll();
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(Book book);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: update
|
||||
* @Description: 更新图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int update(Book book);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: deleteById
|
||||
* @Description: 根据ID删除图书
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.14 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int deleteById(Long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
package com.chinasofti.dao;
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: BorrowRecordDAO
|
||||
* @Description: 借阅记录
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 任盅爵,刘浩然
|
||||
* @date: 26.3.18
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.18 任盅爵 v1.0.0 新建
|
||||
* 26.3.18 刘浩然 v1.0.0 修改
|
||||
*/
|
||||
|
||||
import com.chinasofti.model.BorrowRecord;
|
||||
import com.chinasofti.model.view.BorrowRecordVO;
|
||||
@@ -6,9 +22,88 @@ import java.sql.Date;
|
||||
import java.util.List;
|
||||
|
||||
public interface BorrowRecordDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByReaderId
|
||||
* @Description: 根据读者ID查询借阅记录
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<BorrowRecordVO> selectByReaderId(Long readerId);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectById
|
||||
* @Description: 根据ID查询借阅记录
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
BorrowRecord selectById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入借阅记录
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(BorrowRecord record);
|
||||
int updateReturnDate(Long id, Date returnDate); // 改为 java.sql.Date
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: updateReturnDate
|
||||
* @Description: 更新归还日期
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int updateReturnDate(Long id, Date returnDate);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByCopyIdAndNotReturned
|
||||
* @Description: 根据副本ID查询未归还的借阅记录
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
BorrowRecord selectByCopyIdAndNotReturned(Long copyId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,140 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: Employee
|
||||
* @Description: 员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然,栾益铭
|
||||
* @date: 26.3.19
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.19 刘浩然 v1.0.0 新建
|
||||
* 26.3.19 栾益铭 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.Employee;
|
||||
import java.util.List;
|
||||
|
||||
public interface EmployeeDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectById
|
||||
* @Description: 根据ID查询员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Employee selectById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByCode
|
||||
* @Description: 根据工号查询员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Employee selectByCode(String employeeCode);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByCodeAndName
|
||||
* @Description: 根据工号和姓名查询员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Employee selectByCodeAndName(String code, String name);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectAll
|
||||
* @Description: 查询所有员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<Employee> selectAll();
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(Employee employee);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: update
|
||||
* @Description: 更新员工信息
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.14 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int update(Employee employee);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: deleteById
|
||||
* @Description: 根据ID删除员工
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.15
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.15 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int deleteById(Long id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,140 @@
|
||||
package com.chinasofti.dao;
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @ClassName: Reader
|
||||
* @Description: 读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然,
|
||||
* @date: 26.3.20
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.3.20 刘浩然 v1.0.0 新建
|
||||
* 26.3.20 李建业 v1.0.0 修改
|
||||
*/
|
||||
import com.chinasofti.model.Reader;
|
||||
import java.util.List;
|
||||
|
||||
public interface ReaderDAO {
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectById
|
||||
* @Description: 根据ID查询读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.9
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.9 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Reader selectById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByCardNumber
|
||||
* @Description: 根据卡号查询读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.10
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.10 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Reader selectByCardNumber(String cardNumber);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectAll
|
||||
* @Description: 查询所有读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.11
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.11 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
List<Reader> selectAll();
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: insert
|
||||
* @Description: 插入读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.12
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.12 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int insert(Reader reader);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: update
|
||||
* @Description: 更新读者信息
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.13
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.13 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int update(Reader reader);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: deleteById
|
||||
* @Description: 根据ID删除读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.14
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.14 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
int deleteById(Long id);
|
||||
|
||||
/**
|
||||
* Copyright: Copyright (c) 2026
|
||||
*
|
||||
* @MethodName: selectByCardNumberAndName
|
||||
* @Description: 根据卡号和姓名查询读者
|
||||
*
|
||||
* @version: v1.0.0
|
||||
* @author: 刘浩然
|
||||
* @date: 26.4.15
|
||||
*
|
||||
* Modification History:
|
||||
* Date Author Version Description
|
||||
*---------------------------------------------------------*
|
||||
* 26.4.15 刘浩然 v1.0.0 新建方法
|
||||
*/
|
||||
Reader selectByCardNumberAndName(String cardNumber, String name);
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user