|
@@ -657,6 +657,30 @@ func (f *Front) ProjectGroupTaskRepulse() {
|
|
|
f.ServeJson(map[string]interface{}{"success": success, "msg": msg})
|
|
|
}
|
|
|
|
|
|
+// DataRepulse 单条数据打回
|
|
|
+func (f *Front) DataRepulse() {
|
|
|
+ defer qu.Catch()
|
|
|
+ if f.Method() == "POST" {
|
|
|
+ //tid := f.GetString("tid")
|
|
|
+ did := f.GetString("s_infoid")
|
|
|
+ //更新数据源
|
|
|
+ success := util.Mgo.UpdateById(util.DATACOLLNAME, did, bson.M{
|
|
|
+ "$set": map[string]interface{}{
|
|
|
+ "b_istag": false,
|
|
|
+ "b_check": false, // 质检标记
|
|
|
+ "i_ckdata": 0,
|
|
|
+ "i_updatetime": time.Now().Unix(),
|
|
|
+ },
|
|
|
+ "$unset": map[string]interface{}{
|
|
|
+ "v_taginfo": "",
|
|
|
+ "v_checkinfo": "",
|
|
|
+ },
|
|
|
+ })
|
|
|
+ //util.Mgo.UpdateById(util.TASKCOLLNAME, tid, bson.M{"s_status"})
|
|
|
+ f.ServeJson(map[string]interface{}{"success": success, "msg": ""})
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// ProjectGroupTaskRetrieve 用户组任务收回
|
|
|
func (f *Front) ProjectGroupTaskRetrieve() {
|
|
|
defer qu.Catch()
|
|
@@ -1150,14 +1174,7 @@ func GetDataById(idInfoArr []util.Data, importType string, success *bool, msg *s
|
|
|
if len(*m) > 0 {
|
|
|
appid := qu.ObjArrToStringArr((*m)["appid"].([]interface{}))
|
|
|
if !strings.Contains(strings.Join(appid, ","), qu.ObjToString(tmp["appid"])) {
|
|
|
- if s1 := qu.ObjToString(tmp["matchkey"]); s1 != "" {
|
|
|
- if s1 != qu.ObjToString((*m)["matchkey"]) {
|
|
|
- s1 = qu.ObjToString((*m)["matchkey"]) + "," + s1
|
|
|
- }
|
|
|
- util.Mgo.UpdateById(util.DATACOLLNAME, id, bson.M{"$set": bson.M{"matchkey": s1}, "$push": bson.M{"appid": qu.ObjToString(tmp["appid"])}})
|
|
|
- } else {
|
|
|
- util.Mgo.UpdateById(util.DATACOLLNAME, id, bson.M{"$push": bson.M{"appid": qu.ObjToString(tmp["appid"])}})
|
|
|
- }
|
|
|
+ util.Mgo.UpdateById(util.DATACOLLNAME, id, bson.M{"$push": bson.M{"appid": qu.ObjToString(tmp["appid"])}})
|
|
|
}
|
|
|
} else {
|
|
|
//markData, _ := util.MgoHM.FindById("bidding", id, nil)
|
|
@@ -1233,7 +1250,6 @@ func GetDataById(idInfoArr []util.Data, importType string, success *bool, msg *s
|
|
|
// 6.项目合并信息
|
|
|
project, _ := util.MgoE.Find(util.ProjectColl, bson.M{"ids": id}, nil, nil, true, -1, -1)
|
|
|
if project != nil && len((*project)[0]) > 0 {
|
|
|
- qu.Debug(*project)
|
|
|
ids := qu.ObjArrToStringArr((*project)[0]["ids"].([]interface{}))
|
|
|
if len(ids) > 0 {
|
|
|
var infolist []map[string]interface{}
|