Bläddra i källkod

更新时间处理

WH01243 1 år sedan
förälder
incheckning
f1d66b0e83
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 1
      api/internal/service/owner.go
  2. 1 0
      service/custom.go

+ 1 - 1
api/internal/service/owner.go

@@ -643,7 +643,7 @@ func ProcessingStatusInit(positionId int64, dataMap *map[string]map[string]inter
 					value["isCreateCustomer"] = true
 					(*newMap)[buyerId] = value
 				}
-			case "全部":
+			case "全部", "":
 				if _, ok := ignoredMap[buyerId]; ok {
 					value["isIgnore"] = true
 				}

+ 1 - 0
service/custom.go

@@ -364,6 +364,7 @@ func SaveConnection(tx *sql.Tx, positionId int64, businessId, ownerId string, en
 				"is_create":   1,
 				"itype":       sourceType,
 				"create_time": time.Now().Format(date.Date_Full_Layout),
+				"update_time": time.Now().Format(date.Date_Full_Layout),
 			})
 			return id > 0
 		}