diff --git a/epdc-cloud-vim-yushan/src/main/java/com/elink/esua/epdc/vaccine/house/service/impl/HousingInformationServiceImpl.java b/epdc-cloud-vim-yushan/src/main/java/com/elink/esua/epdc/vaccine/house/service/impl/HousingInformationServiceImpl.java index 7fe694a..d352e12 100644 --- a/epdc-cloud-vim-yushan/src/main/java/com/elink/esua/epdc/vaccine/house/service/impl/HousingInformationServiceImpl.java +++ b/epdc-cloud-vim-yushan/src/main/java/com/elink/esua/epdc/vaccine/house/service/impl/HousingInformationServiceImpl.java @@ -56,6 +56,8 @@ import com.elink.esua.epdc.vaccine.house.service.HouseBusinessInfoService; import com.elink.esua.epdc.vaccine.house.service.HouseRentInfoService; import com.elink.esua.epdc.vaccine.house.service.HousingInformationService; import com.elink.esua.epdc.vaccine.house.service.PopulationInformationService; +import com.elink.esua.epdc.vaccine.vim.dao.VaccinationInfoDao; +import com.elink.esua.epdc.vaccine.vim.entity.VaccinationInfoEntity; import org.apache.commons.lang3.StringUtils; import org.apache.poi.ss.usermodel.Workbook; import org.springframework.beans.factory.annotation.Autowired; @@ -81,7 +83,6 @@ public class HousingInformationServiceImpl extends BaseServiceImpl page(Map params) { IPage page = baseDao.selectPage( @@ -389,7 +393,7 @@ public class HousingInformationServiceImpl extends BaseServiceImpl 0) { - saveResidentList(baseResidentInformationExcels, populationIdNoAndIdMap); + saveResidentList(baseResidentInformationExcels, parentAndAllDeptDTO, populationIdNoAndIdMap); } } catch (Exception e1) { throw new RenException("导入失败:请检查导入模板或导入数据"); @@ -471,7 +475,7 @@ public class HousingInformationServiceImpl extends BaseServiceImpl baseResidentInformationExcels, Map populationIdNoAndIdMap) { + private void saveResidentList(List baseResidentInformationExcels, ParentAndAllDeptDTO parentAndAllDeptDTO, Map populationIdNoAndIdMap) { for (BaseResidentInformationExcel baseResidentInformationExcel : baseResidentInformationExcels) { //插入居民信息 PopulationInformationEntity populationInformationEntity = ConvertUtils.sourceToTarget(baseResidentInformationExcel, PopulationInformationEntity.class); @@ -480,9 +484,10 @@ public class HousingInformationServiceImpl extends BaseServiceImpl { */ void updateAddress(VaccinationInfoEntity entity); + /** + * 更新网格信息 + * + * @param entity + * @return void + * @author zhy + * @date 2021/5/20 17:46 + */ + void updateDeptInfo(VaccinationInfoEntity entity); + /** * 查询实际接种情况 * diff --git a/epdc-cloud-vim-yushan/src/main/resources/mapper/house/HouseResidentDao.xml b/epdc-cloud-vim-yushan/src/main/resources/mapper/house/HouseResidentDao.xml index e211da9..8fffacf 100644 --- a/epdc-cloud-vim-yushan/src/main/resources/mapper/house/HouseResidentDao.xml +++ b/epdc-cloud-vim-yushan/src/main/resources/mapper/house/HouseResidentDao.xml @@ -35,6 +35,7 @@ t.RELATION as HOUSE_HEAD_RELATION from epidemic_user_info t left join epdc_house_resident t1 on t1.RESIDENT_ID = t.ID where t.DEL_FLAG ='0' and t1.DEL_FLAG ='0' and t1.IS_HOUSE_HEAD = '0' and t1.HOUSE_HEAD_ID = #{houseHeadId} + GROUP BY t.id order by t1.CREATED_TIME desc SELECT COUNT(0) AS dose,