ソースを参照

服务奖

master
huangjiajun 3ヶ月前
コミット
ff74422d58
2個のファイルの変更10行の追加2行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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
}

読み込み中…
キャンセル
保存