店铺分类维护信息错误问题处理。
This commit is contained in:
@@ -408,7 +408,7 @@ public enum ResultCode {
|
||||
*/
|
||||
OSS_NOT_EXIST(80101, "OSS未配置"),
|
||||
OSS_EXCEPTION_ERROR(80102, "文件上传失败,请稍后重试"),
|
||||
OSS_DELETE_ERROR(80102, "图片删除失败"),
|
||||
OSS_DELETE_ERROR(80103, "图片删除失败"),
|
||||
|
||||
/**
|
||||
* 验证码
|
||||
|
||||
@@ -8,6 +8,8 @@ import lombok.Data;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
@@ -28,12 +30,16 @@ public class StoreGoodsLabel extends BaseEntity {
|
||||
@ApiModelProperty("店铺ID")
|
||||
private String storeId;
|
||||
|
||||
@NotEmpty(message = "店铺商品分类名称不能为空")
|
||||
@ApiModelProperty("店铺商品分类名称")
|
||||
private String labelName;
|
||||
|
||||
|
||||
@NotNull(message = "店铺商品分类排序不能为空")
|
||||
@ApiModelProperty("店铺商品分类排序")
|
||||
private BigDecimal sortOrder;
|
||||
|
||||
@NotNull(message = "父节点不能为空,需设定根节点或者某节点的子节点")
|
||||
@ApiModelProperty(value = "父id, 根节点为0")
|
||||
private String parentId;
|
||||
|
||||
|
||||
@@ -126,6 +126,6 @@ public class StoreGoodsLabelServiceImpl extends ServiceImpl<StoreGoodsLabelMappe
|
||||
* 清除缓存
|
||||
*/
|
||||
private void removeCache(String storeId) {
|
||||
cache.remove(CachePrefix.CATEGORY.getPrefix() + storeId + "tree");
|
||||
cache.remove(CachePrefix.STORE_CATEGORY.getPrefix() + storeId + "tree");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user