提交 2ee1d40e authored 作者: chaoyanjun's avatar chaoyanjun

--no commit message

上级 16327734
......@@ -8,11 +8,13 @@ import com.zrqx.core.vo.newbook.diytype.BookDiyTypeVo;
import com.zrqx.newbook.bg.service.diytype.DiyTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
......@@ -36,7 +38,7 @@ public class DiyTypeController {
PageParam pageParam = new PageParam();
pageParam.setPageSize(99999);
List<BookDiyType> list = service.queryCriteria(pageParam).getList();
List<BookDiyTypeVo> voList = Copy.copyList(list , BookDiyTypeVo.class, obj -> obj.getParentId().equals("0"));
List<BookDiyTypeVo> voList = Copy.copyList(list, BookDiyTypeVo.class, obj -> obj.getParentId().toString().equals("0"));
tree(list,voList);
return CallBack.success(voList);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论