Переглянути джерело

fix:编辑手机号修改

duxin 2 місяців тому
батько
коміт
1abd355c36
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      internal/controller/orderHandler.go

+ 2 - 2
internal/controller/orderHandler.go

@@ -232,7 +232,7 @@ func SaveOrderHandler(r *ghttp.Request) {
 				"is_backstage_order":    1,
 				"commission":            param.ChannelCommission,
 				"order_channel":         param.OrderChannel,
-				"create_time":           time.Now().Format(time.DateTime),
+				"create_time":           time.Now().Format("2006-01-02 15:04:05"),
 				"create_person":         userName,
 				"last_update_person":    userName,
 				"salesperson_entUserId": entUserId,
@@ -359,7 +359,7 @@ func UpdateOrderHandler(r *ghttp.Request) {
 				upOrder["audit_status"] = SwitchAudit(auditStatus)
 			}
 			//编辑回退订单或未完成订单
-			if _, err = g.DB().Ctx(ctx).Update(ctx, "dataexport_order", upOrder, "order_code=? and (order_status=0 or (audit_status <0 and order_status =-2))", param.OrderCode); err != nil {
+			if _, err = g.DB().Ctx(ctx).Update(ctx, "dataexport_order", upOrder, "order_code=? and order_status=0 ", param.OrderCode); err != nil {
 				return gerror.Wrap(err, "修改订单表内容异常")
 			}
 			//todo 删除已经不存在的商品