|
@@ -38,8 +38,12 @@ func (*logistics) Create(ctx context.Context, newLogistics http_model.CreateLogi
|
|
|
Logistics.LogisticsNumber = newLogistics.LogisticsNumber
|
|
|
Logistics.DeliveryTime = time.Now()
|
|
|
} else if ThingsType == 3 {
|
|
|
- Logistics.ExplorestoreStarttime = newLogistics.ExplorestoreStarttime
|
|
|
- Logistics.ExplorestoreEndtime = newLogistics.ExplorestoreEndtime
|
|
|
+ fmt.Println("开始时间:", newLogistics.ExplorestoreStarttime)
|
|
|
+ fmt.Println("结束时间:", newLogistics.ExplorestoreEndtime)
|
|
|
+ ExplorestoreStarttime, _ := time.ParseInLocation("2006-01-02 15:04:05", newLogistics.ExplorestoreStarttime, time.Local)
|
|
|
+ ExplorestoreEndtime, _ := time.ParseInLocation("2006-01-02 15:04:05", newLogistics.ExplorestoreEndtime, time.Local)
|
|
|
+ Logistics.ExplorestoreStarttime = ExplorestoreStarttime
|
|
|
+ Logistics.ExplorestoreEndtime = ExplorestoreEndtime
|
|
|
// Logistics.ExplorestorePeriod = newLogistics.ExplorestorePeriod
|
|
|
} else {
|
|
|
Logistics.CouponCodeInformation = newLogistics.CouponCodeInformation
|
|
@@ -128,8 +132,11 @@ func (*logistics) Update(ctx context.Context, newLogistics http_model.CreateLogi
|
|
|
Logistics.LogisticsNumber = newLogistics.LogisticsNumber
|
|
|
} else if ThingsType == 3 {
|
|
|
fmt.Println("开始时间:", newLogistics.ExplorestoreStarttime)
|
|
|
- Logistics.ExplorestoreStarttime = newLogistics.ExplorestoreStarttime
|
|
|
- Logistics.ExplorestoreEndtime = newLogistics.ExplorestoreEndtime
|
|
|
+ fmt.Println("结束时间:", newLogistics.ExplorestoreEndtime)
|
|
|
+ ExplorestoreStarttime, _ := time.ParseInLocation("2006-01-02 15:04:05", newLogistics.ExplorestoreStarttime, time.Local)
|
|
|
+ ExplorestoreEndtime, _ := time.ParseInLocation("2006-01-02 15:04:05", newLogistics.ExplorestoreEndtime, time.Local)
|
|
|
+ Logistics.ExplorestoreStarttime = ExplorestoreStarttime
|
|
|
+ Logistics.ExplorestoreEndtime = ExplorestoreEndtime
|
|
|
// Logistics.ExplorestorePeriod = newLogistics.ExplorestorePeriod
|
|
|
} else {
|
|
|
Logistics.CouponCodeInformation = newLogistics.CouponCodeInformation
|