【优化】产品标签
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.corewing.app.entity;
|
package com.corewing.app.entity;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
@@ -46,4 +47,13 @@ public class BizProduct extends CommonEntity {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String categoryId;
|
private String categoryId;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String[] features;
|
||||||
|
|
||||||
|
public String[] getFeatures() {
|
||||||
|
if(StrUtil.isNotBlank(tag)) {
|
||||||
|
return tag.split(",");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user