dev798
wxy 2024-04-02 18:12:47 +08:00
parent b197703fe4
commit 5cd53b0931
8 changed files with 20 additions and 1 deletions

View File

@ -14,6 +14,7 @@ public class Test {
public static void main(String[] args) {
Test test = new Test();
test.setName("LXW");
System.out.println();
System.out.println(test);
}
}

View File

@ -41,4 +41,6 @@ public class ProductSku extends BaseEntity {
}

View File

@ -33,5 +33,9 @@ public class ProductSkuAttr extends BaseEntity {
@ApiModelProperty(value = "类型0-属性1-参数")
private Integer flag;
private Integer pageSize=5;
private Integer pageNum=1;
}

View File

@ -25,6 +25,10 @@ public class ProductResp {
@NotNull(message = "货号不能为空")
private String productNumber;
@ApiModelProperty(value = "销量")
private Integer sales;
@ApiModelProperty(value = "审核状态 (1:通过, 2:驳回)")
private Integer productExamine;

View File

@ -17,4 +17,5 @@ public interface ProductSkuMapper {
void insertProductSkuAttr(List<ProductSkuAttr> productSkuAttrs);
Integer findSkuId(List<ProductSku> productSkus);
}

View File

@ -2,6 +2,8 @@ package com.muyu.product.service;
import com.github.pagehelper.PageInfo;
import com.muyu.product.domain.DTO.Product;
import com.muyu.product.domain.DTO.ProductSku;
import com.muyu.product.domain.DTO.ProductSkuAttr;
import com.muyu.product.domain.Resp.ProductResp;
import com.muyu.product.domain.req.ProductReq;
import com.muyu.product.domain.req.QueryProductReq;
@ -14,4 +16,6 @@ public interface ProductService {
PageInfo<ProductResp> queryProduct(QueryProductReq req);
void productInsert(ProductReq productReq);
}

View File

@ -10,7 +10,7 @@
product_information,product_unit,product_weight,product_sort,product_points,
product_growth,product_max_points,product_foreknow,product_status,product_new,
product_recommended,details_title,details_information,details_key_word,details_remark,
method_type,t_product_brand.brand_name,t_product_type.type_name,sale_price,images_url
method_type,t_product_brand.brand_name,t_product_type.type_name,sale_price,images_url,sales
</sql>
<insert id="insertProduct">

View File

@ -51,5 +51,8 @@
#{id}
</foreach>
</select>
<select id="querySku" resultType="com.muyu.product.domain.DTO.ProductSku">
select * from t_product_sku
</select>
</mapper>