Преглед на файлове

pasture: 集团账号下发

Yi преди 1 година
родител
ревизия
744a932c00
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      models/pasture.go

+ 1 - 1
models/pasture.go

@@ -21,7 +21,7 @@ func (p *Pasture) TableName() string {
 func NewPasture(pastureId int64, pastureName, address, managerUser, phone string) *Pasture {
 	return &Pasture{
 		PastureId:   pastureId,
-		PastureCode: "",
+		PastureCode: pastureName,
 		PastureName: pastureName,
 		GroupsId:    0,
 		User:        managerUser,