@@ -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) {
@@ -14,6 +14,7 @@ type CompanyProductUpdateLog struct {
SellerId int `description:"销售id"`
SellerName string `description:"销售名称"`
Source string `description:"来源"`
CreateTime time.Time `description:"创建时间"`
@@ -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)