jianghan 4 mēneši atpakaļ
vecāks
revīzija
ed5da9c12a
5 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. 1 1
      api/biService.api
  2. 1 2
      api/internal/types/types.go
  3. 1 1
      go.mod
  4. 1 0
      rpc/biservice/biservice.go
  5. 3 3
      service/clueInfoList.go

+ 1 - 1
api/biService.api

@@ -156,7 +156,7 @@ type (
 	}
 	ClueInfoReq {
 		SearchTxt  string `json:"searchTxt"`
-		SearchType int    `json:"searchType"` // 0: 线索名称,1: 联系方式,2: 联系人
+		SearchType string `json:"searchType"` // 0: 线索名称,1: 联系方式,2: 联系人
 		PageSize   int64  `json:"pageSize"`
 		PageNum    int64  `json:"pageNum"`
 	}

+ 1 - 2
api/internal/types/types.go

@@ -41,7 +41,7 @@ type ClueImportReq struct {
 
 type ClueInfoReq struct {
 	SearchTxt  string `json:"searchTxt"`
-	SearchType int    `json:"searchType"` // 0: 线索名称,1: 联系方式,2: 联系人
+	SearchType string `json:"searchType"` // 0: 线索名称,1: 联系方式,2: 联系人
 	PageSize   int64  `json:"pageSize"`
 	PageNum    int64  `json:"pageNum"`
 }
@@ -89,7 +89,6 @@ type ExportReq struct {
 
 type FindClueInfoReq struct {
 	UserId     string `header:"userId,optional"`
-	Phone      string `header:"phone,optional"`
 	PositionId int64  `header:"positionId,optional"`
 }
 

+ 1 - 1
go.mod

@@ -1,6 +1,6 @@
 module bp.jydev.jianyu360.cn/BaseService/biService
 
-go 1.19
+go 1.20
 
 require (
 	app.yhyue.com/moapp/jybase v0.0.0-20240523083821-42a82b37ae20

+ 1 - 0
rpc/biservice/biservice.go

@@ -1,4 +1,5 @@
 // Code generated by goctl. DO NOT EDIT.
+// goctl 1.7.6
 // Source: biService.proto
 
 package biservice

+ 3 - 3
service/clueInfoList.go

@@ -64,13 +64,13 @@ func CheckingList(in *pb.ClueInfoReq) *pb.BiReply {
 	cq2 := `SELECT COUNT(1) FROM dwd_f_crm_clue_info a1 WHERE a1.phone = '%s'`
 
 	sql, cq := "", ""
-	if in.SearchType == 0 {
+	if in.SearchType == "0" {
 		sql = sql0
 		cq = cq0
-	} else if in.SearchType == 1 {
+	} else if in.SearchType == "1" {
 		sql = sql1
 		cq = cq1
-	} else if in.SearchType == 2 {
+	} else if in.SearchType == "2" {
 		sql = sql2
 		cq = cq2
 	}