提交 82c8b945 authored 作者: 吴德鹏's avatar 吴德鹏

属性管理

上级 ec53ab1a
......@@ -114,6 +114,10 @@ public class AttributesController {
return R.ok().put("list", list);
}
/**
* 查询所有
* @return
*/
@RequestMapping("/queryAttrNames")
@ResponseBody
@IgnoreAuth
......@@ -156,7 +160,7 @@ public class AttributesController {
}
/**
* 新版商品属性(整合旧版)
* 新版商品属性(整合旧版数据
*
* @param itemId
* @return
......
......@@ -36,7 +36,7 @@ public class AttributesEntity implements Serializable {
/**
* 是否必须 0:否 1:是
*/
private String isNeed;
private boolean isNeed;
/**
* 创建时间
*/
......@@ -111,19 +111,15 @@ public class AttributesEntity implements Serializable {
public Integer getSort() {
return sort;
}
/**
* 设置:是否必须 0:否 1:是
*/
public void setIsNeed(String isNeed) {
this.isNeed = isNeed;
}
/**
* 获取:是否必须 0:否 1:是
*/
public String getIsNeed() {
public boolean isNeed() {
return isNeed;
}
public void setNeed(boolean need) {
isNeed = need;
}
/**
* 设置:创建时间
*/
......
......@@ -52,10 +52,10 @@
</Form-item>
<Form-item label="是否必填" prop="updateTime">
<Radio-group v-model="attributes.isNeed">
<Radio label="1">
<Radio label="true">
<span>开启</span>
</Radio>
<Radio label="0">
<Radio label="false">
<span>关闭</span>
</Radio>
</Radio-group>
......@@ -75,4 +75,4 @@
<script src="${rc.contextPath}/js/sys/attributes.js?_${date.systemTime}"></script>
</body>
</html>
\ No newline at end of file
</html>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论