作者 yangfu

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

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