修复分类添加2级分类报错

This commit is contained in:
taozi
2021-03-01 17:39:14 +08:00
committed by xuwenbo
parent 23099f5e61
commit 86552c091e

View File

@ -167,7 +167,7 @@ public class YxStoreCategoryServiceImpl extends BaseServiceImpl<StoreCategoryMap
}
YxStoreCategory yxStoreCategory = this.getOne(Wrappers.<YxStoreCategory>lambdaQuery()
.eq(YxStoreCategory::getId,pid));
return yxStoreCategory.getPid() < 0;
return yxStoreCategory.getPid() <= 0;
}
/**