|
@@ -55,7 +55,7 @@ func GetCygxCompanyUserTypeList() (items []*CygxCompanyUserType, err error) {
|
|
|
// CygxCompanyUserType 更新权益客户身份类型
|
|
|
func UpdateCygxCompanyUserTypeAndPackageType(companyId, useType, packageType int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
- sql := `UPDATE cygx_company_user_type SET customer_type_id=? AND package_type = ? WHERE company_id=? `
|
|
|
+ sql := `UPDATE cygx_company_user_type SET customer_type_id=?, package_type = ? WHERE company_id=? `
|
|
|
_, err = o.Raw(sql, useType, packageType, companyId).Exec()
|
|
|
return
|
|
|
}
|