Browse Source

fix:新增是否转正式字段

Roc 2 years ago
parent
commit
972552143c

+ 1 - 0
models/tables/company_product/company_product.go

@@ -34,6 +34,7 @@ type CompanyProduct struct {
 	LossTime         time.Time `description:"流失时间"`
 	CompanyType      string    `description:"客户类型"`
 	PackageType      int       `description:"套餐类型,0:无,1:大套餐,2:小套餐"`
+	IsFormal         int       `description:"是否已经转正式,0是没有转正式,1是已经转过正式"`
 }
 
 func GetCompanyProductByCompanyIdAndProductId(companyId, productId int) (item *CompanyProduct, err error) {

+ 1 - 0
models/tables/company_product_update_log/company_product_update_log.go

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

+ 1 - 0
services/company_approval/company_approval.go

@@ -808,6 +808,7 @@ func afterApproved(companyApprovalId int, opUserId int, opUserName string) (err
 			SellerId:   logSellerId,
 			SellerName: logSellerName,
 			Source:     updateSource,
+			IsFormal:   companyProduct.IsFormal, //是否已经转正式,0是没有转正式,1是已经转过正式
 			CreateTime: time.Now(),
 		}
 		go company_product_update_log.AddCompanyProductUpdateLog(companyProductUpdateLog)