Browse Source

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_mobile_admin into debug

xingzai 7 months ago
parent
commit
71318c65aa
1 changed files with 6 additions and 6 deletions
  1. 6 6
      models/tables/company_approval/company_approval.go

+ 6 - 6
models/tables/company_approval/company_approval.go

@@ -411,17 +411,17 @@ func FreezeToTryOut(companyId, productId, sellerId, companyApprovalId, applyUser
 	startDate = time.Now().Format(utils.FormatDate)
 	endDate = time.Now().AddDate(0, 2, 0).Format(utils.FormatDate)
 
-	sellerItem, err := admin.GetAdminById(applyUserId)
+	//sellerItem, err := admin.GetAdminById(applyUserId)
 
-	if err != nil {
-		return
-	}
+	//if err != nil {
+	//	return
+	//}
 
 	//更新用户产品状态
 	//6.9 fix 未续约强制弹窗要求客户冻结转试用后不弹床,取消清空冻结时间以标记曾经被冻结过
 	sql := `UPDATE company_product SET status='试用',approve_status='已审批',freeze_start_date=null,freeze_end_date=null,
-            start_date=?,end_date=?,seller_id=?,seller_name=?,group_id=?,department_id=?,modify_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
-	_, err = tx.Raw(sql, startDate, endDate, sellerItem.AdminId, sellerItem.RealName, sellerItem.GroupId, sellerItem.DepartmentId, companyId, productId).Exec()
+            start_date=?,end_date=?,modify_time=NOW(),try_stage=1 WHERE company_id=? AND product_id=? `
+	_, err = tx.Raw(sql, startDate, endDate, companyId, productId).Exec()
 	if err != nil {
 		return
 	}