|
@@ -142,19 +142,25 @@ func (this *EntPortrait) WinnerNewMsg() {
|
|
//}
|
|
//}
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
-
|
|
|
|
|
|
+ screen := &entity.PortraitScreen{
|
|
|
|
+ Ent: entId,
|
|
|
|
+ Match: this.GetString("match"),
|
|
|
|
+ ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
+ MatchRange: this.GetString("matchRange"),
|
|
|
|
+ Area: this.GetString("area"),
|
|
|
|
+ ScopeClass: this.GetString("scopeClass"),
|
|
|
|
+ TimeRange: this.GetString("timeRange"),
|
|
|
|
+ HasPower: hasPower,
|
|
|
|
+ BuyerClass: this.GetString("buyerClass"),
|
|
|
|
+ }
|
|
|
|
+ if screen.ScopeClass != "" {
|
|
|
|
+ //P510 行业:其它
|
|
|
|
+ if qt := jy.IndustryHandle(screen.ScopeClass); len(qt) > 0 {
|
|
|
|
+ screen.ScopeClass = fmt.Sprintf("%s,%s", screen.ScopeClass, strings.Join(qt, ","))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
rData, total, updateTime, err := cepm.GetWinnerNewMsg(&entity.PortraitProjectScreen{
|
|
rData, total, updateTime, err := cepm.GetWinnerNewMsg(&entity.PortraitProjectScreen{
|
|
- Screen: &entity.PortraitScreen{
|
|
|
|
- Ent: entId,
|
|
|
|
- Match: this.GetString("match"),
|
|
|
|
- ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
- MatchRange: this.GetString("matchRange"),
|
|
|
|
- Area: this.GetString("area"),
|
|
|
|
- ScopeClass: this.GetString("scopeClass"),
|
|
|
|
- TimeRange: this.GetString("timeRange"),
|
|
|
|
- HasPower: hasPower,
|
|
|
|
- BuyerClass: this.GetString("buyerClass"),
|
|
|
|
- },
|
|
|
|
|
|
+ Screen: screen,
|
|
PageNum: pageNum,
|
|
PageNum: pageNum,
|
|
PageSize: pageSize,
|
|
PageSize: pageSize,
|
|
})
|
|
})
|
|
@@ -185,20 +191,26 @@ func (this *EntPortrait) WinnerNewMsgExport() {
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ screen := &entity.PortraitScreen{
|
|
|
|
+ Ent: entId,
|
|
|
|
+ Match: this.GetString("match"),
|
|
|
|
+ ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
+ MatchRange: this.GetString("matchRange"),
|
|
|
|
+ Area: this.GetString("area"),
|
|
|
|
+ ScopeClass: this.GetString("scopeClass"),
|
|
|
|
+ TimeRange: this.GetString("timeRange"),
|
|
|
|
+ HasPower: hasPower,
|
|
|
|
+ BuyerClass: this.GetString("buyerClass"),
|
|
|
|
+ }
|
|
|
|
+ if screen.ScopeClass != "" {
|
|
|
|
+ //P510 行业:其它
|
|
|
|
+ if qt := jy.IndustryHandle(screen.ScopeClass); len(qt) > 0 {
|
|
|
|
+ screen.ScopeClass = fmt.Sprintf("%s,%s", screen.ScopeClass, strings.Join(qt, ","))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//查询数据导出数据id列
|
|
//查询数据导出数据id列
|
|
pps := &entity.PortraitProjectScreen{
|
|
pps := &entity.PortraitProjectScreen{
|
|
- Screen: &entity.PortraitScreen{
|
|
|
|
- Ent: entId,
|
|
|
|
- Match: this.GetString("match"),
|
|
|
|
- ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
- MatchRange: this.GetString("matchRange"),
|
|
|
|
- Area: this.GetString("area"),
|
|
|
|
- ScopeClass: this.GetString("scopeClass"),
|
|
|
|
- TimeRange: this.GetString("timeRange"),
|
|
|
|
- HasPower: hasPower,
|
|
|
|
- BuyerClass: this.GetString("buyerClass"),
|
|
|
|
- },
|
|
|
|
|
|
+ Screen: screen,
|
|
IsExport: true,
|
|
IsExport: true,
|
|
Free: free,
|
|
Free: free,
|
|
}
|
|
}
|
|
@@ -362,19 +374,25 @@ func (this *EntPortrait) BuyerNewMsg() {
|
|
buyer := this.GetString("buyer")
|
|
buyer := this.GetString("buyer")
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
-
|
|
|
|
|
|
+ screen := &entity.PortraitScreen{
|
|
|
|
+ Ent: buyer,
|
|
|
|
+ Match: this.GetString("match"),
|
|
|
|
+ ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
+ MatchRange: this.GetString("matchRange"),
|
|
|
|
+ Area: this.GetString("area"),
|
|
|
|
+ ScopeClass: this.GetString("scopeClass"),
|
|
|
|
+ TimeRange: this.GetString("timeRange"),
|
|
|
|
+ HasPower: hasPower,
|
|
|
|
+ }
|
|
|
|
+ if screen.ScopeClass != "" {
|
|
|
|
+ //P510 行业:其它
|
|
|
|
+ if qt := jy.IndustryHandle(screen.ScopeClass); len(qt) > 0 {
|
|
|
|
+ screen.ScopeClass = fmt.Sprintf("%s,%s", screen.ScopeClass, strings.Join(qt, ","))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//免费用户仅可查看三条记录
|
|
//免费用户仅可查看三条记录
|
|
rData, total, updateTime, err := cepm.GetBuyerNewMsg(&entity.PortraitProjectScreen{
|
|
rData, total, updateTime, err := cepm.GetBuyerNewMsg(&entity.PortraitProjectScreen{
|
|
- Screen: &entity.PortraitScreen{
|
|
|
|
- Ent: buyer,
|
|
|
|
- Match: this.GetString("match"),
|
|
|
|
- ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
- MatchRange: this.GetString("matchRange"),
|
|
|
|
- Area: this.GetString("area"),
|
|
|
|
- ScopeClass: this.GetString("scopeClass"),
|
|
|
|
- TimeRange: this.GetString("timeRange"),
|
|
|
|
- HasPower: hasPower,
|
|
|
|
- },
|
|
|
|
|
|
+ Screen: screen,
|
|
PageNum: pageNum,
|
|
PageNum: pageNum,
|
|
PageSize: pageSize,
|
|
PageSize: pageSize,
|
|
})
|
|
})
|
|
@@ -402,17 +420,24 @@ func (this *EntPortrait) BuyerNewMsgExport() {
|
|
//}
|
|
//}
|
|
buyer := this.GetString("buyer")
|
|
buyer := this.GetString("buyer")
|
|
//免费用户仅可查看三十条记录
|
|
//免费用户仅可查看三十条记录
|
|
|
|
+ screen := &entity.PortraitScreen{
|
|
|
|
+ Ent: buyer,
|
|
|
|
+ Match: this.GetString("match"),
|
|
|
|
+ ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
+ MatchRange: this.GetString("matchRange"),
|
|
|
|
+ Area: this.GetString("area"),
|
|
|
|
+ ScopeClass: this.GetString("scopeClass"),
|
|
|
|
+ TimeRange: this.GetString("timeRange"),
|
|
|
|
+ HasPower: hasPower,
|
|
|
|
+ }
|
|
|
|
+ if screen.ScopeClass != "" {
|
|
|
|
+ //P510 行业:其它
|
|
|
|
+ if qt := jy.IndustryHandle(screen.ScopeClass); len(qt) > 0 {
|
|
|
|
+ screen.ScopeClass = fmt.Sprintf("%s,%s", screen.ScopeClass, strings.Join(qt, ","))
|
|
|
|
+ }
|
|
|
|
+ }
|
|
pps := &entity.PortraitProjectScreen{
|
|
pps := &entity.PortraitProjectScreen{
|
|
- Screen: &entity.PortraitScreen{
|
|
|
|
- Ent: buyer,
|
|
|
|
- Match: this.GetString("match"),
|
|
|
|
- ExactMatch: this.GetString("exactMatch") == "1",
|
|
|
|
- MatchRange: this.GetString("matchRange"),
|
|
|
|
- Area: this.GetString("area"),
|
|
|
|
- ScopeClass: this.GetString("scopeClass"),
|
|
|
|
- TimeRange: this.GetString("timeRange"),
|
|
|
|
- HasPower: hasPower,
|
|
|
|
- },
|
|
|
|
|
|
+ Screen: screen,
|
|
IsExport: true,
|
|
IsExport: true,
|
|
Free: free,
|
|
Free: free,
|
|
}
|
|
}
|