正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论