|
@@ -386,14 +386,11 @@ func UpdateCompanyContractTypeinit16_1_02(seller_name_init string, seller_id_ini
|
|
|
// 合同未生效更新对应销售的信息
|
|
|
func UpdateCompanyContractSellerNotEffective(sellerId, shareSellerInit int, sellerName, shareSeller string, companyContractId int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `UPDATE company_contract SET seller_id_init = ? ,
|
|
|
- seller_name_init = ? ,
|
|
|
- share_seller_init = ? ,
|
|
|
- share_seller_id_init = ? ,
|
|
|
- seller_id_last = ? ,
|
|
|
- seller_name_last = ? ,
|
|
|
- share_seller_last = ? ,
|
|
|
- share_seller_id_last = ? WHERE company_contract_id = ? AND product_id= 2 `
|
|
|
+ sql := `UPDATE company_contract SET seller_id_init = ? , seller_name_init = ? ,
|
|
|
+ share_seller_id_init = ? , share_seller_init = ? ,
|
|
|
+ seller_id_last = ? , seller_name_last = ? ,
|
|
|
+ share_seller_id_last = ? , share_seller_last= ?
|
|
|
+ WHERE company_contract_id = ? AND product_id= 2 `
|
|
|
_, err = o.Raw(sql, sellerId, sellerName, shareSellerInit, shareSeller, sellerId, sellerName, shareSellerInit, shareSeller, companyContractId).Exec()
|
|
|
return
|
|
|
}
|
|
@@ -404,8 +401,8 @@ func UpdateCompanyContractSellerUnexpired(sellerId, shareSellerInit int, sellerN
|
|
|
sql := `UPDATE company_contract SET
|
|
|
seller_id_last = ? ,
|
|
|
seller_name_last = ? ,
|
|
|
- share_seller_last = ? ,
|
|
|
- share_seller_id_last = ? WHERE company_contract_id = ? AND product_id= 2 `
|
|
|
+ share_seller_id_last = ? ,
|
|
|
+ share_seller_last= ? WHERE company_contract_id = ? AND product_id= 2 `
|
|
|
_, err = o.Raw(sql, sellerId, sellerName, shareSellerInit, shareSeller, companyContractId).Exec()
|
|
|
return
|
|
|
}
|