|
@@ -361,6 +361,7 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
|
|
|
old_department := gconv.String((*uCount)["department"])
|
|
|
old_follow_project_area := gconv.String((*uCount)["follow_project_area"])
|
|
|
old_role := gconv.String((*uCount)["role"])
|
|
|
+ lock_status := common.Int64All((*uCount)["lock_status"])
|
|
|
old_cluename := gconv.String((*uCount)["cluename"])
|
|
|
old_top_cluetype := gconv.String((*uCount)["top_cluetype"])
|
|
|
old_sub_cluetype := gconv.String((*uCount)["sub_cluetype"])
|
|
@@ -389,6 +390,7 @@ func FormatData(data map[string]interface{}, item string) (bool, bool, bool) {
|
|
|
}
|
|
|
if old_cluename != cluename && cluename != "" {
|
|
|
clueUpdateData["cluename"] = cluename //新的线索名不为空才替换
|
|
|
+ ClueNameChange(old_name, lock_status, clueId)
|
|
|
AddChangeRecord(nil, clueId, position_id, "cluename", "基本信息变更", gconv.String(common.If(cluename != "", cluename, "/")), gconv.String(common.If(old_cluename != "", old_cluename, "/")), nowTime, BCPCID, -1)
|
|
|
}
|
|
|
old_topname := ""
|
|
@@ -478,12 +480,13 @@ func SaveClue(item, userId, uId, top_cluetype, sub_cluetype, topname, subname, c
|
|
|
"label": 1,
|
|
|
"labelChangeTime": time.Now().Format("2006-01-02"),
|
|
|
})
|
|
|
- updateId1 = AddChangeRecord(tx, clueId, clueId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
- updateId2 = AddChangeRecord(tx, clueId, clueId, "position_id", "所属人变更", saleName, "/", nowTime, "", -1)
|
|
|
- updateId3 = AddChangeRecord(tx, clueId, clueId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
- updateId4 = AddChangeRecord(tx, clueId, clueId, "", "加入任务车", "线索自动分配"+"-"+topname+"-"+subname, "", nowTime, "", -1)
|
|
|
- updateId5 = AddChangeRecord(tx, clueId, clueId, "top_cluetype", "基本信息变更", "/", topname, nowTime, "", -1)
|
|
|
- updateId6 = AddChangeRecord(tx, clueId, clueId, "sub_cluetype", "基本信息变更", "/", subname, nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
+ updateId2 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", saleName, "/", nowTime, "", -1)
|
|
|
+ updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ updateId4 = AddChangeRecord(tx, clueId, positionId, "", "加入任务车", "线索自动分配"+"-"+topname+"-"+subname, "", nowTime, "", -1)
|
|
|
+ updateId5 = AddChangeRecord(tx, clueId, positionId, "top_cluetype", "基本信息变更", "/", topname, nowTime, "", -1)
|
|
|
+ updateId6 = AddChangeRecord(tx, clueId, positionId, "sub_cluetype", "基本信息变更", "/", subname, nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, 0, isGroup, isCommerce, cluename, nowTime, "delete")
|
|
|
//冻结处理
|
|
|
return clueId > -1 && updateId1 > -1 && updateId2 > -1 && updateId3 > -1 && updateId4 > -1 && updateId5 > -1 && updateId6 > -1
|
|
|
}) {
|
|
@@ -547,9 +550,10 @@ func SaveClue0(item, userId, uId, top_cluetype, sub_cluetype, topname, subname,
|
|
|
"label": 1,
|
|
|
"labelChangeTime": time.Now().Format("2006-01-02"),
|
|
|
})
|
|
|
- uodateId1 = AddChangeRecord(nil, clueId, positionId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
- uodateId2 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", "/", "", nowTime, "", -1)
|
|
|
- uodateId3 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ uodateId1 = AddChangeRecord(tx, clueId, positionId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
+ uodateId2 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", "/", "", nowTime, "", -1)
|
|
|
+ uodateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, 0, isGroup, isCommerce, cluename, nowTime, "delete")
|
|
|
return clueId > -1 && uodateId1 > -1 && uodateId2 > -1 && uodateId3 > -1
|
|
|
}) {
|
|
|
log.Println("线索分配成功")
|
|
@@ -594,10 +598,12 @@ func WorkUpdateClue(data map[string]interface{}, saleData []map[string]interface
|
|
|
old_follow_project_area := gconv.String(data["follow_project_area"])
|
|
|
old_role := gconv.String(data["role"])
|
|
|
old_cluename := gconv.String(data["cluename"])
|
|
|
+
|
|
|
old_top_cluetype := gconv.String(data["top_cluetype"])
|
|
|
old_sub_cluetype := gconv.String(data["sub_cluetype"])
|
|
|
label := gconv.Int64(data["label"])
|
|
|
old_topname, old_subname := "", ""
|
|
|
+ lockStatus := common.Int64All(data["lock_status"])
|
|
|
is_transfer := common.IntAll(data["is_transfer"])
|
|
|
if taskstatus == 1 || is_task == 0 {
|
|
|
taskTime = gconv.String(common.If(item != "users", nowTime, nowTimes)) //任务时间,正常的是当前时间,新用户是当前时间+12个小时
|
|
@@ -801,33 +807,39 @@ func WorkUpdateClue(data map[string]interface{}, saleData []map[string]interface
|
|
|
if (trailstatus == "00" || old_position_id == 0 || (pIsOk && old_cluename != cluename && cluename != "")) && is_assign == 1 {
|
|
|
if trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400 {
|
|
|
} else if old_position_id == 0 {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
- updateId2 = AddChangeRecord(nil, clueId, positionId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
- updateId3 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "新增", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId2 = AddChangeRecord(tx, clueId, positionId, "", "创建线索", "系统自动创建", "", nowTime, "", -1)
|
|
|
+ updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, "add")
|
|
|
} else {
|
|
|
if pIsOk && old_cluename != cluename && cluename != "" {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, "add")
|
|
|
} else {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
- updateId2 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "流失", "无意向客户", nowTime, "", -1)
|
|
|
- updateId3 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
- updateId4 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", "无意向客户", nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId2 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "流失", "无意向客户", nowTime, "", -1)
|
|
|
+ updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", "无意向客户", nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, "add")
|
|
|
}
|
|
|
}
|
|
|
} else if is_assign == 0 {
|
|
|
if trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400 {
|
|
|
} else {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
if trailstatus != "01" {
|
|
|
- updateId4 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
}
|
|
|
- updateId3 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
}
|
|
|
} else if is_assign == -1 {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
- updateId4 = AddChangeRecord(nil, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
} else if (pIsOk && old_cluename == cluename && cluename != "") && is_assign == 1 && positionId != old_position_id {
|
|
|
- updateId1 = AddChangeRecord(nil, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
}
|
|
|
if recordCount <= 0 || is_assign == 0 {
|
|
|
if trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400 {
|
|
@@ -911,6 +923,7 @@ func WorkUpdateClue(data map[string]interface{}, saleData []map[string]interface
|
|
|
if old_cluename != cluename && cluename != "" {
|
|
|
updateId11 = AddChangeRecord(tx, clueId, gconv.Int64(common.If(trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400, -1, common.If(trailstatus == "00" || is_assign == 0, positionId, common.If(is_assign == 1, positionId, common.Int64All(data["position_id"]))))),
|
|
|
"cluename", "基本信息变更", gconv.String(common.If(cluename != "", cluename, "/")), gconv.String(common.If(old_cluename != "", old_cluename, "/")), nowTime, "", -1)
|
|
|
+ ClueNameChange(old_name, lockStatus, clueId)
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -985,6 +998,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
old_top_cluetype := gconv.String(data["top_cluetype"])
|
|
|
old_sub_cluetype := gconv.String(data["sub_cluetype"])
|
|
|
old_topname, old_subname := "", ""
|
|
|
+ lockStatus := common.Int64All(data["lock_status"])
|
|
|
is_transfer := common.IntAll(data["is_transfer"])
|
|
|
oldLabelChangeTime := gconv.String(data["labelChangeTime"])
|
|
|
label := gconv.Int64(data["label"])
|
|
@@ -1052,7 +1066,6 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
if cluename != "" {
|
|
|
clueUpdateData["cluename"] = cluename //新的线索名不为空才替换
|
|
|
}
|
|
|
-
|
|
|
if item != "orders" && item != "users" { //新用户和订单之外的替换一下新的留资信息
|
|
|
if name != "" {
|
|
|
clueUpdateData["name"] = name
|
|
@@ -1119,6 +1132,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
Level: level,
|
|
|
LabelChangeTime: oldLabelChangeTime,
|
|
|
Label: label,
|
|
|
+ LockStatus: lockStatus,
|
|
|
}
|
|
|
return clueInfoUpdate(clueMapEntity)
|
|
|
|
|
@@ -1230,6 +1244,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
} else if old_position_id == 0 {
|
|
|
updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
} else {
|
|
|
if pIsOk && old_cluename != cluename && cluename != "" {
|
|
|
updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(
|
|
@@ -1239,6 +1254,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
updateId2 = AddChangeRecord(tx, clueId, common.Int64All(data["position_id"]), "trailstatus", "基本信息变更", "流失", "无意向客户", nowTime, "", -1)
|
|
|
updateId3 = AddChangeRecord(tx, clueId, common.Int64All(data["position_id"]), "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", "无意向客户", nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
}
|
|
|
}
|
|
|
} else if is_assign == 0 {
|
|
@@ -1252,10 +1268,12 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
}
|
|
|
updateId3 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "新增", "商机线索", nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
}
|
|
|
} else if is_assign == -1 {
|
|
|
updateId1 = AddChangeRecord(tx, clueId, positionId, "position_id", "所属人变更", gconv.String(common.If(saleName != "", saleName, "/")), gconv.String(common.If(oldsaleName != "", oldsaleName, "/")), nowTime, "", -1)
|
|
|
updateId4 = AddChangeRecord(tx, clueId, positionId, "trailstatus", "基本信息变更", "商机线索", CodeTrail[trailstatus], nowTime, "", -1)
|
|
|
+ AddLockeStatusChange(tx, clueId, positionId, 0, lockStatus, isGroup, isCommerce, cluename, nowTime, gconv.String(common.If(saleName != "", "add", "delete")))
|
|
|
}
|
|
|
if recordCount <= 0 || is_assign == 0 {
|
|
|
if trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400 {
|
|
@@ -1343,6 +1361,7 @@ func UpdateClue(data map[string]interface{}, saleData []map[string]interface{},
|
|
|
if old_cluename != cluename && cluename != "" {
|
|
|
updateId11 = AddChangeRecord(tx, clueId, gconv.Int64(common.If(trailstatus == "00" && trailstatusTime != "" && time.Now().Unix()-trailstatusTimes.Unix() < 86400, -1, common.If(trailstatus == "00" || is_assign == 0, positionId, common.Int64All(data["position_id"])))), "cluename", "基本信息变更",
|
|
|
gconv.String(common.If(cluename != "", cluename, "/")), gconv.String(common.If(old_cluename != "", old_cluename, "/")), nowTime, "", -1)
|
|
|
+ ClueNameChange(old_cluename, lockStatus, clueId)
|
|
|
}
|
|
|
}
|
|
|
if old_top_cluetype != top_cluetype {
|
|
@@ -1417,6 +1436,7 @@ type ClueMapEntity struct {
|
|
|
Label int64
|
|
|
LabelChangeTime string
|
|
|
Level string
|
|
|
+ LockStatus int64
|
|
|
}
|
|
|
|
|
|
// 基本信息变更
|
|
@@ -1459,7 +1479,7 @@ func clueInfoUpdate(data ClueMapEntity) bool {
|
|
|
gconv.String(common.If(data.NewDepartment != "", data.NewDepartment, "/")), gconv.String(common.If(data.OldDepartment != "", data.OldDepartment, "/")), nowTime, "", -1)
|
|
|
}
|
|
|
if data.OldRole != data.NewRole && data.NewRole != "" {
|
|
|
- updateId9 = AddChangeRecord(nil, data.ClueId, data.PositionId, "role", "基本信息变更", gconv.String(common.If(data.NewRole != "", data.NewRole, "/")), gconv.String(common.If(data.OldRole != "", data.OldRole, "/")), nowTime, BCPCID, -1)
|
|
|
+ updateId9 = AddChangeRecord(tx, data.ClueId, data.PositionId, "role", "基本信息变更", gconv.String(common.If(data.NewRole != "", data.NewRole, "/")), gconv.String(common.If(data.OldRole != "", data.OldRole, "/")), nowTime, BCPCID, -1)
|
|
|
}
|
|
|
if data.OldFollowProjectArea != data.NewFollowProjectArea && data.NewFollowProjectArea != "" {
|
|
|
old_area, old_area_arr := "", []string{}
|
|
@@ -1472,17 +1492,18 @@ func clueInfoUpdate(data ClueMapEntity) bool {
|
|
|
}
|
|
|
old_area = strings.Join(old_area_arr, ",")
|
|
|
new_area = strings.Join(new_area_arr, ",")
|
|
|
- updateId10 = AddChangeRecord(nil, data.ClueId, data.PositionId, "follow_project_area", "基本信息变更", gconv.String(common.If(new_area != "", new_area, "/")), gconv.String(common.If(old_area != "", old_area, "/")), nowTime, BCPCID, -1)
|
|
|
+ updateId10 = AddChangeRecord(tx, data.ClueId, data.PositionId, "follow_project_area", "基本信息变更", gconv.String(common.If(new_area != "", new_area, "/")), gconv.String(common.If(old_area != "", old_area, "/")), nowTime, BCPCID, -1)
|
|
|
}
|
|
|
if data.OldCluename != data.NewCluename && data.NewCluename != "" {
|
|
|
- updateId11 = AddChangeRecord(nil, data.ClueId, data.PositionId, "cluename", "基本信息变更", gconv.String(common.If(data.NewCluename != "", data.NewCluename, "/")), gconv.String(common.If(data.OldCluename != "", data.OldCluename, "/")), nowTime, BCPCID, -1)
|
|
|
+ updateId11 = AddChangeRecord(tx, data.ClueId, data.PositionId, "cluename", "基本信息变更", gconv.String(common.If(data.NewCluename != "", data.NewCluename, "/")), gconv.String(common.If(data.OldCluename != "", data.OldCluename, "/")), nowTime, BCPCID, -1)
|
|
|
+ ClueNameChange(data.OldCluename, data.LockStatus, data.ClueId)
|
|
|
}
|
|
|
}
|
|
|
if data.OldTopCluetype != data.NewTopCluetype {
|
|
|
- updateId12 = AddChangeRecord(nil, data.ClueId, data.PositionId, "top_cluetype", "基本信息变更", gconv.String(common.If(data.Topname != "", data.Topname, "/")), gconv.String(common.If(old_topname != "", old_topname, "/")), nowTime, BCPCID, -1)
|
|
|
+ updateId12 = AddChangeRecord(tx, data.ClueId, data.PositionId, "top_cluetype", "基本信息变更", gconv.String(common.If(data.Topname != "", data.Topname, "/")), gconv.String(common.If(old_topname != "", old_topname, "/")), nowTime, BCPCID, -1)
|
|
|
}
|
|
|
if data.OldSubCluetype != data.OldSubCluetype {
|
|
|
- updateId13 = AddChangeRecord(nil, data.ClueId, data.PositionId, "sub_cluetype", "基本信息变更", gconv.String(common.If(data.Subname != "", data.Subname, "/")), gconv.String(common.If(old_subname != "", old_subname, "/")), nowTime, BCPCID, -1)
|
|
|
+ updateId13 = AddChangeRecord(tx, data.ClueId, data.PositionId, "sub_cluetype", "基本信息变更", gconv.String(common.If(data.Subname != "", data.Subname, "/")), gconv.String(common.If(old_subname != "", old_subname, "/")), nowTime, BCPCID, -1)
|
|
|
LabelHandel(tx, data.Label, 1, data.UId, data.Level, data.Trailstatus, data.Trailstatus, 0)
|
|
|
}
|
|
|
return ok && updateId1 > -1 && updateId2 > -1 && updateId3 > -1 && updateId4 > -1 && updateId5 > -1 && updateId6 > -1 && updateId7 > -1 && updateId8 > -1 && updateId9 > -1 && updateId10 > -1 && updateId11 > -1 && updateId12 > -1 && updateId13 > -1
|