|
|
@@ -15,6 +15,14 @@ type EggEnergyCommunityDividendsDb struct { |
|
|
|
Db *xorm.Engine |
|
|
|
} |
|
|
|
|
|
|
|
func (e EggEnergyCommunityDividendsDb) EggEnergyCommunityDividendsInsertBySession(session *xorm.Session, eggEnergyCommunityDividends *model.EggEnergyCommunityDividends) (int, error) { |
|
|
|
_, err := session.InsertOne(eggEnergyCommunityDividends) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
return eggEnergyCommunityDividends.Id, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (e EggEnergyCommunityDividendsDb) EggEnergyCommunityDividendsFindAndCount(page, limit int, startAt, endAt string, startNums, endNums int64) ([]*model.EggEnergyCommunityDividends, int64, error) { |
|
|
|
var m []*model.EggEnergyCommunityDividends |
|
|
|
session := e.Db.Where("") |
|
|
|