作者 yangfu

机会审核修改

@@ -357,7 +357,9 @@ func ChanceApprove(header *protocol.RequestHeader, request *protocol.ChanceAppro @@ -357,7 +357,9 @@ func ChanceApprove(header *protocol.RequestHeader, request *protocol.ChanceAppro
357 mapProcess["EnableStatus"] = int8(1) 357 mapProcess["EnableStatus"] = int8(1)
358 mapChance["Type"] = request.Type 358 mapChance["Type"] = request.Type
359 mapChance["ReserveTypeId"] = request.ReserveTypeId 359 mapChance["ReserveTypeId"] = request.ReserveTypeId
360 - mapChance["SelfChecks"] = common.AssertJson(request.SelfChecks) 360 + if len(request.SelfChecks) > 0 {
  361 + mapChance["SelfChecks"] = common.AssertJson(request.SelfChecks)
  362 + }
361 } 363 }
362 } 364 }
363 log.Info(fmt.Sprintf("用户:%v 提交审核 机会编号:%v 审批流编号:%v 审批状态:%v", header.UserId, chance.Id, process.Id, request.ReviewStatus)) 365 log.Info(fmt.Sprintf("用户:%v 提交审核 机会编号:%v 审批流编号:%v 审批状态:%v", header.UserId, chance.Id, process.Id, request.ReviewStatus))