소스 검색

fix:新增是否转正式字段

Roc 3 년 전
부모
커밋
615256ea52
3개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      models/company_product.go
  2. 1 0
      models/company_product_update_log.go
  3. 1 0
      services/company_contract/company_contract.go

+ 1 - 0
models/company_product.go

@@ -170,6 +170,7 @@ type CompanyProduct struct {
 	CompanyType      string    `description:"客户类型"`
 	OpenCode         string    `description:"开放给第三方的编码,不让第三方定位我们的客户信息"`
 	PackageType      int       `description:"套餐类型,0:无,1:大套餐,2:小套餐"`
+	IsFormal         int       `description:"是否已经转正式,0是没有转正式,1是已经转过正式"`
 }
 
 //获取产品详情

+ 1 - 0
models/company_product_update_log.go

@@ -13,6 +13,7 @@ type CompanyProductUpdateLog struct {
 	Status     string    `description:"变更后的状态"`
 	SellerId   int       `description:"销售id"`
 	SellerName string    `description:"销售名称"`
+	IsFormal   int       `description:"是否已经转正式,0是没有转正式,1是已经转过正式"`
 	Source     string    `description:"来源"`
 	CreateTime time.Time `description:"创建时间"`
 }

+ 1 - 0
services/company_contract/company_contract.go

@@ -107,6 +107,7 @@ func HandleCompanyContract(cont context.Context) (err error) {
 				SellerId:   companyProduct.SellerId,
 				SellerName: companyProduct.SellerName,
 				Source:     updateSource,
+				IsFormal:   companyProduct.IsFormal, //是否已经转正式,0是没有转正式,1是已经转过正式
 				CreateTime: time.Now(),
 			}
 			go models.AddCompanyProductUpdateLog(companyProductUpdateLog)