Authored by chaogeng

Merge branch 'test6.8.9'

... ... @@ -192,7 +192,9 @@ public class YohoNowDataSynService {
needSyncList.add(articleLabel);
});
}
if(!publicEntityManager.getTransaction().isActive()){
publicEntityManager.getTransaction().begin();
}
StringBuilder sb = null;
for(PublicArticleLabel attention : needSyncList){
if(null == sb ){
... ... @@ -209,7 +211,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 ){
... ... @@ -410,7 +414,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 ){
... ... @@ -506,7 +512,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 ){
... ...