|
@@ -969,7 +969,7 @@ func getClueType(item string, data map[string]interface{}, sourceCode string, so
|
|
} else if item == "allocation" {
|
|
} else if item == "allocation" {
|
|
pcode = "532"
|
|
pcode = "532"
|
|
code = "671"
|
|
code = "671"
|
|
- level = "C"
|
|
|
|
|
|
+ level = "D"
|
|
pcodeData := TiDb.FindOne("dwd_d_crm_cluetype_code", map[string]interface{}{"code": pcode}, "", "")
|
|
pcodeData := TiDb.FindOne("dwd_d_crm_cluetype_code", map[string]interface{}{"code": pcode}, "", "")
|
|
if pcodeData != nil && len(*pcodeData) > 0 {
|
|
if pcodeData != nil && len(*pcodeData) > 0 {
|
|
topname = common.ObjToString((*pcodeData)["name"])
|
|
topname = common.ObjToString((*pcodeData)["name"])
|
|
@@ -981,7 +981,7 @@ func getClueType(item string, data map[string]interface{}, sourceCode string, so
|
|
} else if item == "rebind" {
|
|
} else if item == "rebind" {
|
|
pcode = "532"
|
|
pcode = "532"
|
|
code = "670"
|
|
code = "670"
|
|
- level = "C"
|
|
|
|
|
|
+ level = "D"
|
|
pcodeData := TiDb.FindOne("dwd_d_crm_cluetype_code", map[string]interface{}{"code": pcode}, "", "")
|
|
pcodeData := TiDb.FindOne("dwd_d_crm_cluetype_code", map[string]interface{}{"code": pcode}, "", "")
|
|
if pcodeData != nil && len(*pcodeData) > 0 {
|
|
if pcodeData != nil && len(*pcodeData) > 0 {
|
|
|
|
|
|
@@ -1159,10 +1159,10 @@ func autoDraw(mode, cluename, phone string, isGroup, isCommerce int) (positionId
|
|
positionId = common.Int64All((*cdata)[0]["position_id"])
|
|
positionId = common.Int64All((*cdata)[0]["position_id"])
|
|
noticePositionId = positionId
|
|
noticePositionId = positionId
|
|
seatNumber = common.ObjToString((*cdata)[0]["seatNumber"])
|
|
seatNumber = common.ObjToString((*cdata)[0]["seatNumber"])
|
|
- assign_type := common.IntAll((*cdata)[0]["assign_type"])
|
|
|
|
- role_id := common.IntAll((*cdata)[0]["role_id"])
|
|
|
|
for _, v := range *pdata {
|
|
for _, v := range *pdata {
|
|
resign := common.IntAll(v["resign"])
|
|
resign := common.IntAll(v["resign"])
|
|
|
|
+ assign_type := common.IntAll(v["assign_type"])
|
|
|
|
+ role_id := common.IntAll(v["role_id"])
|
|
if positionId == common.Int64All(v["position_id"]) {
|
|
if positionId == common.Int64All(v["position_id"]) {
|
|
if resign == 0 && (assign_type == 1 || role_id == 8) {
|
|
if resign == 0 && (assign_type == 1 || role_id == 8) {
|
|
if FindUpperLimit(gconv.String(positionId), mode, true) {
|
|
if FindUpperLimit(gconv.String(positionId), mode, true) {
|
|
@@ -1183,11 +1183,16 @@ func autoDraw(mode, cluename, phone string, isGroup, isCommerce int) (positionId
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ positionId = 0
|
|
|
|
+ seatNumber = ""
|
|
|
|
+ saleName = ""
|
|
query := `select * from dwd_f_crm_personnel_management where assign_type = 1 and`
|
|
query := `select * from dwd_f_crm_personnel_management where assign_type = 1 and`
|
|
if mode == "A" {
|
|
if mode == "A" {
|
|
query += ` assign_level like "%A%"`
|
|
query += ` assign_level like "%A%"`
|
|
} else if mode == "B" {
|
|
} else if mode == "B" {
|
|
query += ` assign_level like "%B%"`
|
|
query += ` assign_level like "%B%"`
|
|
|
|
+ } else if mode == "D" {
|
|
|
|
+ query += ` assign_level like "%D%"`
|
|
} else {
|
|
} else {
|
|
query += ` assign_level like "%C%"`
|
|
query += ` assign_level like "%C%"`
|
|
}
|
|
}
|