|
|
|
@ -155,9 +155,90 @@ |
|
|
|
<select id="frontPagePersonInfoStatisticsList" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPagePersonInfoStatisticsResultDTO"> |
|
|
|
SELECT |
|
|
|
PERSON_NUM, |
|
|
|
LIVE_TYPE |
|
|
|
sum(if(LIVE_TYPE='0',PERSON_NUM,0)) as permanentResidenceNum, |
|
|
|
sum(if(LIVE_TYPE='1',PERSON_NUM,0)) as floatingPopulationNum, |
|
|
|
sum(if(LIVE_TYPE='2',PERSON_NUM,0)) as overseasPopulationNum |
|
|
|
FROM epdc_screen_person_live_statistics |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="frontPageHouseTypeStatistics" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenFrontPageHouseTypeStatisticsResultDTO"> |
|
|
|
SELECT |
|
|
|
sum(if(HOUSE_TYPE ='0',HOUSE_NUM ,0)) as aloneLiveNum, |
|
|
|
sum(if(HOUSE_TYPE ='1',HOUSE_NUM ,0)) as rentNum, |
|
|
|
sum(if(HOUSE_TYPE ='2',HOUSE_NUM ,0)) as dormitoryNum, |
|
|
|
sum(if(HOUSE_TYPE ='3',HOUSE_NUM ,0)) as vacantNum, |
|
|
|
sum(if(HOUSE_TYPE ='4',HOUSE_NUM ,0)) as otherNum |
|
|
|
FROM epdc_screen_house_type_statistics |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="epidemicVaccinationStatistics" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicVaccinationStatisticsResultDTO"> |
|
|
|
SELECT |
|
|
|
SUM (VACCINATION_COMPLETED_NUM) as vaccinationCompletedNum, |
|
|
|
SUM (ONE_SHOT_NUM) as oneShotNum, |
|
|
|
SUM (TWO_SHOTS_NUM) as twoShotsNum, |
|
|
|
SUM (NOT_VACCINATED_NUM) as notVaccinatedNum |
|
|
|
FROM epdc_screen_vaccination_statistics |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
GROUP BY id |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="epidemicCommunityVaccinationStatisticsList" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCommunityVaccinationStatisticsResultDTO"> |
|
|
|
SELECT |
|
|
|
DEPT_ID, |
|
|
|
DEPT_NAME, |
|
|
|
COMMUNITY_TOTAL_NUM, |
|
|
|
VACCINATION_COMPLETED_NUM, |
|
|
|
ONE_SHOT_NUM, |
|
|
|
TWO_SHOTS_NUM, |
|
|
|
NOT_VACCINATED_NUM, |
|
|
|
BEING_VACCINATED_NUM, |
|
|
|
LONGITUDE, |
|
|
|
LATITUDE |
|
|
|
FROM epdc_screen_vaccination_statistics |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
ORDER BY |
|
|
|
<if test="orderType == 0"> |
|
|
|
VACCINATION_COMPLETED_NUM DESC |
|
|
|
</if> |
|
|
|
<if test="orderType == 1"> |
|
|
|
ONE_SHOT_NUM DESC |
|
|
|
</if> |
|
|
|
<if test="orderType == 2"> |
|
|
|
TWO_SHOTS_NUM DESC |
|
|
|
</if> |
|
|
|
<if test="orderType == 3"> |
|
|
|
NOT_VACCINATED_NUM DESC |
|
|
|
</if> |
|
|
|
DEPT_NAME |
|
|
|
LIMIT #{pageIndex}, #{pageSize} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="epidemicCompanyVaccinationStatisticsList" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenEpidemicCompanyVaccinationStatisticsResultDTO"> |
|
|
|
SELECT |
|
|
|
COMPANY, |
|
|
|
VACCINATION_NUM |
|
|
|
FROM epdc_screen_vaccination_company_statistics |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="vaccinationAgeVaccinationStatistics" |
|
|
|
resultType="com.elink.esua.epdc.dto.analysis.pc.screen.result.EpdcScreenVaccinationAgeVaccinationStatisticsResultDTO"> |
|
|
|
|
|
|
|
SELECT |
|
|
|
|
|
|
|
FROM epdc_screen_vaccination_age_statistics |
|
|
|
SUM (AGE_EIGHTEEN_THIRTY) , |
|
|
|
SUM (AGE_THIRTY_ONE_FORTY) , |
|
|
|
SUM (AGE_FORTY_ONE_FIFTY) , |
|
|
|
SUM (AGE_FIFTY_ONE_SIXTY) , |
|
|
|
SUM (AGE_OVER_SIXTY) |
|
|
|
WHERE DEL_FLAG = '0' |
|
|
|
AND STATISTIC_TYPE = #{statisticType} |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|