|
@@ -83,6 +83,9 @@ func NewOrderSortingEnd(c *gin.Context) { |
|
|
GoodsTitle: record.GoodsTitle, |
|
|
GoodsTitle: record.GoodsTitle, |
|
|
Sku: record.Sku, |
|
|
Sku: record.Sku, |
|
|
} |
|
|
} |
|
|
|
|
|
var admin model.Staff |
|
|
|
|
|
sess.Where("id=?", recordFlow.AdminId).Get(&admin) |
|
|
|
|
|
recordFlow.AdminName = admin.Name |
|
|
one, err := sess.InsertOne(recordFlow) |
|
|
one, err := sess.InsertOne(recordFlow) |
|
|
if one == 0 || err != nil { |
|
|
if one == 0 || err != nil { |
|
|
sess.Rollback() |
|
|
sess.Rollback() |
|
|