err=dbc.DB.Table((&goods.Category{}).TableName()).Order("location asc").Find(&categories[i].Sub,"parent_id=? AND depth=2",categories[i].ID).Error
err=dbc.DB.Table((&goods.Category{}).TableName()).Order("location asc").Find(&categories[i].Sub,"parent_id=? AND depth=2 AND `show`=1",categories[i].ID).Error