zhangqian
2023-10-17 b45b8ce8051e2ad9c80aafa42d1a5892f6a36bce
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)