WH01243 1 rok temu
rodzic
commit
6a32521887

+ 1 - 1
api/internal/logic/ownercooperatelogic.go

@@ -32,7 +32,7 @@ func (l *OwnerCooperateLogic) OwnerCooperate(req *types.CooperateOwnerListReq) (
 		BuyerId:       req.BuyerId,
 		BuyerName:     req.BuyerName,
 		WinnerName:    req.WinnerName,
-		WinnerId:      req.WinnerName,
+		WinnerId:      req.WinnerId,
 		CooperateType: req.CooperateType,
 	}
 	data := ownerService.OwnerCooperate()

+ 1 - 1
api/internal/service/owner.go

@@ -774,7 +774,7 @@ func (t *OwnerService) OwnerCooperate() []map[string]interface{} {
 		//供应商
 		supplierSql := fmt.Sprintf(`SELECT DISTINCT  a.zbtime as zbtime,a.project_id as project_id,a.project_name as project_name 
 	FROM 
-	   (select zbtime,project_id,project_name,winner_id as winnerId   from  transaction_info     
+	   (select zbtime,project_id,project_name,winner_id as winnerId,buyer_id   from  transaction_info     
 	ARRAY JOIN  winner_id ) a 
 	inner join ent_contact  b   on a.buyer_id = '%s' and a.winnerId='%s' and  a.winnerId=b.id
 	inner join ent_info  c   on a.winnerId=c.id order by a.zbtime,a.winnerId`, t.BuyerId, t.WinnerId)