...
|
...
|
@@ -191,7 +191,9 @@ public class YohoNowDataSynService { |
|
|
needSyncList.add(articleLabel);
|
|
|
});
|
|
|
}
|
|
|
if(!publicEntityManager.getTransaction().isActive()){
|
|
|
publicEntityManager.getTransaction().begin();
|
|
|
}
|
|
|
StringBuilder sb = null;
|
|
|
for(PublicArticleLabel attention : needSyncList){
|
|
|
if(null == sb ){
|
...
|
...
|
@@ -208,7 +210,9 @@ public class YohoNowDataSynService { |
|
|
}
|
|
|
|
|
|
private void savePublicLabels(List<PublicLabel> needSyncLabelList){
|
|
|
if(!publicEntityManager.getTransaction().isActive()){
|
|
|
publicEntityManager.getTransaction().begin();
|
|
|
}
|
|
|
StringBuilder sb = null;
|
|
|
for(PublicLabel attention : needSyncLabelList){
|
|
|
if(null == sb ){
|
...
|
...
|
@@ -409,7 +413,9 @@ public class YohoNowDataSynService { |
|
|
}
|
|
|
|
|
|
private void savePublicUserAttentions(List<PublicUserAttention> userAttentions){
|
|
|
if(!publicEntityManager.getTransaction().isActive()){
|
|
|
publicEntityManager.getTransaction().begin();
|
|
|
}
|
|
|
StringBuilder sb = null;
|
|
|
for(PublicUserAttention attention : userAttentions){
|
|
|
if(null == sb ){
|
...
|
...
|
@@ -505,7 +511,9 @@ public class YohoNowDataSynService { |
|
|
}
|
|
|
|
|
|
private void savePublicUserPraises(List<PublicUserPraise> articlePraises){
|
|
|
if(!publicEntityManager.getTransaction().isActive()){
|
|
|
publicEntityManager.getTransaction().begin();
|
|
|
}
|
|
|
StringBuilder sb = null;
|
|
|
for(PublicUserPraise attention : articlePraises){
|
|
|
if(null == sb ){
|
...
|
...
|
|