|
@@ -101,7 +101,7 @@ func AddProject(this *biservice.AddProjectReq, addCountLimit int) *biservice.Add
|
|
func MyDataAsset(this *biservice.MyDataAssetReq) *biservice.MyDataAssetResp {
|
|
func MyDataAsset(this *biservice.MyDataAssetReq) *biservice.MyDataAssetResp {
|
|
collectInfoCount, followProjectCount, collectDocCount, claimCustomerCount, claimNzjCount := int64(0), int64(0), int64(0), int64(0), int64(0)
|
|
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)
|
|
collectInfoCount = JyMysql.CountBySql(`select count(1) from bdcollection where 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}))
|
|
|
|
|
|
+ followProjectCount = JyTidb.CountBySql(`select count(1) from follow_project_monitor where s_userid=?`, this.UserId)
|
|
claimCustomerCount = JyMysql.CountBySql(`select count(1) from entniche_user_customer where user_id=? and source=1`, this.EntUserId)
|
|
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)
|
|
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)
|
|
claimNzjCount = JyBiMysql.CountBySql(`select count(1) from dwd_f_user_claim where user_id=? and status=0 and source_type=1`, this.NewUserId)
|