移风店镇项目初始化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

47 lines
2.0 KiB

<?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.epmet.modules.partyOrg.dao.IcPartyOrgCensusDao">
<resultMap type="com.epmet.modules.partyOrg.entity.IcPartyOrgCensusEntity" id="icPartyOrgCensusMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="partyOrgId" column="PARTY_ORG_ID"/>
<result property="orgName" column="ORG_NAME"/>
<result property="naturalVillageCount" column="NATURAL_VILLAGE_COUNT"/>
<result property="gridCount" column="GRID_COUNT"/>
<result property="partyMemberCenterCount" column="PARTY_MEMBER_CENTER_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<select id="partyOrgCensusList" resultType="com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgCensusDTO">
select org.PARTY_ORG_NAME as orgName,
census.NATURAL_VILLAGE_COUNT,
census.GRID_COUNT
from ic_party_org_census census
left join ic_party_org org on org.ID = census.PARTY_ORG_ID
where
census.DEL_FLAG = 0
</select>
<select id="partyOrgCensusListAll" resultType="com.epmet.resi.partymember.dto.partyOrg.IcPartyOrgCensusDTO">
select org.PARTY_ORG_NAME as orgName,
census.NATURAL_VILLAGE_COUNT,
census.GRID_COUNT,
census.PARTY_MEMBER_CENTER_COUNT as partyMemberCenterCount
from ic_party_org_census census
left join ic_party_org org on org.ID = census.PARTY_ORG_ID
where
census.DEL_FLAG = 0
</select>
</mapper>