|
@@ -166,13 +166,13 @@ public class ArchiveTreeContractController extends BladeController {
|
|
|
ar.setArchiveNameSuffix(archiveTreeContract.getArchiveNameSuffix());
|
|
|
}
|
|
|
|
|
|
- if(ar.getArchiveAutoType()!=null && ar.getArchiveAutoType()!=2){
|
|
|
+ if(ar.getArchiveAutoType()==null || ar.getArchiveAutoType()!=2){
|
|
|
ar.setArchiveAutoType(archiveTreeContract.getArchiveAutoType());
|
|
|
}
|
|
|
|
|
|
boolean b = archiveTreeContractService.updateById(ar);
|
|
|
//更新下级节点为同一规则
|
|
|
- if(ar.getArchiveAutoType()!=null && ar.getArchiveAutoType()!=2){
|
|
|
+ if(ar.getArchiveAutoType()==null || ar.getArchiveAutoType()!=2){
|
|
|
archiveTreeContractService.updateAllSonNodeIdsForArchiveAutoRule(ar);
|
|
|
}
|
|
|
|