Browse Source

联通字段处理

Jianghan 1 year ago
parent
commit
b3e4fc54d0
2 changed files with 3 additions and 1 deletions
  1. 3 1
      src/front/group.go
  2. BIN
      src/web/model/taskexportdata.xlsx

+ 3 - 1
src/front/group.go

@@ -335,6 +335,7 @@ func syncJyData(source, tid, pid string) int {
 				}
 				info["isOptimization"] = qu.IntAll(tmp["is_push"])
 				info["ispanchong"] = 1
+				info["earliestDay"] = qu.IntAll(tmp["earliestDay"])
 				util.MgoJy.Save(util.JYPushColl, info)
 				util.Mgo.UpdateById(source, tmp["_id"], bson.M{"$set": bson.M{"sendflag": true}})
 
@@ -943,6 +944,7 @@ func (f *Front) GroupExportData() {
 }
 
 var FieldsMap = map[string]string{
+	"最早优选":    "earliestDay",
 	"是否重复":    "is_repeat",
 	"是否优选":    "is_push",
 	"运营商中标标签": "tagname",
@@ -989,7 +991,7 @@ func (f *Front) GroupImportData() {
 			id = util.SE.DecodeString(id)
 			for i, f1 := range cellFieldName {
 				if val := row.Cells[i].Value; val != "" {
-					if f1 == "is_push" || f1 == "is_repeat" {
+					if f1 == "is_push" || f1 == "is_repeat" || f1 == "earliestDay" {
 						update[f1] = qu.IntAll(val)
 					} else if f1 == "multipackage" {
 						update[fmt.Sprintf("v_baseinfo.%s", f1)] = qu.IntAll(val)

BIN
src/web/model/taskexportdata.xlsx