diff --git a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/ResidentUnitServiceImpl.java b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/ResidentUnitServiceImpl.java index e44eca30..e85c84b3 100644 --- a/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/ResidentUnitServiceImpl.java +++ b/ruoyi-modules/Property/src/main/java/org/dromara/property/service/impl/ResidentUnitServiceImpl.java @@ -1,6 +1,7 @@ package org.dromara.property.service.impl; import cn.hutool.core.collection.CollUtil; +import cn.hutool.crypto.digest.BCrypt; import org.dromara.common.core.utils.MapstructUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.mybatis.core.page.TableDataInfo; @@ -154,6 +155,7 @@ public class ResidentUnitServiceImpl implements IResidentUnitService { residentPerson.setAuthEndDate(unit.getAuthEndDate()); residentPerson.setUnitId(unit.getId()); residentPerson.setUnitName(unit.getName()); + residentPerson.setPassword(BCrypt.hashpw("123456")); personMapper.insert(residentPerson); } /**