Authored by 胡古飞

size更新时添加日志

@@ -85,7 +85,8 @@ public class TblSiteMqListener extends AbstractMqListener implements ChannelAwar @@ -85,7 +85,8 @@ public class TblSiteMqListener extends AbstractMqListener implements ChannelAwar
85 //update productIndex 85 //update productIndex
86 List<Integer> skns = tblProductService.getSknsBySiteId(tblSite.getSiteId()); 86 List<Integer> skns = tblProductService.getSknsBySiteId(tblSite.getSiteId());
87 if (CollectionUtils.isNotEmpty(skns)) { 87 if (CollectionUtils.isNotEmpty(skns)) {
88 - updateProductIndexForTbl(skns, begin, key); 88 + logger.info("[func=updateData][step=updateProductIndexForTbl][tableName=tblSite][id={}][skn size is [{}] ]",tblSite.getSiteId(), skns.size());
  89 + updateProductIndexForTbl(skns, begin, key);
89 } 90 }
90 String idValue = data.get(idField).toString(); 91 String idValue = data.get(idField).toString();
91 logger.info("[func=updateData][step=success][tableName=tblSite][id={}][cost={}ms]", idValue, (System.currentTimeMillis() - begin)); 92 logger.info("[func=updateData][step=success][tableName=tblSite][id={}][cost={}ms]", idValue, (System.currentTimeMillis() - begin));
@@ -105,10 +106,9 @@ public class TblSiteMqListener extends AbstractMqListener implements ChannelAwar @@ -105,10 +106,9 @@ public class TblSiteMqListener extends AbstractMqListener implements ChannelAwar
105 if(tblSite!=null){ 106 if(tblSite!=null){
106 List<Integer> skns = tblProductService.getSknsBySiteId(tblSite.getSiteId()); 107 List<Integer> skns = tblProductService.getSknsBySiteId(tblSite.getSiteId());
107 if (CollectionUtils.isNotEmpty(skns)) { 108 if (CollectionUtils.isNotEmpty(skns)) {
108 - updateProductIndexForTbl(skns, begin, key); 109 + updateProductIndexForTbl(skns, begin, key);
109 } 110 }
110 } 111 }
111 -  
112 logger.info("[func=deleteData][step=success][tableName=tblSite][id={}][cost={}ms]", id, (System.currentTimeMillis() - begin)); 112 logger.info("[func=deleteData][step=success][tableName=tblSite][id={}][cost={}ms]", id, (System.currentTimeMillis() - begin));
113 } 113 }
114 } 114 }