|
@@ -228,18 +228,19 @@ func (s DefaultService) GetPublicDefaultTalentList(param *vo.DefaultSearchParam)
|
|
|
}
|
|
|
for _, projectTaskInfo := range projectTaskInfos {
|
|
|
talentId := projectTaskInfo.TalentID
|
|
|
- talentInfo, _ := dao.TalentInfoDao{}.SelectTalentInfo(talentId)
|
|
|
- platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.SelectUserInfo(talentId)
|
|
|
+ talentInfo, _ := dao.TalentInfoDao{}.GetTalentInfo(talentId)
|
|
|
+ platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.GetUserInfo(projectTaskInfo.OpenID)
|
|
|
reTalentDefault := &vo.ReTalentDefault{
|
|
|
TalentId: talentId,
|
|
|
TalentPhone: talentInfo.TalentPhoneNumber,
|
|
|
TaskId: projectTaskInfo.TaskID,
|
|
|
DraftFee: projectTaskInfo.DraftFee,
|
|
|
- OpenId: platformKuaishouUserInfo.OpenId,
|
|
|
+ OpenId: platformKuaishouUserInfo.OpenID,
|
|
|
+ PlatformId: platformKuaishouUserInfo.PlatformID,
|
|
|
NickName: platformKuaishouUserInfo.NickName,
|
|
|
HeadUri: platformKuaishouUserInfo.HeadUri,
|
|
|
City: platformKuaishouUserInfo.City,
|
|
|
- Gender: talentInfo.Sex,
|
|
|
+ Gender: platformKuaishouUserInfo.Gender,
|
|
|
}
|
|
|
if defaultType == 1 {
|
|
|
reTalentDefault.DefaultTime = projectTaskInfo.SketchMissingTime.Format("2006-01-02 15:04:05")
|
|
@@ -296,8 +297,8 @@ func (s DefaultService) GetPublicDefaultTalentList(param *vo.DefaultSearchParam)
|
|
|
Data: resultMap,
|
|
|
}
|
|
|
return result, nil
|
|
|
- // 本地生活
|
|
|
} else if param.TaskType == 2 {
|
|
|
+ // 本地生活
|
|
|
var localLifeTaskInfos []entity.LocalLifeTaskInfo
|
|
|
var total int64
|
|
|
var err error
|
|
@@ -328,18 +329,19 @@ func (s DefaultService) GetPublicDefaultTalentList(param *vo.DefaultSearchParam)
|
|
|
}
|
|
|
for _, localLifeTaskInfo := range localLifeTaskInfos {
|
|
|
talentId := localLifeTaskInfo.TalentID
|
|
|
- talentInfo, _ := dao.TalentInfoDao{}.SelectTalentInfo(talentId)
|
|
|
- platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.SelectUserInfo(talentId)
|
|
|
+ talentInfo, _ := dao.TalentInfoDao{}.GetTalentInfo(talentId)
|
|
|
+ platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.GetUserInfo(localLifeTaskInfo.OpenID)
|
|
|
reTalentDefault := &vo.ReTalentDefault{
|
|
|
TalentId: talentId,
|
|
|
TalentPhone: talentInfo.TalentPhoneNumber,
|
|
|
TaskId: localLifeTaskInfo.TaskID,
|
|
|
DraftFee: localLifeTaskInfo.DraftFee,
|
|
|
- OpenId: platformKuaishouUserInfo.OpenId,
|
|
|
+ OpenId: platformKuaishouUserInfo.OpenID,
|
|
|
+ PlatformId: platformKuaishouUserInfo.PlatformID,
|
|
|
NickName: platformKuaishouUserInfo.NickName,
|
|
|
HeadUri: platformKuaishouUserInfo.HeadUri,
|
|
|
City: platformKuaishouUserInfo.City,
|
|
|
- Gender: talentInfo.Sex,
|
|
|
+ Gender: platformKuaishouUserInfo.Gender,
|
|
|
}
|
|
|
if defaultType == 1 {
|
|
|
reTalentDefault.DefaultTime = localLifeTaskInfo.SketchMissingTime.Format("2006-01-02 15:04:05")
|
|
@@ -455,16 +457,19 @@ func (s DefaultService) GetTargetDefaultTalentList(param *vo.DefaultSearchParam)
|
|
|
}
|
|
|
for _, projectTaskInfo := range projectTaskInfos {
|
|
|
talentId := projectTaskInfo.TalentID
|
|
|
- talentPhone, _ := dao.TalentInfoDao{}.SelectTalentPhone(talentId)
|
|
|
- platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.SelectUserInfo(talentId)
|
|
|
+ talentInfo, _ := dao.TalentInfoDao{}.GetTalentInfo(talentId)
|
|
|
+ platformKuaishouUserInfo, _ := dao.PlatformKuaishouUserInfoDao{}.GetUserInfo(projectTaskInfo.OpenID)
|
|
|
reTalentDefault := &vo.ReTalentDefault{
|
|
|
TalentId: talentId,
|
|
|
- TalentPhone: *talentPhone,
|
|
|
+ TalentPhone: talentInfo.TalentPhoneNumber,
|
|
|
+ TaskId: projectTaskInfo.TaskID,
|
|
|
DraftFee: projectTaskInfo.DraftFee,
|
|
|
- OpenId: platformKuaishouUserInfo.OpenId,
|
|
|
+ OpenId: platformKuaishouUserInfo.OpenID,
|
|
|
+ PlatformId: platformKuaishouUserInfo.PlatformID,
|
|
|
NickName: platformKuaishouUserInfo.NickName,
|
|
|
HeadUri: platformKuaishouUserInfo.HeadUri,
|
|
|
- City: "-",
|
|
|
+ City: platformKuaishouUserInfo.City,
|
|
|
+ Gender: platformKuaishouUserInfo.Gender,
|
|
|
}
|
|
|
if defaultType == 4 {
|
|
|
reTalentDefault.DefaultTime = projectTaskInfo.TerminateTime.Format("2006-01-02 15:04:05")
|