|
@@ -206,9 +206,9 @@ func GetIndustrialManagementCount(IndustrialManagementId int) (count int, err er
|
|
|
}
|
|
|
|
|
|
//获取关注数量
|
|
|
-func GetCountCygxIndustryFllow(industrialManagementId int, mobile, condition string) (count int, err error) {
|
|
|
- sql := `SELECT COUNT(1) AS count FROM cygx_industry_fllow WHERE mobile=? AND industrial_management_id=? ` + condition
|
|
|
- err = orm.NewOrm().Raw(sql, mobile, industrialManagementId).QueryRow(&count)
|
|
|
+func GetCountCygxIndustryFllow(industrialManagementId, userId int, condition string) (count int, err error) {
|
|
|
+ sql := `SELECT COUNT(1) AS count FROM cygx_industry_fllow WHERE user_id=? AND industrial_management_id=? ` + condition
|
|
|
+ err = orm.NewOrm().Raw(sql, userId, industrialManagementId).QueryRow(&count)
|
|
|
return
|
|
|
}
|
|
|
|