order info improvement

This commit is contained in:
sxu 2024-12-16 18:49:23 +08:00
parent 3d24f77a66
commit 8f30d81e35
1 changed files with 0 additions and 1 deletions

View File

@ -50,7 +50,6 @@ public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
// 计算4级菜单的上架数 // 计算4级菜单的上架数
for (TreeNode treeNode : list) { for (TreeNode treeNode : list) {
for (TypeInfo typeCount : typeCountList) { for (TypeInfo typeCount : typeCountList) {
treeNode.setMaCount(0);
if ("4".equals(treeNode.getLevel()) && treeNode.getId() == typeCount.getTypeId().longValue()) { if ("4".equals(treeNode.getLevel()) && treeNode.getId() == typeCount.getTypeId().longValue()) {
treeNode.setMaCount(typeCount.getMaCount()); treeNode.setMaCount(typeCount.getMaCount());
} }