|
@@ -8,7 +8,7 @@ import (
|
|
|
"github.com/gogf/gf/v2/util/gconv"
|
|
|
)
|
|
|
|
|
|
-//CanAdd 是否允许多人针对一个创建
|
|
|
+// CanAdd 是否允许多人针对一个创建
|
|
|
func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId int64) (status int64, error_msg string) {
|
|
|
if employInfoId <= 0 && employCustomId <= 0 {
|
|
|
return 1, ""
|
|
@@ -49,7 +49,7 @@ func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId in
|
|
|
if positionId == position_id {
|
|
|
return 1, ""
|
|
|
}
|
|
|
- return -1, fmt.Sprintf("%v已经基于该咨询创建了线索", v["create_person"])
|
|
|
+ return -1, fmt.Sprintf("%v已经基于该资讯创建了线索", v["create_person"])
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -64,7 +64,7 @@ func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId in
|
|
|
if positionId == position_id {
|
|
|
return 1, ""
|
|
|
}
|
|
|
- return -1, fmt.Sprintf("%v已经基于该咨询创建了机会", v["create_person"])
|
|
|
+ return -1, fmt.Sprintf("%v已经基于该资讯创建了机会", v["create_person"])
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -77,7 +77,7 @@ func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId in
|
|
|
if positionId == position_id {
|
|
|
return 1, ""
|
|
|
}
|
|
|
- return -1, fmt.Sprintf("%v已经基于该咨询创建了客户", v["create_person"])
|
|
|
+ return -1, fmt.Sprintf("%v已经基于该资讯创建了客户", v["create_person"])
|
|
|
}
|
|
|
}
|
|
|
} else if employCustomId > 0 {
|
|
@@ -110,7 +110,7 @@ func CanAdd(entId int64, key string, employInfoId, employCustomId, positionId in
|
|
|
return 1, ""
|
|
|
}
|
|
|
|
|
|
-//获取sql语句的in操作相关参数
|
|
|
+// 获取sql语句的in操作相关参数
|
|
|
func GetInForCommaArr(ids []int64) ([]interface{}, string) {
|
|
|
args := []interface{}{}
|
|
|
ws := []string{}
|