<?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="cn.com.countrygarden.bi.main.dao.dup.ManagerDataStatusMapper">
  <resultMap id="BaseResultMap" type="cn.com.countrygarden.bi.main.model.dup.ManagerDataStatus">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="status" jdbcType="VARCHAR" property="status" />
    <result column="begin_date" jdbcType="DATE" property="beginDate" />
    <result column="end_date" jdbcType="DATE" property="endDate" />
    <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" javaType="java.util.Date"/>
    <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
  </resultMap>


  <select id="countManagerData" resultType="int">

       SELECT COUNT(DISTINCT manager_name) FROM fenghuang_manager_data
      WHERE organ_code=#{organCode} AND comm_id=#{commId} AND manager_name IS NOT NULL

  </select>

</mapper>