|
|
@@ -67,8 +67,7 @@ func GetProductAttrConfig(productId int64) (pa *ProductAttrConfig) {
|
|
|
func GetProductConfigAttrsByPId(pId int64) (items []*ProductAttrConfig) {
|
|
|
o := orm.NewOrm()
|
|
|
item := new(ProductAttrConfig)
|
|
|
- _, err := o.QueryTable(item).Filter("product_id", pId).Filter("status", 1).
|
|
|
- All(&items)
|
|
|
+ _, err := o.QueryTable(item).Filter("product_id", pId).All(&items)
|
|
|
if err != nil {
|
|
|
beego.BeeLogger.Error("GetProductAttrs(%d) err=%s", pId, err)
|
|
|
}
|