From 3ce985d2eabaa3b4153e0ba10c2748728bc52f5f Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 16 Sep 2021 14:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=88=BF=E5=B1=8B=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=97=B6=EF=BC=8C=E5=90=8C=E6=AD=A5=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E8=AE=B0=E5=BD=95=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/HousingInformationServiceImpl.java | 39 ++++++++++++++++--- .../vaccine/vim/dao/VaccinationInfoDao.java | 10 +++++ .../mapper/house/HouseResidentDao.xml | 1 + .../mapper/vim/VaccinationInfoDao.xml | 11 ++++++ 4 files changed, 56 insertions(+), 5 deletions(-) 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,