This commit is contained in:
邹宗楠
2022-10-08 16:47:08 +08:00
parent 5343519bbb
commit 4baaf56c4d

View File

@@ -1717,7 +1717,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
}
if err == nil {
// globals.SugarLogger.Debug(utils.Format4Output(valid, false))
globals.SugarLogger.Debug("==============2525", utils.Format4Output(valid, false))
if len(valid) > 0 {
txDB, _ := dao.Begin(db)
defer func() {
@@ -1743,6 +1743,8 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
dao.Rollback(db, txDB)
return 0, err
}
globals.SugarLogger.Debug("==============num", num)
if num > 0 {
if globals.IsAddEvent {
mapBefore := refutil.FindMapAndStructMixed(valid, beforeStoreMap)