|
@@ -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 删除已经不存在的商品
|