|  |  | 
 |  |  |  | 
 |  |  |     <!-- 通用查询映射结果 --> | 
 |  |  |     <resultMap id="BaseResultMap" type="com.zy.system.entity.Config"> | 
 |  |  |         <id column="id" property="id" /> | 
 |  |  |         <result column="name" property="name" /> | 
 |  |  |         <result column="code" property="code" /> | 
 |  |  |         <result column="value" property="value" /> | 
 |  |  |         <result column="type" property="type" /> | 
 |  |  |         <result column="status" property="status" /> | 
 |  |  |         <id column="ID" property="id" /> | 
 |  |  |         <result column="NAME" property="name" /> | 
 |  |  |         <result column="CODE" property="code" /> | 
 |  |  |         <result column="VALUE" property="value" /> | 
 |  |  |         <result column="TYPE" property="type" /> | 
 |  |  |         <result column="STATUS" property="status" /> | 
 |  |  |  | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <select id="selectByCode" resultMap="BaseResultMap"> | 
 |  |  |         select top 1 * from "SOURCE"."sys_config" | 
 |  |  |         where "CODE" = #{code} | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <select id="selectByCodes" resultMap="BaseResultMap"> | 
 |  |  |         select * from "SOURCE"."sys_config" | 
 |  |  |         where "CODE" in | 
 |  |  |         <foreach item="item" collection="codes" index="index"  separator="," open="(" close=")"> | 
 |  |  |             #{item} | 
 |  |  |         </foreach> | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  | </mapper> |