Commit 763c9f66 by xub

商品分组

parent 4383af65
......@@ -37,6 +37,9 @@ public class GoodsCordController {
return RestResponse.success();
}
List<GoodsCordVO> list = EntityUtil.changeEntityListByOrika(GoodsCordVO.class, result);
for (GoodsCordVO goodsCordVO : list) {
goodsCordVO.setNextChild(false);
}
return RestResponse.success(list);
}
......@@ -52,6 +55,9 @@ public class GoodsCordController {
return RestResponse.success();
}
List<GoodsCordVO> list = EntityUtil.changeEntityListByOrika(GoodsCordVO.class, result);
for (GoodsCordVO goodsCordVO : list) {
goodsCordVO.setNextChild(true);
}
return RestResponse.success(list);
}
}
......@@ -3,11 +3,11 @@ package com.gic.plug.web.vo.goods;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* @ClassName: GoodsCordVO
* @Description: 商品分组表
* @author xub
* @date 2019/8/29 上午10:16
*/
* @author xub
* @ClassName: GoodsCordVO
* @Description: 商品分组表
* @date 2019/8/29 上午10:16
*/
public class GoodsCordVO {
/**
* 主键ID
......@@ -53,6 +53,10 @@ public class GoodsCordVO {
* 排序
*/
private Integer sort;
/**
* 是否有子类
*/
private Boolean nextChild;
public Long getSpecCordId() {
return specCordId;
......@@ -134,4 +138,11 @@ public class GoodsCordVO {
this.sort = sort;
}
public Boolean getNextChild() {
return nextChild;
}
public void setNextChild(Boolean nextChild) {
this.nextChild = nextChild;
}
}
\ No newline at end of file
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