|
@ -309,7 +309,7 @@ func (impl *AttributeGroupValstDAOImplement) UpdateWhere(predicates []grmi.Predi |
|
|
func (impl *AttributeGroupValstDAOImplement) SelectAllot(attrGrpCode int) ([]model.Attribute, error) { |
|
|
func (impl *AttributeGroupValstDAOImplement) SelectAllot(attrGrpCode int) ([]model.Attribute, error) { |
|
|
|
|
|
|
|
|
data := make([]model.Attribute, 0) |
|
|
data := make([]model.Attribute, 0) |
|
|
session := impl.session.Table(meta.Attribute.TableName).Join("LEFT",meta.AttributeGroupValst.TableName,"AttributeGroupValst.AttrCode = Attribute.AttrCode").Where("Attribute.PlantNr = ? and AttributeGroupValst.AttrCode = ?", impl.plantNr, attrGrpCode) |
|
|
|
|
|
|
|
|
session := impl.session.Table(meta.Attribute.TableName).Join("LEFT",meta.AttributeGroupValst.TableName,"AttributeGroupValst.PlantNr = Attribute.PlantNr and AttributeGroupValst.AttrCode = Attribute.AttrCode").Where("AttributeGroupValst.PlantNr = ? and AttributeGroupValst.AttrGrpCode = ?", impl.plantNr, attrGrpCode) |
|
|
|
|
|
|
|
|
err := session.Find(&data) |
|
|
err := session.Find(&data) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|