|
@@ -71,7 +71,7 @@ func AgentGoodsCopy(c *gin.Context) { |
|
|
defer sess.Close() |
|
|
defer sess.Close() |
|
|
sess.Begin() |
|
|
sess.Begin() |
|
|
var goods = make([]model.CommunityTeamGoods, 0) |
|
|
var goods = make([]model.CommunityTeamGoods, 0) |
|
|
sess.In("id", strings.Split(arg["ids"], ",")).Get(&goods) |
|
|
|
|
|
|
|
|
sess.In("id", strings.Split(arg["ids"], ",")).Find(&goods) |
|
|
for _, v := range goods { |
|
|
for _, v := range goods { |
|
|
id := v.Id |
|
|
id := v.Id |
|
|
v.Id = 0 |
|
|
v.Id = 0 |
|
|