|
@@ -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
|
|
|
}
|