| | |
| | | import com.panzhihua.common.model.vos.area.AreaAddressVO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.common.utlis.AgeUtils; |
| | | import com.panzhihua.common.utlis.IdCard; |
| | | import com.panzhihua.common.utlis.PayUtil; |
| | | import com.panzhihua.common.utlis.*; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import com.panzhihua.service_community.model.dos.*; |
| | | import com.panzhihua.service_community.service.ComMngPopulationHouseUserService; |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.ObjectUtils; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.crypto.BadPaddingException; |
| | |
| | | } |
| | | } |
| | | |
| | | if(StringUtils.isNotEmpty(comMngPopulationVO.getAgeStart())){ |
| | | String ageStartTime = DateUtils.getDateFormatString(DateUtils.yearAddNum(new Date(),-(Integer.parseInt(comMngPopulationVO.getAgeStart()) + 1)),"yyyy-MM-dd"); |
| | | if(StringUtils.isNotEmpty(ageStartTime)){ |
| | | comMngPopulationVO.setAgeStartTime(ageStartTime); |
| | | } |
| | | } |
| | | |
| | | if(StringUtils.isNotEmpty(comMngPopulationVO.getAgeEnd())){ |
| | | String ageEndTime = DateUtils.getDateFormatString(DateUtils.yearAddNum(new Date(),-(Integer.parseInt(comMngPopulationVO.getAgeEnd()) + 1)),"yyyy-MM-dd"); |
| | | if(StringUtils.isNotEmpty(ageEndTime)){ |
| | | comMngPopulationVO.setAgeEndTime(ageEndTime); |
| | | } |
| | | } |
| | | |
| | | IPage<ComMngPopulationVO> iPage = populationDAO.pagePopulation(page, comMngPopulationVO); |
| | | if(!iPage.getRecords().isEmpty()){ |
| | | iPage.getRecords().forEach(populDO -> { |
| | |
| | | populationDO.setVillageName(comMngVillageDO.getGroupAt()); |
| | | populationDO.setHouseAddress(address); |
| | | populationDO.setHouseId(populationHouseDO.getId()); |
| | | populationDO.setUpdateAt(new Date()); |
| | | this.baseMapper.insert(populationDO); |
| | | savePopulList.add(populationDO); |
| | | index++; |
| | |
| | | populationDO.setVillageName(comMngVillageDO.getGroupAt()); |
| | | populationDO.setHouseAddress(address); |
| | | populationDO.setHouseId(populationHouseDO.getId()); |
| | | populationDO.setUpdateAt(new Date()); |
| | | this.baseMapper.insert(populationDO); |
| | | savePopulList.add(populationDO); |
| | | index++; |