Commit fc117eea by qwmqiuwenmin

fix

parent 5398c400
......@@ -5,10 +5,13 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.PageResult2;
......@@ -24,6 +27,8 @@ import com.gic.haoban.manage.web.vo.MaterialVO;
@RestController
public class MaterialController extends WebBaseController{
private static Logger logger = LoggerFactory.getLogger(MaterialController.class);
@Autowired
private MaterialApiService materialApiService;
/**
......@@ -67,6 +72,7 @@ public class MaterialController extends WebBaseController{
List<MaterialCategoryDTO> sonList = map.get(materialVO.getCategoryId());
List<MaterialVO> sonVoList = EntityUtil.changeEntityListByJSON(MaterialVO.class, sonList);
materialVO.setList(sonVoList);
logger.info("categoryId={},sonVoList={}",materialVO.getCategoryId(),JSON.toJSONString(sonVoList));
while(sonList != null && sonList.size() > 0){
handerSonMaterial(sonVoList, map);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment