|
@@ -22,7 +22,7 @@ func TryOutToFormal(companyId, productId, sellerId, companyContractId int, start
|
|
|
tx.Commit()
|
|
|
}
|
|
|
}()
|
|
|
- sql := `UPDATE company_product SET status='正式',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_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=? `
|
|
|
_, 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='正式',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_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=? `
|
|
|
_, err = tx.Raw(sql, updateStartDateTime, updateEndDateTime, packageType, companyId, productId).Exec()
|
|
|
if err != nil {
|
|
|
return
|