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
}

불러오는 중...
취소
저장