|
@@ -76,8 +76,16 @@ type Cooperate struct {
|
|
|
|
|
|
func GetPrList(req *types.CoopHistoryReq) (result []*ResultData, size_1, size_2, size_3, size_4 int64) {
|
|
|
pTmp := ProjectTmp{}
|
|
|
- pid := encrypt.CommonDecodeArticle("content", req.Pid)
|
|
|
- err := T.ClickhouseConn.QueryRow(context.TODO(), sql_2_0, pid).ScanStruct(&pTmp)
|
|
|
+ id := ""
|
|
|
+ if req.Pid != "" {
|
|
|
+ id = req.Pid
|
|
|
+ } else if req.Bid != "" {
|
|
|
+ id = encrypt.CommonDecodeArticle("content", req.Bid)[0]
|
|
|
+ }
|
|
|
+ if id == "" {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ err := T.ClickhouseConn.QueryRow(context.TODO(), sql_2_0, id).ScanStruct(&pTmp)
|
|
|
if err != nil {
|
|
|
return nil, 0, 0, 0, 0
|
|
|
}
|