<select id="selectIndustrialResource" parameterType="map" resultMap="MenuResultMap">
SELECT a.bigType,b.name as bigName,c.name as smallName FROM tb_industrial_resources_info a
LEFT JOIN tb_dic_big_resource_type b on a.bigType=b.id
LEFT JOIN tb_dic_small_resource_type c on a.smallType=c.id
GROUP BY a.bigType
</select>
<select id="selectSmallResource" resultType="java.util.Map">
SELECT b.name as smallName,count(*) as number FROM tb_industrial_resources_info a
LEFT JOIN tb_dic_small_resource_type b on a.smallType=b.id
where a.bigType=#{bigType}
GROUP BY a.smallType
</select>