|
@@ -44,8 +44,9 @@ func (l *InfoDetailLogic) InfoDetail(req *types.InfoDetailReq) (resp *types.Repl
|
|
resp = &types.Reply{}
|
|
resp = &types.Reply{}
|
|
sql := `SELECT title, summary, content, basis, area, city, datajson_id FROM information.information WHERE id = ?`
|
|
sql := `SELECT title, summary, content, basis, area, city, datajson_id FROM information.information WHERE id = ?`
|
|
info := Infomation{}
|
|
info := Infomation{}
|
|
- err = T.ClickhouseConn.QueryRow(context.TODO(), sql, req.InfoId).ScanStruct(&info)
|
|
|
|
- if err == nil {
|
|
|
|
|
|
+ row := T.ClickhouseConn.QueryRow(context.TODO(), sql, req.InfoId)
|
|
|
|
+ err1 := row.ScanStruct(&info)
|
|
|
|
+ if err1 == nil {
|
|
info.DataJsonId = encrypt.CommonEncodeArticle("content", info.DataJsonId)
|
|
info.DataJsonId = encrypt.CommonEncodeArticle("content", info.DataJsonId)
|
|
binfo, b := T.MgoBidding.FindById("bidding", info.DataJsonId, map[string]interface{}{"title": 1, "projectname": 1})
|
|
binfo, b := T.MgoBidding.FindById("bidding", info.DataJsonId, map[string]interface{}{"title": 1, "projectname": 1})
|
|
if b && binfo != nil && len(*binfo) > 0 {
|
|
if b && binfo != nil && len(*binfo) > 0 {
|