瀏覽代碼

处理状态处理

WH01243 1 年之前
父節點
當前提交
1aa153a89e
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      api/internal/service/owner.go

+ 13 - 0
api/internal/service/owner.go

@@ -631,15 +631,28 @@ func ProcessingStatusInit(positionId int64, dataMap *map[string]map[string]inter
 			switch v {
 			case "1":
 				if _, ok := untreatedMap[buyerId]; !ok {
+					if _, ok := ignoredMap[buyerId]; ok {
+						value["isIgnore"] = true
+						if _, ok := createdMap[buyerId]; ok {
+							value["isCreateCustomer"] = true
+						}
+					}
 					(*newMap)[buyerId] = value
 				}
 			case "2":
 				if _, ok := ignoredMap[buyerId]; ok {
 					value["isIgnore"] = true
+					if _, ok := createdMap[buyerId]; ok {
+						value["isCreateCustomer"] = true
+					}
 					(*newMap)[buyerId] = value
 				}
+
 			case "3":
 				if _, ok := createdMap[buyerId]; ok {
+					if _, ok := ignoredMap[buyerId]; ok {
+						value["isIgnore"] = true
+					}
 					value["isCreateCustomer"] = true
 					(*newMap)[buyerId] = value
 				}