Browse Source

pasture: 集团账号下发

Yi 1 năm trước cách đây
mục cha
commit
6a4c22d011
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      module/group.go

+ 1 - 1
module/group.go

@@ -175,7 +175,7 @@ func AccountDistribution(req *models.AccountDistributionRequest) error {
 	}
 
 	pastureData := &models.Pasture{}
-	if err = session.Table(new(models.Pasture).TableName()).Where("pastureid = ?", req.PastureId).Find(pastureData); err != nil {
+	if _, err = session.Table(new(models.Pasture).TableName()).Where("pastureid = ?", req.PastureId).Get(pastureData); err != nil {
 		return err
 	}