fix: sale_publish

master
howell 3 years ago
parent 52e10035a8
commit 9911ad9765

@ -127,11 +127,20 @@ func QueryGoodsList(c *gin.Context) {
}
where2 := ""
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

Loading…
Cancel
Save