Sfoglia il codice sorgente

后台调整

master
huangjiajun 7 mesi fa
parent
commit
abb171b785
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. +5
    -1
      app/admin/svc/goods/svc_goods_list_by_pay.go

+ 5
- 1
app/admin/svc/goods/svc_goods_list_by_pay.go Vedi File

@@ -16,7 +16,11 @@ func GetSkuScheme(engine *xorm.Engine, EnterpriseId string, gids []string) map[i
var enterpriseScheme model.SchemeWithEnterprise
engine.Where("enterprise_id=?", EnterpriseId).Get(&enterpriseScheme)
if enterpriseScheme.SchemeId > 0 {

var scheme model.Scheme
engine.Where("id=?", enterpriseScheme.SchemeId).Get(&scheme)
if scheme.State != 1 {
return skuSchemeMap
}
var skuScheme []model.SchemeWithSku
engine.In("goods_id", gids).And("scheme_id=?", enterpriseScheme.SchemeId).Find(&skuScheme)
for _, v := range skuScheme {


Caricamento…
Annulla
Salva