|
@@ -22,25 +22,31 @@ func GormSecTaskToHttpSecTask(secTask *gorm_model.YounggeeSecTaskInfo) *http_mod
|
|
TalentPlatformInfoSnap := secTask.TalentPlatformInfoSnap
|
|
TalentPlatformInfoSnap := secTask.TalentPlatformInfoSnap
|
|
regionCode, _ := strconv.Atoi(conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "region_code"), ""))
|
|
regionCode, _ := strconv.Atoi(conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "region_code"), ""))
|
|
return &http_model.SecTaskInfo{
|
|
return &http_model.SecTaskInfo{
|
|
- SelectionId: secTask.SelectionID,
|
|
|
|
- SecTaskId: secTask.TaskID,
|
|
|
|
- PlatformNickname: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "platform_nickname"), ""),
|
|
|
|
- FansCount: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "fans_count"), ""),
|
|
|
|
- HomePageCaptureUrl: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "home_page_capture_url"), ""),
|
|
|
|
- HomePageUrl: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "home_page_url"), ""),
|
|
|
|
- RegionCode: regionCode,
|
|
|
|
- DetailAddr: conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "detail_addr"), "") + " " + conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "receiver_name"), "") + " " + conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "phone_number"), ""),
|
|
|
|
- CreateDate: conv.MustString(secTask.CreateDate, "")[:19],
|
|
|
|
- SelectDate: conv.MustString(secTask.SelectDate, "")[:19],
|
|
|
|
- DeliveryDate: conv.MustString(secTask.DeliveryDate, "")[:19],
|
|
|
|
- CompleteDate: conv.MustString(secTask.CompleteDate, "")[:19],
|
|
|
|
- IsPayReward: secTask.IsPayReward,
|
|
|
|
- IsPayPayment: secTask.IsPayPayment,
|
|
|
|
- SignedTime: conv.MustString(secTask.SignedTime, "0000"),
|
|
|
|
- SaleNum: secTask.SaleNum,
|
|
|
|
- FreeStrategyId: secTask.FreeStrategyId,
|
|
|
|
- TalentId: secTask.TalentID,
|
|
|
|
- ProductId: secTask.ProductId,
|
|
|
|
|
|
+ SelectionId: secTask.SelectionID,
|
|
|
|
+ SecTaskId: secTask.TaskID,
|
|
|
|
+ PlatformNickname: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "platform_nickname"), ""),
|
|
|
|
+ FansCount: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "fans_count"), ""),
|
|
|
|
+ HomePageCaptureUrl: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "home_page_capture_url"), ""),
|
|
|
|
+ HomePageUrl: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "home_page_url"), ""),
|
|
|
|
+ RegionCode: regionCode,
|
|
|
|
+ DetailAddr: conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "detail_addr"), "") + " " + conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "receiver_name"), "") + " " + conv.MustString(gjson.Get(secTask.TalentPostAddrSnap, "phone_number"), ""),
|
|
|
|
+ CreateDate: conv.MustString(secTask.CreateDate, "")[:19],
|
|
|
|
+ SelectDate: conv.MustString(secTask.SelectDate, "")[:19],
|
|
|
|
+ DeliveryDate: conv.MustString(secTask.DeliveryDate, "")[:19],
|
|
|
|
+ CompleteDate: conv.MustString(secTask.CompleteDate, "")[:19],
|
|
|
|
+ IsPayReward: secTask.IsPayReward,
|
|
|
|
+ IsPayPayment: secTask.IsPayPayment,
|
|
|
|
+ SignedTime: conv.MustString(secTask.SignedTime, "0000"),
|
|
|
|
+ SaleNum: secTask.SaleNum,
|
|
|
|
+ FreeStrategyId: secTask.FreeStrategyId,
|
|
|
|
+ TalentId: secTask.TalentID,
|
|
|
|
+ ProductId: secTask.ProductId,
|
|
|
|
+ CreateLogisticUserId: secTask.CreateLogisticUserId,
|
|
|
|
+ CreateLogisticUserType: secTask.CreateLogisticUserType,
|
|
|
|
+ CreateLogisticUserName: secTask.CreateLogisticUserId,
|
|
|
|
+ ChooseTalentUserId: secTask.ChooseTalentUserId,
|
|
|
|
+ ChooseTalentUserType: secTask.ChooseTalentUserType,
|
|
|
|
+ ChooseTalentUserName: secTask.ChooseTalentUserId,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|