Browse Source

Merge remote-tracking branch 'origin/master'

master
huangjiajun 1 month ago
parent
commit
8521ffcf10
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/super/implement/medium_settlement_implement.go
  2. +1
    -1
      src/super/implement/medium_settlement_with_flow_implement.go

+ 1
- 1
src/super/implement/medium_settlement_implement.go View File

@@ -17,7 +17,7 @@ type MediumSettlementDb struct {
} }


func (m MediumSettlementDb) UpdateMediumSettlementBySession(session *xorm.Session, mediumSettlement *model.MediumSettlement, columns ...string) (int64, error) { func (m MediumSettlementDb) UpdateMediumSettlementBySession(session *xorm.Session, mediumSettlement *model.MediumSettlement, columns ...string) (int64, error) {
affected, err := session.Where("id =?", mediumSettlement.Id).Cols(columns...).Update(m)
affected, err := session.Where("id =?", mediumSettlement.Id).Cols(columns...).Update(mediumSettlement)
if err != nil { if err != nil {
return 0, err return 0, err
} }


+ 1
- 1
src/super/implement/medium_settlement_with_flow_implement.go View File

@@ -15,7 +15,7 @@ type MediumSettlementWithFlowDb struct {
} }


func (m MediumSettlementWithFlowDb) MediumSettlementWithFlowInsertBySession(session *xorm.Session, mediumSettlementWithFlow *model.MediumSettlementWithFlow) (int64, error) { func (m MediumSettlementWithFlowDb) MediumSettlementWithFlowInsertBySession(session *xorm.Session, mediumSettlementWithFlow *model.MediumSettlementWithFlow) (int64, error) {
insertAffected, err := session.InsertOne(m)
insertAffected, err := session.InsertOne(mediumSettlementWithFlow)
if err != nil { if err != nil {
return 0, err return 0, err
} }


Loading…
Cancel
Save