Bladeren bron

服务奖

master
huangjiajun 3 maanden geleden
bovenliggende
commit
ff74422d58
2 gewijzigde bestanden met toevoegingen van 10 en 2 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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

Laden…
Annuleren
Opslaan