记得上下班打卡 | git大法好,push需谨慎

Commit 633f6a04 authored by 张国柄's avatar 张国柄

~admin:商品分类参数必填调整;

parent 814c120a
......@@ -47,7 +47,7 @@ public class GoblinSelfCategoryController extends BaseController {
@ApiOperation(value = "新建")
@ApiImplicitParams({
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "grade", value = "分类层级[1-一级|2-二级|3-三级]", allowableValues = "1,2,3"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "catePid", value = "分类父ID[30]"),
@ApiImplicitParam(type = "form", required = false, dataType = "String", name = "catePid", value = "分类父ID[30]"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "name", value = "分类名称[50]"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "icon", value = "分类图标[256]"),
@ApiImplicitParam(type = "form", required = true, dataType = "String", name = "neIsbn", value = "是否需要填写ISBN[0-否|1-是]", allowableValues = "0,1"),
......@@ -60,6 +60,9 @@ public class GoblinSelfCategoryController extends BaseController {
public AjaxResult addSave(GoblinSelfGoodsCategory selfGoodsCategory) {
// TODO: 2022/1/14 zhanggb valid
if (selfGoodsCategory.getGrade().equals("1")) {
selfGoodsCategory.setCatePid(null);
}
selfGoodsCategory.setCateId(IDGenerator.nextMilliId2());
selfGoodsCategory.setDelFlg("0");
if (null == selfGoodsCategory.getSort()) {
......
......@@ -74,7 +74,7 @@ create table goblin_self_goods_category
mid bigint auto_increment primary key,
cate_id varchar(30) not null comment '商铺分类id',
name varchar(50) not null comment '分类名称',
icon varchar(50) null comment '分类图标',
icon varchar(256) null comment '分类图标',
sort int default 0 comment '排序[数值越小,排序越前]',
grade char null comment '分类层级[1-一级|2-二级|3-三级]',
cate_pid varchar(30) null comment '分类父id',
......
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