Browse Source

no message

xingzai 7 tháng trước cách đây
mục cha
commit
15758a5b6d

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

@@ -14,6 +14,7 @@ type CompanyProduct struct {
 	Source           string    `description:"来源"`
 	Reasons          string    `description:"新增理由"`
 	Status           string    `description:"客户状态"`
+	InitStatus       string    `description:"客户初始化状态(目前用来处理权益的永续客户使用)"`
 	IndustryId       int       `description:"行业id"`
 	IndustryName     string    `description:"行业名称"`
 	SellerId         int       `description:"销售id"`

+ 1 - 1
services/company_approval/company_approval.go

@@ -851,7 +851,7 @@ func afterApproved(companyApprovalId int, opUserId int, opUserName string) (err
 		remark := "审批"
 		operation := "approve"
 		approveContent := "审批通过"
-		if companyProduct.Status == utils.COMPANY_STATUS_FOREVER && companyProduct.ProductId == 2 { //权益永续客户申请内容做变更
+		if companyProduct.Status == utils.COMPANY_STATUS_FOREVER && companyProduct.InitStatus == utils.COMPANY_STATUS_FOREVER && companyProduct.ProductId == 2 { //权益永续客户申请内容做变更
 			//123月份申请转正通过时,将试用期限延长(更新)至4.30。456月份申请转正通过时,将试用期限延长至7.31。789月份申请转正通过时,将试用期限延长至10.31。101112月份申请转正通过时,将试用期限延长至次年1.31。
 			endDateContent := utils.GetLastDayOfQuarter(time.Now()).Format(utils.FormatDate)
 			approveContent += ",试用延期至" + endDateContent