|
@@ -158,6 +158,9 @@ func commNewMake(c *gin.Context, args map[string]string) { |
|
|
GoodsTitle: orderGoods.GoodsTitle, |
|
|
GoodsTitle: orderGoods.GoodsTitle, |
|
|
Sku: orderGoods.Sku, |
|
|
Sku: orderGoods.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() |
|
|