فهرست منبع

修改关注项目数量

xuzhiheng 2 سال پیش
والد
کامیت
bac0d73524
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      service/yearEndReport.go

+ 1 - 1
service/yearEndReport.go

@@ -101,7 +101,7 @@ func AddProject(this *biservice.AddProjectReq, addCountLimit int) *biservice.Add
 func MyDataAsset(this *biservice.MyDataAssetReq) *biservice.MyDataAssetResp {
 	collectInfoCount, followProjectCount, collectDocCount, claimCustomerCount, claimNzjCount := int64(0), int64(0), int64(0), int64(0), int64(0)
 	collectInfoCount = JyMysql.CountBySql(`select count(1) from bdcollection where userid=?`, this.UserId)
-	followProjectCount = int64(Mgo.Count("follow_customer", map[string]interface{}{"userId": this.UserId}))
+	followProjectCount = int64(Mgo.Count("follow_project", map[string]interface{}{"s_userid": this.UserId})) + int64(Mgo.Count("follow_project_bigvip", map[string]interface{}{"s_userid": this.UserId}))
 	claimCustomerCount = JyMysql.CountBySql(`select count(1) from entniche_user_customer where user_id=? and source=1`, this.EntUserId)
 	collectDocCount = JyDocMysql.CountBySql(`select count(1) from user_doc where userId=? and docCategory=2 and isDelete=0`, this.UserId)
 	claimNzjCount = JyBiMysql.CountBySql(`select count(1) from dwd_f_user_claim where user_id=? and status=0 and source_type=1`, this.NewUserId)