|
@@ -118,7 +118,7 @@ type AnalysisEntity struct {
|
|
|
State int // 状态:默认0:生成中;1:已生成;2:已取消;-1:生成失败
|
|
|
MgoUserId string
|
|
|
Phone string // 手机号
|
|
|
- PositionId int
|
|
|
+ PositionId int64
|
|
|
OriginalTotal int64 // 数据总数
|
|
|
KeysTotal int64 //关键词数量
|
|
|
PositionType int
|
|
@@ -791,10 +791,12 @@ func (a *AnalysisEntity) IsOffline() (offline bool) {
|
|
|
if mac := a.getMarUserAccount(); mac != nil {
|
|
|
if keyCount >= mac.Threshold {
|
|
|
a.Offline = ValueOffline
|
|
|
+ a.KeysTotal = int64(keyCount)
|
|
|
return true
|
|
|
}
|
|
|
} else {
|
|
|
a.Offline = ValueOffline
|
|
|
+ a.KeysTotal = int64(keyCount)
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
@@ -812,7 +814,6 @@ func (a *AnalysisEntity) IsOffline() (offline bool) {
|
|
|
a.Offline = ValueOffline
|
|
|
return true
|
|
|
}
|
|
|
- a.KeysTotal = int64(keyCount)
|
|
|
a.Offline = ValueRealTime
|
|
|
return false
|
|
|
}
|