api/v1/masterOrder.go
@@ -40,6 +40,14 @@ return } if params.CodeRule.Method == 1 { autoCode := model.GetAutoCode(masterOrder.Id, ¶ms.CodeRule) m := map[string]interface{}{ "number": autoCode, } _ = model.NewMasterOrderSearch().SetId(masterOrder.Id).UpdateByMap(m) } ctx.Ok() } @@ -126,6 +134,7 @@ masterOrderModel.MemberId = masterOrder.MemberId masterOrderModel.ClientId = masterOrder.ClientId masterOrderModel.Money = masterOrder.Money masterOrderModel.CodeStandID = masterOrder.CodeStandID return ecode.OK, masterOrderModel }