修改新增单位注册管理员功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package org.dromara.property.service.impl;
|
package org.dromara.property.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
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.MapstructUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||||
@@ -154,6 +155,7 @@ public class ResidentUnitServiceImpl implements IResidentUnitService {
|
|||||||
residentPerson.setAuthEndDate(unit.getAuthEndDate());
|
residentPerson.setAuthEndDate(unit.getAuthEndDate());
|
||||||
residentPerson.setUnitId(unit.getId());
|
residentPerson.setUnitId(unit.getId());
|
||||||
residentPerson.setUnitName(unit.getName());
|
residentPerson.setUnitName(unit.getName());
|
||||||
|
residentPerson.setPassword(BCrypt.hashpw("123456"));
|
||||||
personMapper.insert(residentPerson);
|
personMapper.insert(residentPerson);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user