| | |
| | | package com.consum.base.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Comparator; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | import com.walker.infrastructure.utils.DateUtils; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.jdbc.service.BaseServiceImpl; |
| | | |
| | | import cn.hutool.core.lang.tree.TreeNode; |
| | | import cn.hutool.core.lang.tree.TreeUtil; |
| | | |
| | | /** |
| | | * @Description 物品分类 |
| | |
| | | HashMap<String, Object> paramts = new HashMap<>(); |
| | | |
| | | // 分类名称 |
| | | sql.append(" and category_name =:category_name "); |
| | | sql.append("and category_name =:category_name "); |
| | | paramts.put("category_name", categoryName); |
| | | // 父类id |
| | | sql.append(" and father_category_id =:father_category_id "); |
| | | sql.append("and father_category_id =:father_category_id "); |
| | | paramts.put("father_category_id", fatherCategoryId); |
| | | |
| | | sql.append("and states = 1 "); |
| | | return this.get(sql.toString(), paramts, new BaseCategory()); |
| | | } |
| | | |