<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nantian.cloud.dbcapp.mapper.record.PublicInstutionNumMapper">
    <select id="getPublicInstutionNum" resultType="com.nantian.cloud.dbcapp.bean.PublicInstitutionNumDomain">
  select totalOfOrgs as publicInstitutionNum,comprehensiveEnergyConsumption from public_institutions where
  areaCode = #{area}
  and teamType = #{instution}
  and year = #{time}
</select>

    <select id="getPublicInstitutionAverageNum" resultType="com.nantian.cloud.dbcapp.bean.PublicInstitutionAverage">
  select f103,f503,f504 from public_percapita where
  areaCode = #{area}
  and year = #{time}
</select>

    <select id="getPublicInstitutionArea" resultType="String">
  select code from dict_region  where
  meaning = #{area}
</select>

    <select id="queryArea" resultType="com.nantian.cloud.dbcapp.bean.PublicInstutionArea">
   select tname as name,code from dict_region WHERE pcode ='530000' ORDER BY code
</select>

    <select id="getPublicInstitutionNumDomain" resultType="com.nantian.cloud.dbcapp.bean.PublicInstitutionNumDomain">
  select totalOfOrgs as publicInstitutionNum,comprehensiveEnergyConsumption,areaCode as code from public_institutions where
 teamType = #{instution}
  and year = #{time} ORDER BY code
</select>

    <select id="getPublicInstitutionAverage" resultType="com.nantian.cloud.dbcapp.bean.PublicInstitutionAverage">
  select f103,f503,f504,areaCode as code from public_percapita where
   year = #{time} ORDER BY code
</select>

</mapper>