作者 yangfu

公告直接发布,发布给所有人

@@ -338,7 +338,11 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r @@ -338,7 +338,11 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r
338 bulletin.QuestionSwitch = int8(request.QuestionSwitch) 338 bulletin.QuestionSwitch = int8(request.QuestionSwitch)
339 //bulletin.AllowCondition = int8(request.AllowCondition) 339 //bulletin.AllowCondition = int8(request.AllowCondition)
340 bulletin.AllowClose = int8(request.AllowClose) 340 bulletin.AllowClose = int8(request.AllowClose)
  341 + bulletin.AllPeople = request.AllPeo
341 bulletin.UpdateAt = time.Now() 342 bulletin.UpdateAt = time.Now()
  343 + if request.IsPublish == 1 && bulletin.Status == protocol.BulletinUnRelease {
  344 + bulletin.Status = protocol.BulletinRelease
  345 + }
342 if err = models.UpdateBulletinById(bulletin); err != nil { 346 if err = models.UpdateBulletinById(bulletin); err != nil {
343 log.Error(err.Error()) 347 log.Error(err.Error())
344 return 348 return