dengbiao 3 月之前
父節點
當前提交
5babace616
共有 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
}

Loading…
取消
儲存