feat(后台管理): 添加商品

添加规格默选中字段
master
wayn 4 years ago
parent ffa2990489
commit dc5493c4e5

@ -100,7 +100,7 @@ public class Goods extends ShopBaseEntity implements Serializable {
/**
*
*/
@NotBlank(message = "商品所属类目不能为空")
@NotBlank(message = "商品单位不能为空")
private String unit;
/**

@ -24,6 +24,7 @@ import java.io.Serializable;
public class GoodsSpecification extends ShopBaseEntity implements Serializable {
private static final long serialVersionUID = 3623876658189050505L;
@TableId(type = IdType.AUTO)
private Long id;
@ -48,6 +49,11 @@ public class GoodsSpecification extends ShopBaseEntity implements Serializable {
*/
private String picUrl;
/**
* 0 1
*/
private Boolean defaultSelected;
/**
*
*/

@ -1,6 +1,5 @@
package com.wayn.common.core.domain.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -14,6 +13,7 @@ public class RoleMenu {
/**
* ID
*/
@TableId
private Long roleId;
/**

@ -1,5 +1,6 @@
package com.wayn.common.core.domain.system;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -12,6 +13,7 @@ public class UserRole {
/**
* ID
*/
@TableId
private Long userId;
/**

@ -4,20 +4,21 @@
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.wayn.common.core.domain.shop.GoodsSpecification">
<result column="id" property="id" />
<result column="goods_id" property="goodsId" />
<result column="specification" property="specification" />
<result column="value" property="value" />
<result column="pic_url" property="picUrl" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
<result column="del_flag" property="delFlag" />
<result column="id" property="id" />
<result column="goods_id" property="goodsId" />
<result column="specification" property="specification" />
<result column="value" property="value" />
<result column="pic_url" property="picUrl" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
<result column="default_selected" property="defaultSelected" />
<result column="del_flag" property="delFlag" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id,
goods_id, specification, value, pic_url, create_time, update_time, del_flag
goods_id, specification, value, pic_url, create_time, update_time, default_selected, del_flag
</sql>
</mapper>

Loading…
Cancel
Save