|
@@ -1,17 +1,18 @@
|
|
|
package service
|
|
|
|
|
|
import (
|
|
|
+ "context"
|
|
|
+ "encoding/json"
|
|
|
+ "fmt"
|
|
|
+ "strings"
|
|
|
+
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
|
elastic "app.yhyue.com/moapp/jybase/es"
|
|
|
. "bp.jydev.jianyu360.cn/CRM/application/api/common"
|
|
|
"bp.jydev.jianyu360.cn/CRM/application/entity"
|
|
|
- "context"
|
|
|
- "encoding/json"
|
|
|
- "fmt"
|
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
|
"github.com/shopspring/decimal"
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
|
- "strings"
|
|
|
)
|
|
|
|
|
|
const (
|
|
@@ -555,7 +556,7 @@ func BuyerList(partyA, supplier, heterotophy, intermediary, agency string) *map[
|
|
|
if agency != "" {
|
|
|
agencyArr := []string{}
|
|
|
for _, s := range strings.Split(agency, ",") {
|
|
|
- agencyArr = append(agencyArr, fmt.Sprintf("'%s'"), s)
|
|
|
+ agencyArr = append(agencyArr, fmt.Sprintf("'%s'", s))
|
|
|
}
|
|
|
sqlStr := fmt.Sprintf(`SELECT buyer, buyer_id FROM transaction_info where agency_id in (%s) order by userid`, strings.Join(agencyArr, ","))
|
|
|
FindHandle(sqlStr, dataMap)
|