|
@@ -51,7 +51,7 @@ func CompanyFreeze(companyId, productId int) (err error) {
|
|
|
|
|
|
func CompanyLoss(companyId, productId int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `UPDATE company_product SET status='流失',loss_time=NOW(),modify_time=NOW(),lose_reason=‘冻结到期系统自动流失’ WHERE company_id=? AND product_id=? `
|
|
|
+ sql := `UPDATE company_product SET status='流失',loss_time=NOW(),modify_time=NOW(),lose_reason='冻结到期系统自动流失' WHERE company_id=? AND product_id=? `
|
|
|
_, err = o.Raw(sql, companyId, productId).Exec()
|
|
|
if err != nil {
|
|
|
return err
|