...
|
...
|
@@ -557,6 +557,7 @@ func setChanceAutoPass(header *protocol.RequestHeader, chance *models.Chance, or |
|
|
chance.ApproveTime = time.Now()
|
|
|
chance.ReviewStatus = protocol.ReviewStatusPass
|
|
|
chance.PublishStatus = protocol.PublicToCompany
|
|
|
chance.Code, _ = agg.GetChanceCode(chance.Id, chance.ChanceTypeId, chance.AuditTemplateId)
|
|
|
msgData := protocol.MsgData{Score: &approveData.Score}
|
|
|
//发送给机会提交人
|
|
|
if err = agg.SendApproveMsgByFormat(header, chance.UserId, chance.Id, fmt.Sprintf(agg.MessageApproveAutoPass, chanceType.Name), msgData); err != nil {
|
...
|
...
|
@@ -769,7 +770,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate |
|
|
go agg.BulkInsertSelfChecks(header, chance.Id, chance.Id, request.SelfChecks, true, protocol.TypeSubmit)
|
|
|
}
|
|
|
updateMap["AuditTemplateConfig"] = common.AssertJson(auditConfig)
|
|
|
updateMap["Content"] = request.Content
|
|
|
//updateMap["Content"] = request.Content
|
|
|
updateMap["SourceContent"] = common.AssertJson(request.FormList)
|
|
|
updateMap["UpdateAt"] = time.Now()
|
|
|
|
...
|
...
|
|