|
@@ -41,6 +41,7 @@ func (s ServiceAwardDividendRelationDb) InsertServiceAwardDividendRelation(m *mo |
|
|
return id, nil |
|
|
return id, nil |
|
|
} |
|
|
} |
|
|
func (s ServiceAwardDividendRelationDb) GetServiceAwardDividendRelationByUid(uid int) (m *models.ServiceAwardDividendRelation, err error) { |
|
|
func (s ServiceAwardDividendRelationDb) GetServiceAwardDividendRelationByUid(uid int) (m *models.ServiceAwardDividendRelation, err error) { |
|
|
|
|
|
m = new(models.ServiceAwardDividendRelation) |
|
|
_, err = s.Db.Where("uid=?", uid).Get(m) |
|
|
_, err = s.Db.Where("uid=?", uid).Get(m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, err |
|
|
return nil, err |
|
|