|
@@ -19,7 +19,13 @@ func MGormTaskLogisticsInfoListToHttpTaskLogisticsPreviewList(gormTaskLogisticsI
|
|
|
|
|
|
func MGormTaskLogisticsInfoToHttpTaskLogisticsPreview(TaskLogisticsInfo *http_model.TaskLogisticsInfo) *http_model.TaskLogisticsPreview {
|
|
func MGormTaskLogisticsInfoToHttpTaskLogisticsPreview(TaskLogisticsInfo *http_model.TaskLogisticsInfo) *http_model.TaskLogisticsPreview {
|
|
deliveryTime := conv.MustString(TaskLogisticsInfo.DeliveryTime)[0:19]
|
|
deliveryTime := conv.MustString(TaskLogisticsInfo.DeliveryTime)[0:19]
|
|
- signedTime := conv.MustString(TaskLogisticsInfo.SignedTime)[0:19]
|
|
|
|
|
|
+ //signedTime := conv.MustString(TaskLogisticsInfo.SignedTime)[0:19]
|
|
|
|
+ SignedTime := ""
|
|
|
|
+ if TaskLogisticsInfo.SignedTime == "" {
|
|
|
|
+ SignedTime = ""
|
|
|
|
+ } else {
|
|
|
|
+ SignedTime = TaskLogisticsInfo.SignedTime[:19]
|
|
|
|
+ }
|
|
return &http_model.TaskLogisticsPreview{
|
|
return &http_model.TaskLogisticsPreview{
|
|
TaskID: TaskLogisticsInfo.TaskID,
|
|
TaskID: TaskLogisticsInfo.TaskID,
|
|
PlatformNickname: conv.MustString(TaskLogisticsInfo.PlatformNickname),
|
|
PlatformNickname: conv.MustString(TaskLogisticsInfo.PlatformNickname),
|
|
@@ -30,7 +36,7 @@ func MGormTaskLogisticsInfoToHttpTaskLogisticsPreview(TaskLogisticsInfo *http_mo
|
|
CompanyName: conv.MustString(TaskLogisticsInfo.CompanyName),
|
|
CompanyName: conv.MustString(TaskLogisticsInfo.CompanyName),
|
|
LogisticsNumber: conv.MustString(TaskLogisticsInfo.LogisticsNumber),
|
|
LogisticsNumber: conv.MustString(TaskLogisticsInfo.LogisticsNumber),
|
|
DeliveryTime: deliveryTime,
|
|
DeliveryTime: deliveryTime,
|
|
- SignedTime: signedTime,
|
|
|
|
|
|
+ SignedTime: SignedTime,
|
|
ExplorestoreStarttime: TaskLogisticsInfo.ExplorestoreStarttime,
|
|
ExplorestoreStarttime: TaskLogisticsInfo.ExplorestoreStarttime,
|
|
ExplorestoreEndtime: TaskLogisticsInfo.ExplorestoreEndtime,
|
|
ExplorestoreEndtime: TaskLogisticsInfo.ExplorestoreEndtime,
|
|
ExplorestorePeriod: conv.MustString(TaskLogisticsInfo.ExplorestorePeriod),
|
|
ExplorestorePeriod: conv.MustString(TaskLogisticsInfo.ExplorestorePeriod),
|
|
@@ -50,6 +56,12 @@ func TaskLogisticsToTaskInfo(TaskLogisticss []*http_model.TaskLogistics) []*http
|
|
func GetTalentInfoStruct(TaskLogistics *http_model.TaskLogistics) *http_model.TaskLogisticsInfo {
|
|
func GetTalentInfoStruct(TaskLogistics *http_model.TaskLogistics) *http_model.TaskLogisticsInfo {
|
|
TalentPlatformInfoSnap := TaskLogistics.Talent.TalentPlatformInfoSnap
|
|
TalentPlatformInfoSnap := TaskLogistics.Talent.TalentPlatformInfoSnap
|
|
TalentPostAddrSnap := TaskLogistics.Talent.TalentPostAddrSnap
|
|
TalentPostAddrSnap := TaskLogistics.Talent.TalentPostAddrSnap
|
|
|
|
+ SignedTime := ""
|
|
|
|
+ if TaskLogistics.Logistics.SignedTime == nil {
|
|
|
|
+ SignedTime = ""
|
|
|
|
+ } else {
|
|
|
|
+ SignedTime = conv.MustString(TaskLogistics.Logistics.SignedTime, "")
|
|
|
|
+ }
|
|
return &http_model.TaskLogisticsInfo{
|
|
return &http_model.TaskLogisticsInfo{
|
|
TaskID: TaskLogistics.Talent.TaskID,
|
|
TaskID: TaskLogistics.Talent.TaskID,
|
|
PlatformNickname: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "platform_nickname")),
|
|
PlatformNickname: conv.MustString(gjson.Get(TalentPlatformInfoSnap, "platform_nickname")),
|
|
@@ -59,7 +71,7 @@ func GetTalentInfoStruct(TaskLogistics *http_model.TaskLogistics) *http_model.Ta
|
|
CompanyName: TaskLogistics.Logistics.CompanyName,
|
|
CompanyName: TaskLogistics.Logistics.CompanyName,
|
|
LogisticsNumber: TaskLogistics.Logistics.LogisticsNumber,
|
|
LogisticsNumber: TaskLogistics.Logistics.LogisticsNumber,
|
|
DeliveryTime: conv.MustString(TaskLogistics.Logistics.DeliveryTime),
|
|
DeliveryTime: conv.MustString(TaskLogistics.Logistics.DeliveryTime),
|
|
- SignedTime: conv.MustString(TaskLogistics.Logistics.SignedTime),
|
|
|
|
|
|
+ SignedTime: SignedTime,
|
|
ExplorestoreStarttime: TaskLogistics.Logistics.ExplorestoreStarttime,
|
|
ExplorestoreStarttime: TaskLogistics.Logistics.ExplorestoreStarttime,
|
|
ExplorestoreEndtime: TaskLogistics.Logistics.ExplorestoreEndtime,
|
|
ExplorestoreEndtime: TaskLogistics.Logistics.ExplorestoreEndtime,
|
|
ExplorestorePeriod: TaskLogistics.Logistics.ExplorestorePeriod,
|
|
ExplorestorePeriod: TaskLogistics.Logistics.ExplorestorePeriod,
|