Jianghan 1 year ago
parent
commit
8b98ff7b9c
2 changed files with 2 additions and 1 deletions
  1. 2 0
      api/internal/service/plistService.go
  2. 0 1
      service/util.go

+ 2 - 0
api/internal/service/plistService.go

@@ -253,6 +253,8 @@ func getQuerySql(req *types.ProjectListReq, isPage bool, buyerArr, plist []strin
 		}
 		querys = append(querys, arr...)
 	}
+	//过滤掉已中标的招标项目数据
+	querys = append(querys, fmt.Sprintf(" a.project_bidstatus in (%s) ", "2,3,4"))
 	findSql = "select a.project_id, a.project_name, a.business_type, a.buyer, a.buyer_id, a.area, a.city, a.district, a.zbtime, a.endtime, a.project_money, a.info_id, a.information_id, a.info_ids "
 	if len(querys) > 0 {
 		countSql = fmt.Sprintf("select count(1) from %s a where %s ", "information.transaction_info", strings.Join(querys, " and "))

+ 0 - 1
service/util.go

@@ -52,7 +52,6 @@ func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId in
 					return -1, fmt.Sprintf("%v已经基于该资讯创建了线索", v["create_person"])
 				}
 			}
-
 		} else if strings.Contains(key, "chance") {
 			if hasZero(employInfoIdArr) {
 				return 1, ""