All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.basics.service.MyBaseService Maven / Gradle / Ivy

package cn.basics.service;

import cn.basics.model.PageEntity;
import cn.basics.util.ReturnUtil;

/**
 * @ClassName: MyBaseService 
 * @Description: TODOG(数据库公共服务层接口) 
 * @author [email protected](苟志强)
 * @date 2017-2-10 上午11:25:51
 */
public interface MyBaseService {
	/**
	 * @Title: findPage 
	 * @Description: TODO() 
	 * @param @param page 分页对象 与传统一致
	 * @param @param id	mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	PageEntity findPage(PageEntity page, String id,Object obj);
	/**
	 * @Title: get 
	 * @Description: TODO(条件查询 一条) 
	 * @param @param obj 查询条件 
	 * @param @param id mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil get(ReturnUtil returnUtil,Object obj, String id);
	/**
	 * @Title: getList 
	 * @Description: TODO(条件查询 多条) 
	 * @param @param map 查询条件 例如:{sex:1,age:12}
	 * @param @param id mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil getList(ReturnUtil returnUtil,Object obj, String id);
	/**
	 * @Title: getListAndColumnComment 
	 * @Description: TODO(条件查询 多条<.包含字段信息>) 
	 * @param @param map 查询条件 例如:{sex:1,age:12}
	 * @param @param id mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil getListAndColumnComment(ReturnUtil returnUtil,Object obj, String id);
	/**
	 * @Title: add 
	 * @Description: TODOG(新增) 
	 * @param @param obj 新增对象
	 * @param @param id mapper sql id
	 * @param @param bool 是否追加ID属性(true 若存在“id”属性,自动生成ID并插入“id”属性中)
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil add(ReturnUtil returnUtil,Object obj, String id,boolean... bool);
	/**
	 * @Title: del 
	 * @Description: TODOG(删除) 
	 * @param @param obj 删除条件
	 * @param @param id mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil del(ReturnUtil returnUtil,Object obj, String id);
	/**
	 * @Title: upData 
	 * @Description: TODOG(修改) 
	 * @param @param obj 修改条件
	 * @param @param id mapper sql id
	 * @param @return 设定文件 
	 * @return ReturnUtil 返回类型 
	 * @author [email protected](苟志强)
	 */
	ReturnUtil upData(ReturnUtil returnUtil,Object obj, String id);
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy