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