Browse Source

no message

zhangchuanxing 1 month ago
parent
commit
42f0ae81f6
1 changed files with 4 additions and 4 deletions
  1. 4 4
      models/company/company_product.go

+ 4 - 4
models/company/company_product.go

@@ -713,13 +713,13 @@ func UpdateCompanyProductsellerInit(seller_id_init int, seller_name_init string,
 }
 
 // 合同未到期更新对应销售的信息
-func UpdateCompanyProductSellerUnexpired(sellerId, shareSellerInit int, sellerName, shareSeller string, companyContractId int) (err error) {
+func UpdateCompanyProductSellerUnexpired(sellerId, shareSellerInit int, sellerName, shareSeller string, companyId int) (err error) {
 	o := orm.NewOrm()
 	sql := `UPDATE company_product SET
                             seller_id_last = ? , 
                             seller_name_last = ? , 
-                            share_seller_last = ? , 
-                            share_seller_id_last = ?  WHERE company_id = ?  AND product_id= 2 `
-	_, err = o.Raw(sql, sellerId, sellerName, shareSellerInit, shareSeller, companyContractId).Exec()
+                            share_seller_id_last  = ? , 
+                            share_seller_last = ?  WHERE company_id = ?  AND product_id= 2 `
+	_, err = o.Raw(sql, sellerId, sellerName, shareSellerInit, shareSeller, companyId).Exec()
 	return
 }