Update PrepDao.java

pull/1/head
prwfxgajt 8 months ago
parent 9299bc812a
commit 8b8cb5df31

@ -1,61 +1,69 @@
package com.cn.dao; package com.cn.dao; // 定义接口所在的包名
import java.sql.SQLException; import java.sql.SQLException; // 导入SQLException类
import java.util.List; import java.util.List; // 导入List接口
import com.cn.domain.Prep; import com.cn.domain.Prep; // 导入Prep实体类
/** /**
* * PrepDao访DAO
* <p></p>
* @ClassName: PrepDao * @ClassName: PrepDao
* @Description: (prep) * @Description: (prep)
* @author: ljy * @author: ljy
* @date: 2019913 10:05:20 * @date: 2019913 10:05:20
*/ */
public interface PrepDao { public interface PrepDao {
/** /**
* *
* @return 1 * <p>Prep</p>
* @throws SQLException * @param prep
* @return 10
* @throws SQLException
*/ */
int add(Prep prep) throws SQLException; int add(Prep prep) throws SQLException;
/** /**
* * ID
* @return 1 * <p>IDID</p>
* @throws SQLException * @param prepId ID
* @return 10
* @throws SQLException
*/ */
int delete(Integer prepId) throws SQLException; int delete(Integer prepId) throws SQLException;
/** /**
* *
* @return 1 * <p>PrepID</p>
* @throws SQLException * @param prep
* @return 10
* @throws SQLException
*/ */
int update(Prep prep) throws SQLException; int update(Prep prep) throws SQLException;
/** /**
* *
* @return Preplist * <p></p>
* @throws SQLException * @return
* @throws SQLException
*/ */
List<Prep> getAll() throws SQLException; List<Prep> getAll() throws SQLException;
/** /**
* ID * ID
* <p>ID</p>
* @param pmemberId ID * @param pmemberId ID
* @return * @return ID
* @throws SQLException * @throws SQLException
*/ */
List<Prep> getPrepByPmemberId(Integer pmemberId) throws SQLException; List<Prep> getPrepByPmemberId(Integer pmemberId) throws SQLException;
/** /**
* id * ID
* @return Prep * <p>IDID</p>
* @throws SQLException * @param prepId ID
* @return ID
* @throws SQLException
*/ */
Prep getById(Integer prepId) throws SQLException; Prep getById(Integer prepId) throws SQLException;
} }

Loading…
Cancel
Save