Ver Fonte

转正清空旧的冻结时间

ziwen há 2 anos atrás
pai
commit
597e8482fc
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      models/company/company.go

+ 2 - 2
models/company/company.go

@@ -22,7 +22,7 @@ func TryOutToFormal(companyId, productId, sellerId, companyContractId int, start
 			tx.Commit()
 		}
 	}()
-	sql := `UPDATE company_product SET status='正式',try_out_time=NULL,last_description_time=NULL,freeze_reason='',renewal_intention=0,is_suspend=0,is_formal=1,start_date=?,end_date=?,package_type=?,modify_time=NOW(),formal_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
+	sql := `UPDATE company_product SET status='正式',try_out_time=NULL,last_description_time=NULL,freeze_time=NULL,renewal_intention=0,is_suspend=0,is_formal=1,start_date=?,end_date=?,package_type=?,modify_time=NOW(),formal_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
 	_, err = tx.Raw(sql, startDate, endDate, packageType, companyId, productId).Exec()
 	if err != nil {
 		return
@@ -219,7 +219,7 @@ func ApplyServiceUpdate(companyId, productId, sellerId, companyContractId int, s
 	//}
 
 	//更新客户产品信息
-	sql = `UPDATE company_product SET status='正式',try_out_time=NULL,last_description_time=NULL,freeze_reason='',is_formal=1,is_suspend=0,start_date=?,end_date=?,package_type=?,modify_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
+	sql = `UPDATE company_product SET status='正式',try_out_time=NULL,last_description_time=NULL,freeze_time=NULL,is_formal=1,is_suspend=0,start_date=?,end_date=?,package_type=?,modify_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
 	_, err = tx.Raw(sql, updateStartDateTime, updateEndDateTime, packageType, companyId, productId).Exec()
 	if err != nil {
 		return