|
|
@ -308,11 +308,11 @@ func (impl *ArticleAtcodLstDAOImplement) UpdateWhere(predicates []grmi.Predicate |
|
|
|
* @Reference LAPP_ACURA_MOM_BACKEND/dao/base/ArticleAtcodLstDAO.SelectAllot |
|
|
|
* |
|
|
|
******************************************************************************/ |
|
|
|
func (impl *ArticleAtcodLstDAOImplement) SelectAllot(artId string) ([]model.Attribute, error) { |
|
|
|
func (impl *ArticleAtcodLstDAOImplement) SelectAllot(artId string, projectId string) ([]model.Attribute, error) { |
|
|
|
|
|
|
|
data := make([]model.ArtData, 0) |
|
|
|
datalist := make([]model.Attribute, 0) |
|
|
|
session := impl.session.Table(meta.Attribute.TableName).Join("LEFT", meta.ArticleAtcodLst.TableName, "ArticleAtcodLst.PlantNr = Attribute.PlantNr and ArticleAtcodLst.AttrCode = Attribute.AttrCode").Where("ArticleAtcodLst.PlantNr = ? and ArticleAtcodLst.ArtId = ?", impl.plantNr, artId) |
|
|
|
session := impl.session.Table(meta.Attribute.TableName).Join("LEFT", meta.ArticleAtcodLst.TableName, "ArticleAtcodLst.PlantNr = Attribute.PlantNr and ArticleAtcodLst.AttrCode = Attribute.AttrCode").Where("ArticleAtcodLst.PlantNr = ? and ArticleAtcodLst.ArtId = ? and ArticleAtcodLst.ProjectId = ?", impl.plantNr, artId, projectId) |
|
|
|
|
|
|
|
err := session.Find(&data) |
|
|
|
for _, v := range data { |
|
|
|