83 lines
2.1 KiB
Plaintext
83 lines
2.1 KiB
Plaintext
|
package ${basePackage}.dao.${lowerTableName};
|
||
|
|
||
|
import com.cm.common.exception.RemoveException;
|
||
|
import com.cm.common.exception.SaveException;
|
||
|
import com.cm.common.exception.SearchException;
|
||
|
import com.cm.common.exception.UpdateException;
|
||
|
import com.cm.common.result.SuccessResultList;
|
||
|
import ${basePackage}.pojo.dtos.${lowerTableName}.${firstUpperTableName}DTO;
|
||
|
import org.springframework.stereotype.Repository;
|
||
|
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
|
||
|
/**
|
||
|
* @ClassName: I${firstUpperTableName}Dao
|
||
|
* @Description: ${tableExplain}
|
||
|
* @Author: ${author}
|
||
|
* @Date: ${date}
|
||
|
* @Version: ${version}
|
||
|
**/
|
||
|
@Repository
|
||
|
public interface I${firstUpperTableName}Dao {
|
||
|
|
||
|
/**
|
||
|
* 新增${tableExplain}
|
||
|
*
|
||
|
* @param params
|
||
|
* @throws SaveException
|
||
|
*/
|
||
|
void save${firstUpperTableName}(Map<String, Object> params) throws SaveException;
|
||
|
|
||
|
/**
|
||
|
* 删除${tableExplain}
|
||
|
*
|
||
|
* @param params
|
||
|
* @throws RemoveException
|
||
|
*/
|
||
|
void remove${firstUpperTableName}(Map<String, Object> params) throws RemoveException;
|
||
|
|
||
|
/**
|
||
|
* 删除${tableExplain}(物理)
|
||
|
*
|
||
|
* @param params
|
||
|
* @throws RemoveException
|
||
|
*/
|
||
|
void delete${firstUpperTableName}(Map<String, Object> params) throws RemoveException;
|
||
|
|
||
|
/**
|
||
|
* 修改${tableExplain}
|
||
|
*
|
||
|
* @param params
|
||
|
* @throws UpdateException
|
||
|
*/
|
||
|
void update${firstUpperTableName}(Map<String, Object> params) throws UpdateException;
|
||
|
|
||
|
/**
|
||
|
* ${tableExplain}详情
|
||
|
*
|
||
|
* @param params
|
||
|
* @return
|
||
|
* @throws SearchException
|
||
|
*/
|
||
|
${firstUpperTableName}DTO get${firstUpperTableName}(Map<String, Object> params) throws SearchException;
|
||
|
|
||
|
/**
|
||
|
* ${tableExplain}列表
|
||
|
*
|
||
|
* @param params
|
||
|
* @return
|
||
|
* @throws SearchException
|
||
|
*/
|
||
|
List<${firstUpperTableName}DTO> list${firstUpperTableName}(Map<String, Object> params) throws SearchException;
|
||
|
|
||
|
/**
|
||
|
* ${tableExplain}统计
|
||
|
*
|
||
|
* @param params
|
||
|
* @return
|
||
|
* @throws SearchException
|
||
|
*/
|
||
|
Integer count${firstUpperTableName}(Map<String, Object> params) throws SearchException;
|
||
|
|
||
|
}
|