|
@@ -1,6 +1,7 @@
|
|
package com.fjhx.service.material.impl;
|
|
package com.fjhx.service.material.impl;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.fjhx.entity.material.MaterialClassify;
|
|
import com.fjhx.entity.material.MaterialClassify;
|
|
import com.fjhx.mapper.material.MaterialClassifyMapper;
|
|
import com.fjhx.mapper.material.MaterialClassifyMapper;
|
|
@@ -11,7 +12,6 @@ import com.fjhx.utils.TreeUtil;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
* <p>
|
|
* <p>
|
|
@@ -25,7 +25,7 @@ import java.util.Map;
|
|
public class MaterialClassifyServiceImpl extends ServiceImpl<MaterialClassifyMapper, MaterialClassify> implements MaterialClassifyService {
|
|
public class MaterialClassifyServiceImpl extends ServiceImpl<MaterialClassifyMapper, MaterialClassify> implements MaterialClassifyService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public List<Map<String, Object>> tree() {
|
|
+ public List<JSONObject> tree() {
|
|
return TreeUtil.buildTreeObj(list());
|
|
return TreeUtil.buildTreeObj(list());
|
|
}
|
|
}
|
|
|
|
|