|
@@ -1,17 +1,19 @@
|
|
|
package service
|
|
|
|
|
|
import (
|
|
|
+ "context"
|
|
|
+ "encoding/json"
|
|
|
+ "fmt"
|
|
|
+ "strings"
|
|
|
+ "time"
|
|
|
+
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
+ "app.yhyue.com/moapp/jybase/encrypt"
|
|
|
elastic "app.yhyue.com/moapp/jybase/es"
|
|
|
T "bp.jydev.jianyu360.cn/CRM/application/api/common"
|
|
|
"bp.jydev.jianyu360.cn/CRM/application/api/internal/types"
|
|
|
- "context"
|
|
|
- "encoding/json"
|
|
|
- "fmt"
|
|
|
"github.com/ClickHouse/clickhouse-go/v2/lib/driver"
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
- "strings"
|
|
|
- "time"
|
|
|
)
|
|
|
|
|
|
var (
|
|
@@ -232,6 +234,7 @@ type P_History struct {
|
|
|
ProjectId string `ch:"project_id"`
|
|
|
ProjectName string `ch:"project_name"`
|
|
|
ZbTime int64 `ch:"zbtime"`
|
|
|
+ Href string `ch:"href"`
|
|
|
}
|
|
|
|
|
|
// @Author jianghan
|
|
@@ -247,6 +250,7 @@ func GetData3(source string, buyerId, winnerId string) (result []*P_History) {
|
|
|
for rows.Next() {
|
|
|
pHis := P_History{}
|
|
|
_ = rows.ScanStruct(&pHis)
|
|
|
+ pHis.Href = fmt.Sprintf("/article/content/%s.html", encrypt.CommonEncodeArticle("content", pHis.ProjectId))
|
|
|
result = append(result, &pHis)
|
|
|
}
|
|
|
return
|