...
|
...
|
@@ -58,7 +58,7 @@ public class ShopsBrandsMqListener extends AbstractMqListener implements Channel |
|
|
}
|
|
|
String idValue = shopsBrands.getId().toString();
|
|
|
shopsBrandsService.saveOrUpdate(shopsBrands);
|
|
|
logger.info("[func=updateData][step=saveToDb][indexName={}] [id={}][cost={}ms]", indexName, idValue, (System.currentTimeMillis() - begin));
|
|
|
logger.info("[func=updateData][step=saveToDb][id={}][cost={}ms]", idValue, (System.currentTimeMillis() - begin));
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -68,6 +68,6 @@ public class ShopsBrandsMqListener extends AbstractMqListener implements Channel |
|
|
}
|
|
|
long begin = System.currentTimeMillis();
|
|
|
shopsBrandsService.delete(Integer.valueOf(id));
|
|
|
logger.info("[func=deleteData][step=deleteFromDb][indexName={}] [id={}][cost={}ms]", indexName, id, (System.currentTimeMillis() - begin));
|
|
|
logger.info("[func=deleteData][step=deleteFromDb][id={}][cost={}ms]", id, (System.currentTimeMillis() - begin));
|
|
|
}
|
|
|
} |
...
|
...
|
|