|
@@ -87,7 +87,7 @@ func PersonImageSave(imgUrl string, msgId, positionId, materialsId int64) bool {
|
|
|
func GetPersonCode(positionId int64, name, userId string) string {
|
|
|
//根据职位id获取到对应的渠道码
|
|
|
code := ""
|
|
|
- data := entity.JyBiTidb.FindOne("dwd_d_userbase_belongto_rulecode", map[string]interface{}{"user_id": positionId}, "code", "")
|
|
|
+ data := entity.JyBiTidb.FindOne("dwd_d_userbase_belongto_rulecode", map[string]interface{}{"user_id": userId}, "code", "")
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
code = gconv.String((*data)["code"])
|
|
|
} else {
|
|
@@ -123,7 +123,7 @@ func generateRandomString(length int) string {
|
|
|
|
|
|
func GetUserIds(positionIds string) map[int]string {
|
|
|
res := map[int]string{}
|
|
|
- data := entity.BiService.SelectBySql("SELECT userid,position_id FROM data_service.`user_system` FROM status = 1 AND position_id in (?)", positionIds)
|
|
|
+ data := entity.BiService.SelectBySql("SELECT userid,position_id FROM data_service.user_system WHERE status = 1 AND position_id in (?)", positionIds)
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
for _, v := range *data {
|
|
|
res[common.IntAll(v["position_id"])] = common.InterfaceToStr(v["userid"])
|