Browse Source

客户创建数据修改

WH01243 1 year ago
parent
commit
593c335b58
1 changed files with 12 additions and 4 deletions
  1. 12 4
      api/internal/service/employService.go

+ 12 - 4
api/internal/service/employService.go

@@ -61,7 +61,7 @@ func (e *EmPloyService) InfoEmployinfo(in *types.InfoEmployinfoReq) []map[string
 			valueMap["isIgnore"] = false
 			valueMap["isEmploy"] = false
 		}
-		if len(strings.Split(in.IdArr, ",")) == 1 {
+		if len(strings.Split(in.IdArr, ",")) == 1 && employId > 0 {
 			//列表查询
 			//是否忽略处理
 			//客户数量
@@ -216,6 +216,8 @@ func InfoFind(id string, employType int64) map[string]interface{} {
 			obj = *aobj
 		}
 		if ok && obj != nil && len(obj) > 0 {
+			toptype := common.InterfaceToStr(obj["toptype"])
+			subtype := common.InterfaceToStr(obj["subtype"])
 			data["title"] = common.ObjToString(obj["title"])
 			data["city"] = obj["city"]
 			data["area"] = obj["area"]
@@ -227,9 +229,10 @@ func InfoFind(id string, employType int64) map[string]interface{} {
 			data["buyer"] = obj["buyer"]
 			data["winner"] = obj["s_winner"]
 			//类型处理
-			toptype := common.InterfaceToStr(obj["toptype"])
-			subtype := common.InterfaceToStr(obj["subtype"])
-			if toptype == "采购意向" || toptype == "预告" || toptype == "招标" {
+			if subtype == "拟建" {
+				data["type"] = 1
+				data["type"] = 2
+			} else if toptype == "采购意向" || toptype == "预告" || toptype == "招标" {
 				data["type"] = 2
 			} else {
 				if subtype == "废标" || subtype == "流标" || subtype == "其它" {
@@ -239,6 +242,11 @@ func InfoFind(id string, employType int64) map[string]interface{} {
 				} else {
 					data["type"] = 1
 				}
+			}
+			if common.InterfaceToStr(obj["subtype"]) == "拟建" {
+
+			} else {
+
 			}
 			//data["type"] = in.SourceType
 			if obj["projectinfo"] != nil {