...
|
...
|
@@ -704,7 +704,6 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate |
|
|
updateMap["DiscoveryScore"] = chance.DiscoveryScore
|
|
|
}
|
|
|
}
|
|
|
go agg.BulkInsertSelfChecks(header, chance.Id, chance.Id, request.SelfChecks, true, protocol.TypeSubmit)
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -712,7 +711,12 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate |
|
|
//机会发布 并且当前机会不是已经通过的,机会状态审核中(存在更新时自动通过)
|
|
|
if request.IsPublish && chance.ReviewStatus != protocol.ReviewStatusPass {
|
|
|
updateMap["ReviewStatus"] = int8(protocol.ReviewStatusAuditging)
|
|
|
|
|
|
}
|
|
|
//本人可以重新编辑
|
|
|
if len(request.SelfChecks) > 0 && header.UserId == chance.UserId && chance.ReviewStatus != protocol.ReviewStatusPass {
|
|
|
updateMap["SelfChecks"] = common.AssertJson(request.SelfChecks)
|
|
|
go agg.BulkInsertSelfChecks(header, chance.Id, chance.Id, request.SelfChecks, true, protocol.TypeSubmit)
|
|
|
}
|
|
|
updateMap["AuditTemplateConfig"] = common.AssertJson(auditConfig)
|
|
|
updateMap["Content"] = request.Content
|
...
|
...
|
@@ -2340,7 +2344,7 @@ func ChanceReviseDetail(header *protocol.RequestHeader, request *protocol.Chance |
|
|
func CheckQuestions(header *protocol.RequestHeader, request *protocol.CheckQuestionsRequest) (rsp *protocol.CheckQuestionsResponse, err error) {
|
|
|
var ()
|
|
|
rsp = &protocol.CheckQuestionsResponse{}
|
|
|
rsp.Questions, err = agg.GetCheckQuestionsByChanceId(request.ChanceId)
|
|
|
rsp.Questions, err = agg.GetCheckQuestionsByChanceId(header, request.ChanceId)
|
|
|
if err != nil {
|
|
|
log.Error(err)
|
|
|
}
|
...
|
...
|
|