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