| package com.matrix.system.common.dao; | 
|   | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.Map; | 
|   | 
| /** | 
|  * 通用dao层 | 
|  *  | 
|  * @author jiangyouyao | 
|  * @email 512061637@qq.com | 
|  * @date 2019年2月25日 | 
|  */ | 
| public interface UtilDao { | 
|     /** | 
|      * 如果返回多条记录则会报错 单字段去重 | 
|      *  | 
|      * @param obj | 
|      * @return | 
|      */ | 
|     public Map<String, Object> selectRepeat(Object obj); | 
|   | 
|     /** | 
|      * 如果返回多条记录则会报错 两字段去重 | 
|      *  | 
|      * @param obj | 
|      * @return | 
|      */ | 
|     public Map<String, Object> selectRepeatTowColumn(Object obj); | 
|   | 
|     /** | 
|      * 获取一个表中,其中一个字段的最大值 @Title: getMaxValue  @author:jyy @param | 
|      * tableName @param column @return String 返回类型 @date 2016年8月22日 | 
|      * 上午10:51:03 @throws | 
|      */ | 
|     public String selectMaxValue(@Param("tableName") String tableName, @Param("column") String column); | 
|   | 
|   | 
|     public int selectCount(@Param("tableName") String tableName, @Param("column") String column, @Param("value") String value); | 
|   | 
|   | 
| } |