Преглед изворни кода

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,