Bladeren bron

开始时间不为空

WH01243 3 jaren geleden
bovenliggende
commit
7453d049c6
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      service/orderService.go

+ 1 - 1
service/orderService.go

@@ -39,7 +39,7 @@ func (s OrderService) CreateOrder(in *jyOrder.Request) (int64, string, int64) {
 	order["applybill_taxnum"] = in.ApplybillTaxnum
 	order["applybill_company"] = in.ApplybillCompany
 	order["user_id"] = in.UserId
-	order["vip_starttime"] = util.ConversionDateTime(in.VipStarttime)
+	order["vip_starttime"] = util.If(in.VipStarttime == "", nil, in.VipStarttime)
 	order["vip_endtime"] = util.If(in.VipEndtime == "", nil, in.VipEndtime)
 	order["vip_type"] = in.VipType
 	order["salesperson"] = in.Salesperson