| | |
| | | update com_mng_population set unit_no = #{newUnitNo} where village_id = #{villageId} and floor = #{floor} and unit_no = #{oldUnitNo} |
| | | </update> |
| | | |
| | | <select id="selectCountByVillageId" resultType="Integer"> |
| | | select count(*) from com_mng_population t LEFT JOIN com_mng_population_community_tags t1 on t.id= t1.population_id |
| | | where t.village_id=#{villageId} and t1.label like concat('%',#{label},'%') |
| | | </select> |
| | | |
| | | <select id="getCivilParty" resultType="com.panzhihua.common.model.vos.community.screen.civil.CivilPartyStatisticsVO"> |
| | | SELECT |
| | | count( id ) as committeeNum, |