...
|
...
|
@@ -418,6 +418,12 @@ func UpdateBulletin(companyId int64, request *protocol.UpdateBulletinRequest) (r |
|
|
}
|
|
|
if err == orm2.ErrNoRows {
|
|
|
//添加
|
|
|
questionContent, err = json.Marshal(request.Question.Content)
|
|
|
if err != nil {
|
|
|
orm.Rollback()
|
|
|
log.Error("格式化问题失败:%s", err)
|
|
|
return
|
|
|
}
|
|
|
bulletinQuestion = &models.BulletinQuestion{
|
|
|
BulletinId: bulletin.Id,
|
|
|
Type: int8(request.Question.Type),
|
...
|
...
|
|