|
@@ -674,7 +674,7 @@ func batchDraw(data []map[string]interface{}, nowTime, seatNumber, name string,
|
|
if cdata != nil && len(*cdata) > 0 {
|
|
if cdata != nil && len(*cdata) > 0 {
|
|
salePositionId := common.Int64All((*cdata)["position_id"])
|
|
salePositionId := common.Int64All((*cdata)["position_id"])
|
|
if pcount := JyBiMysql.Count("dwd_f_crm_personnel_management", map[string]interface{}{"resign": 0, "position_id": salePositionId}); pcount > 0 {
|
|
if pcount := JyBiMysql.Count("dwd_f_crm_personnel_management", map[string]interface{}{"resign": 0, "position_id": salePositionId}); pcount > 0 {
|
|
- logx.Info("当前线索有在职销售 ", salePositionId)
|
|
|
|
|
|
+ logx.Info("当前线索有在职销售 ", clueId, cluename)
|
|
return count
|
|
return count
|
|
} else {
|
|
} else {
|
|
saledata := JyBiMysql.SelectBySql(`SELECT position_id from dwd_d_crm_department_level_succbi WHERE bi_pcode in (SELECT bi_pcode from dwd_d_crm_department_level_succbi WHERE position_id = ?) AND resign = 0`, salePositionId)
|
|
saledata := JyBiMysql.SelectBySql(`SELECT position_id from dwd_d_crm_department_level_succbi WHERE bi_pcode in (SELECT bi_pcode from dwd_d_crm_department_level_succbi WHERE position_id = ?) AND resign = 0`, salePositionId)
|
|
@@ -687,7 +687,7 @@ func batchDraw(data []map[string]interface{}, nowTime, seatNumber, name string,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if !isOk {
|
|
if !isOk {
|
|
- logx.Info("当前线索销售离职,只能同部门领取 ", salePositionId)
|
|
|
|
|
|
+ logx.Info("当前线索销售离职,只能同部门领取 ", clueId, cluename)
|
|
return count
|
|
return count
|
|
}
|
|
}
|
|
}
|
|
}
|