fix
zhangqian
2023-10-13 2b3a8140d6ca91cfb9f5aefcb6db067a8284215c
api/v1/quotation.go
@@ -1,11 +1,13 @@
package v1
import (
   "aps_crm/constvar"
   "aps_crm/model"
   "aps_crm/model/request"
   "aps_crm/model/response"
   "aps_crm/pkg/contextx"
   "aps_crm/pkg/ecode"
   "aps_crm/utils"
   "github.com/gin-gonic/gin"
)
@@ -149,6 +151,7 @@
   quotationModel.File = quotation.File
   quotationModel.Products = quotation.Products
   quotationModel.CodeStandID = quotation.CodeStandID
   quotationModel.QuotationName = quotation.QuotationName
   return ecode.OK, quotationModel
@@ -169,6 +172,14 @@
      return
   }
   userInfo := utils.GetUserInfo(c)
   if userInfo.UserType == constvar.UserTypeSub {
      if params.SearchMap == nil {
         params.SearchMap = make(map[string]interface{}, 0)
      }
      params.SearchMap["member_id"] = userInfo.CrmUserId
   }
   quotations, total, errCode := quotationService.GetQuotationList(params.Page, params.PageSize, params.SearchMap)
   if errCode != ecode.OK {
      ctx.Fail(errCode)