Index: ssts-recyclingrecord/src/main/java/com/forgon/disinfectsystem/recyclingrecord/service/RecyclingRecordManagerImpl.java =================================================================== diff -u -r30098 -r30126 --- ssts-recyclingrecord/src/main/java/com/forgon/disinfectsystem/recyclingrecord/service/RecyclingRecordManagerImpl.java (.../RecyclingRecordManagerImpl.java) (revision 30098) +++ ssts-recyclingrecord/src/main/java/com/forgon/disinfectsystem/recyclingrecord/service/RecyclingRecordManagerImpl.java (.../RecyclingRecordManagerImpl.java) (revision 30126) @@ -5325,7 +5325,7 @@ } if(Constants.STR_YES.equals(td.getIsDisable())){ return JSONUtil.buildJsonObject(false,td.getName() + "已经停用,不能进行回收,请删除该包,用新的包名称进行回收!"); - }else if(td.getId().longValue() != td.getAncestorID().longValue()){ + }else if(DatabaseUtil.isPoIdValid(td.getAncestorID()) && td.getId().longValue() != td.getAncestorID().longValue()){ TousseDefinition ancestorID = tousseDefinitionManager.get(td.getAncestorID()); if(ancestorID != null && Constants.STR_YES.equals(ancestorID.getIsDisable())){ return JSONUtil.buildJsonObject(false,td.getName() + "的祖先包已经停用,不能进行回收,请删除该包,用新的包名称进行回收!");