Browse Source

后台调整

master
huangjiajun 8 months ago
parent
commit
abb171b785
1 changed files with 5 additions and 1 deletions
  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 View 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 {


Loading…
Cancel
Save