|
|
|
@ -127,11 +127,20 @@ func QueryGoodsList(c *gin.Context) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
where2 := ""
|
|
|
|
|
if p.Type == 1 {
|
|
|
|
|
where2 = "publish_status = 1"
|
|
|
|
|
} else if p.Type == 2 {
|
|
|
|
|
where2 = "publish_status = 0"
|
|
|
|
|
if p.IsSale {
|
|
|
|
|
if p.Type == 1 {
|
|
|
|
|
where2 = "sale_publish = 1"
|
|
|
|
|
} else if p.Type == 2 {
|
|
|
|
|
where2 = "sale_publish = 0"
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if p.Type == 1 {
|
|
|
|
|
where2 = "publish_status = 1"
|
|
|
|
|
} else if p.Type == 2 {
|
|
|
|
|
where2 = "publish_status = 0"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
where3 := ""
|
|
|
|
|
if len(p.Sku) > 0 {
|
|
|
|
|
var skuInfo goods.Sku
|
|
|
|
|