作者 yangfu

机会修改

... ... @@ -69,7 +69,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc
incre int = 1
table string = "comment"
message string = protocol.MessageZanComment
sourceId int64
//sourceId int64
userId int64
)
rsp = &protocol.SympathyActionResponse{}
... ... @@ -89,7 +89,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc
// err = protocol.NewErrWithMessage(5101)
// return
//}
sourceId = chance.Id
//sourceId = chance.Id
userId = chance.UserId
chanceType = chance.ChanceTypeId
table = "chance"
... ... @@ -99,7 +99,7 @@ func SympathyAction(header *protocol.RequestHeader, request *protocol.SympathyAc
err = protocol.NewErrWithMessage(5601)
return
}
sourceId = comment.Id
//sourceId = comment.Id
userId = comment.UserId
} else {
log.Error(request.SourceType, "type error")
... ... @@ -164,7 +164,7 @@ END:
if request.SympathyType == protocol.UnMarkFlag {
incre = -1
//删除点赞消息
agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp)
//agg.DeleteSendedMsg(sourceId, request.SourceType, userId, protocol.MsgTypeThumbUp)
} else {
//发送点赞消息
if header.UserId != userId {
... ... @@ -527,7 +527,9 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceUpdate
//}
if _, e := models.GetAuditFlowProcessByReview(request.Id, 0, protocol.ReviewStatusWait); e == nil {
request.IsPublish = true
if request.RelatedDepartment > 0 {
updateMap["DepartmentId"] = request.RelatedDepartment
}
//log.Info(fmt.Sprintf("机会编辑 is_publish:%v chance.review_status:%v 是否是本人:%v",request.IsPublish,chance.ReviewStatus,chance.UserId==header.UserId))
} else {
log.Info(fmt.Sprintf("机会编辑 chance_id:%v chance.review_status:%v 无待处理 审核数据", request.Id, chance.ReviewStatus))
... ...