|
@@ -38,7 +38,6 @@ func (*logistics) Create(ctx context.Context, newLogistics http_model.CreateLogi
|
|
|
Logistics.LogisticsNumber = newLogistics.LogisticsNumber
|
|
|
Logistics.DeliveryTime = time.Now()
|
|
|
} else if ThingsType == 3 {
|
|
|
- fmt.Println("开始时间:", newLogistics.ExplorestoreStarttime)
|
|
|
Logistics.ExplorestoreStarttime = newLogistics.ExplorestoreStarttime
|
|
|
Logistics.ExplorestoreEndtime = newLogistics.ExplorestoreEndtime
|
|
|
// Logistics.ExplorestorePeriod = newLogistics.ExplorestorePeriod
|
|
@@ -79,6 +78,13 @@ func (*logistics) Create(ctx context.Context, newLogistics http_model.CreateLogi
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
+ // 修改task_info中发货状态
|
|
|
+ err = db.UpdateLogisticsDate(ctx, Logistics.TaskID)
|
|
|
+ if err != nil {
|
|
|
+ logrus.WithContext(ctx).Errorf("[logistics service] call UpdateLogisticsDate error,err:%+v", err)
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+
|
|
|
// 对应招募策略待发货--,已发货++
|
|
|
|
|
|
res := &http_model.CreateLogisticsData{
|