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