Jelajahi Sumber

[update] message:1.平台树id如果为0,抛出一个异常提示

kelei12399 6 bulan lalu
induk
melakukan
ce2c3bce03

+ 3 - 0
admin/src/main/java/com/flyer/foster/service/impl/FosterRecordServiceImpl.java

@@ -69,6 +69,9 @@ public class FosterRecordServiceImpl extends ServiceImpl<IFosterRecordMapper, Fo
                     break;
                 }
             }
+            if (birdseyeTreeId == 0) {
+                throw new BusinessException("缓存中没有获取到树的信息");
+            }
             fosterRecord = new FosterRecord();
             BeanUtil.copyProperties(addDTO, fosterRecord);
             fosterRecord.setTenantId(tenantId);