wangchuanjin 1 rok temu
rodzic
commit
95ad134656

+ 2 - 0
api/internal/logic/ownerlistlogic.go

@@ -2,6 +2,7 @@ package logic
 
 import (
 	"context"
+	"fmt"
 
 	"bp.jydev.jianyu360.cn/CRM/application/api/internal/service"
 
@@ -27,6 +28,7 @@ func NewOwnerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OwnerLi
 
 func (l *OwnerListLogic) OwnerList(req *types.OwnerListReq) (resp *types.Reply, err error) {
 	// todo: add your logic here and delete this line
+	logx.Info(fmt.Sprintf("%+v", req))
 	resp = &types.Reply{}
 	ownerService := &service.OwnerService{
 		PartyA:           req.PartyA,

+ 2 - 1
api/internal/service/network_test.go

@@ -33,6 +33,7 @@ func initDb() {
 		MaxOpenConns: 2,
 	})
 	es.NewEs("v7", "http://192.168.3.149:9200", 5, "", "")
+	log.Println("ccccccc")
 	Mgo = MongodbSim{
 		MongodbAddr: "192.168.3.206:27080",
 		Size:        2,
@@ -117,7 +118,7 @@ func TestNetWorkList(t *testing.T) {
 		//Project_matchme: 1,
 		//Starttime: "2024-04-23",
 		//Endtime:   "2024-04-23",
-		//Type: "supplier",
+		Type: "middleman",
 		//Name: "三亚市",
 	})
 	for k, v := range res.Data.(map[string]interface{}) {