Browse Source

服务奖

master
huangjiajun 4 months ago
parent
commit
ff74422d58
2 changed files with 10 additions and 2 deletions
  1. +2
    -1
      src/dao/service_award_dividend_relation_dao.go
  2. +8
    -1
      src/implement/service_award_dividend_relation_db.go

+ 2
- 1
src/dao/service_award_dividend_relation_dao.go View File

@@ -1,4 +1,4 @@
package dao
package dao

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/models"
@@ -6,6 +6,7 @@ import (
)

type ServiceAwardDividendRelationDao interface {
GetServiceAwardDividendRelationByUid(uid int) (m *models.ServiceAwardDividendRelation, err error)
InsertServiceAwardDividendRelationBySess(sees *xorm.Session, m *models.ServiceAwardDividendRelation) (id int, err error)
InsertServiceAwardDividendRelation(m *models.ServiceAwardDividendRelation) (id int, err error)
SaveServiceAwardDividendRelation(sees *xorm.Session, id interface{}, m *models.ServiceAwardDividendRelation, forceColums ...string) (affected int64, err error)


+ 8
- 1
src/implement/service_award_dividend_relation_db.go View File

@@ -1,4 +1,4 @@
package implement
package implement

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
@@ -40,3 +40,10 @@ func (s ServiceAwardDividendRelationDb) InsertServiceAwardDividendRelation(m *mo
id = m.Id
return id, nil
}
func (s ServiceAwardDividendRelationDb) GetServiceAwardDividendRelationByUid(uid int) (m *models.ServiceAwardDividendRelation, err error) {
_, err = s.Db.Where("uid=?", uid).Get(m)
if err != nil {
return nil, err
}
return m, nil
}

Loading…
Cancel
Save