| package com.xzx.gc.role.mapper;  | 
|   | 
|   | 
| import com.xzx.gc.entity.CoreFunction;  | 
| import com.xzx.gc.util.GcMapper;  | 
| import com.xzx.gc.util.SqlResource;  | 
| import org.apache.ibatis.annotations.Param;  | 
| import org.apache.ibatis.annotations.Select;  | 
|   | 
| @SqlResource("role.coreFunction")  | 
| public interface CoreFunctionMapper extends GcMapper<CoreFunction> {  | 
|     //@Sql("select * from core_function where code = ?")  | 
|     @Select("select * from core_function where code = #{code}")  | 
|     CoreFunction getFunctionByCode(@Param(value = "code") String code);  | 
| }  |