From d4bf53dd19a45ef09a367babcf7a2ac04ae1d08f Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 17 十月 2023 14:31:31 +0800 Subject: [PATCH] bug修改 --- api/v1/serviceOrder.go | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/api/v1/serviceOrder.go b/api/v1/serviceOrder.go index aef80c2..faef2d6 100644 --- a/api/v1/serviceOrder.go +++ b/api/v1/serviceOrder.go @@ -30,6 +30,12 @@ return } + if params.ServiceManId == 0 { + userInfo := utils.GetUserInfo(c) + if userInfo.UserType == constvar.UserTypeSub { + params.ServiceManId = userInfo.CrmUserId + } + } serviceOrder := new(model.ServiceOrder) if err := structx.AssignTo(params, serviceOrder); err != nil { ctx.Fail(ecode.ParamsErr) -- Gitblit v1.8.0