futian.liu
2023-12-11 2c706a5d58e8315980ea92d6b82e0e4959bad8ca
consum-base/src/main/java/com/consum/base/service/impl/BaseCategoryServiceImpl.java
@@ -11,12 +11,13 @@
import com.walker.infrastructure.utils.DateUtils;
import com.walker.infrastructure.utils.StringUtils;
import com.walker.jdbc.service.BaseServiceImpl;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
/**
 * @Description 物品分类
@@ -93,6 +94,8 @@
        if (param.getFatherCategoryId() != null) {
            sql.append("and father_category_id =:fatherCategoryId ");
            paramts.put("fatherCategoryId", param.getFatherCategoryId());
        } else {
            sql.append("and levels =1 ");
        }
        //分类名称
        if (!StringUtils.isEmpty(param.getCategoryName())) {