| 
					
				 | 
			
			
				@@ -15,6 +15,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="updateBy" column="UPDATE_BY" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="dateUpdate" column="DATE_UPDATE" jdbcType="TIMESTAMP"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!-- 二层结果集 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <resultMap type="com.huaxu.dto.DictDto" id="DictDtoMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="parentDictId" column="PARENT_DICT_ID" jdbcType="INTEGER"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="parentDictName" column="DICT_NAME" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="parentDictCode" column="PARENT_DICT_CODE" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="remark" column="REMARK" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <collection property="dictList" ofType="java.util.Map" javaType="list"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <result property="id" column="ID" jdbcType="INTEGER"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <result property="dictCode" column="DICT_CODE" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <result property="dictValue" column="DICT_VALUE" jdbcType="VARCHAR"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </collection> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- 基本字段 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="Base_Column_List"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -194,4 +206,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             and STATUS =1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <!--查询父列表--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <select id="selectParentList" resultMap="DictDtoMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select t2.parent_dict_id,t1.dict_code parent_dict_code,t1.dict_name,t1.remark,t2.id,t2.dict_code,t2.dict_value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        from uims_dict t1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        inner join uims_dict t2 on t1.id=t2.parent_dict_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        where t1.`status`=1 and t2.`status`=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="remark != null and remark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.remark = #{remark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        order by t1.date_create,t2.date_create 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |