...
|
...
|
@@ -211,7 +211,6 @@ public class GrassUserDataSyncServiceImpl implements IGrassUserDataSyncService { |
|
|
publicEntityManager.getTransaction().begin();
|
|
|
String sql = getBatchSql(list,praiseNumMap,attenNumMap,fansNumMap,favoriteNumMap);
|
|
|
publicEntityManager.createNativeQuery(sql).executeUpdate();
|
|
|
publicEntityManager.flush();
|
|
|
publicEntityManager.getTransaction().commit();
|
|
|
list.clear();
|
|
|
try{
|
...
|
...
|
@@ -225,7 +224,6 @@ public class GrassUserDataSyncServiceImpl implements IGrassUserDataSyncService { |
|
|
publicEntityManager.getTransaction().begin();
|
|
|
String sql = getBatchSql(list,praiseNumMap,attenNumMap,fansNumMap,favoriteNumMap);
|
|
|
publicEntityManager.createNativeQuery(sql).executeUpdate();
|
|
|
publicEntityManager.flush();
|
|
|
publicEntityManager.getTransaction().commit();
|
|
|
}
|
|
|
}
|
...
|
...
|
|