adding productSearchTag/query

This commit is contained in:
Carl 2021-12-24 15:38:08 +08:00
parent 59e029a378
commit 2080076a30
4 changed files with 9 additions and 10 deletions

View File

@ -9,7 +9,6 @@ import net.lab1024.smartadmin.module.system.royalcanin.good.model.GoodsEntity;
import net.lab1024.smartadmin.module.system.royalcanin.good.service.GoodService; import net.lab1024.smartadmin.module.system.royalcanin.good.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;

View File

@ -8,7 +8,7 @@ import lombok.Data;
public class GoodsEntity { public class GoodsEntity {
private String productName; private String productName;
private String price; private String basePrice;
private String productCode; private String productCode;
@ -22,9 +22,9 @@ public class GoodsEntity {
private String tagUsedAge; private String tagUsedAge;
private String slidingPicture; private String picFile;
private String bodyPicture; private String showImgFile;
private int isSales; private int isSales;

View File

@ -12,14 +12,14 @@
select select
product_code, product_code,
product_name, product_name,
price, base_price,
brand_code, brand_code,
brand_name, brand_name,
category_name, category_name,
pet_type, pet_type,
tagUsedAge, tagUsedAge,
sliding_picture, pic_file,
body_picture, show_img_file,
isSales isSales
from t_good_goods from t_good_goods
<where> <where>

View File

@ -1654,14 +1654,14 @@ CREATE TABLE `t_good_goods` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`product_code` VARCHAR(20) NOT NULL COMMENT '标品编码', `product_code` VARCHAR(20) NOT NULL COMMENT '标品编码',
`product_name` varchar(20) DEFAULT NULL COMMENT '产品名称', `product_name` varchar(20) DEFAULT NULL COMMENT '产品名称',
`price` varchar(11) DEFAULT NULL COMMENT '价格', `base_price` varchar(11) DEFAULT NULL COMMENT '价格',
`brand_code` varchar(11) DEFAULT NULL COMMENT '品牌编码', `brand_code` varchar(11) DEFAULT NULL COMMENT '品牌编码',
`brand_name` varchar(11) DEFAULT NULL COMMENT '品牌名称', `brand_name` varchar(11) DEFAULT NULL COMMENT '品牌名称',
`category_name` varchar(11) DEFAULT NULL COMMENT '品类', `category_name` varchar(11) DEFAULT NULL COMMENT '品类',
`pet_type` int(11) DEFAULT NULL COMMENT '宠物类型', `pet_type` int(11) DEFAULT NULL COMMENT '宠物类型',
`tagUsedAge` varchar(11) DEFAULT NULL COMMENT '适用阶段', `tagUsedAge` varchar(11) DEFAULT NULL COMMENT '适用阶段',
`sliding_picture` varchar(200) DEFAULT NULL COMMENT '标品头图', `pic_file` varchar(200) DEFAULT NULL COMMENT '标品头图',
`body_picture` varchar(200) DEFAULT NULL COMMENT '身体头图', `show_img_file` varchar(200) DEFAULT NULL COMMENT '身体头图',
`isSales` int(11) DEFAULT NULL COMMENT '0:未销售1销售', `isSales` int(11) DEFAULT NULL COMMENT '0:未销售1销售',
`isShow` int(11) DEFAULT NULL COMMENT '0:不展示1展示', `isShow` int(11) DEFAULT NULL COMMENT '0:不展示1展示',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)