Explorar o código

处理状态处理

WH01243 hai 1 ano
pai
achega
1aa153a89e
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  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
 				}