copy商品测试sql
This commit is contained in:
@@ -1619,14 +1619,15 @@ func CopyStoreSkus(ctx *jxcontext.Context, fromStoreID int, toStoreIDs []int, co
|
|||||||
sqlParams2 := []interface{}{
|
sqlParams2 := []interface{}{
|
||||||
toStoreID, toStoreID, utils.DefaultTimeValue,
|
toStoreID, toStoreID, utils.DefaultTimeValue,
|
||||||
}
|
}
|
||||||
fmt.Println(sql2)
|
num3, err := dao.ExecuteSQL(db, sql2, sqlParams2)
|
||||||
fmt.Println(sqlParams2)
|
|
||||||
_, err = dao.ExecuteSQL(db, sql2, sqlParams2)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
dao.Rollback(db)
|
dao.Rollback(db)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
fmt.Println(sql2)
|
||||||
|
fmt.Println(sqlParams2)
|
||||||
|
fmt.Println(num3)
|
||||||
globals.SugarLogger.Debugf("CopyStoreSkus fromStoreID:%d, toStoreID:%d, trackInfo:%s num3:%d", fromStoreID, toStoreID, ctx.GetTrackInfo(), num2)
|
globals.SugarLogger.Debugf("CopyStoreSkus fromStoreID:%d, toStoreID:%d, trackInfo:%s num3:%d", fromStoreID, toStoreID, ctx.GetTrackInfo(), num2)
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user