|
|
@@ -126,8 +126,11 @@ public class DocDirServiceImpl implements IDocDirService {
|
|
|
docDir.setCreateTime(DateUtils.getNowDate());
|
|
|
//如果设置了访问码,则需要加密存储
|
|
|
if (StringUtils.isNotEmpty(docDir.getAccessCode())) {
|
|
|
- String pass = SecurityUtils.encryptPassword(docDir.getAccessCode());
|
|
|
- docDir.setAccessCode(pass);
|
|
|
+ if (!"extend".equals(docDir.getRemark())) {
|
|
|
+ //如果是继承至上级,则不需要再次加密
|
|
|
+ String pass = SecurityUtils.encryptPassword(docDir.getAccessCode());
|
|
|
+ docDir.setAccessCode(pass);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return docDirMapper.insertDocDir(docDir);
|