提交 e7372eb0 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码

上级 d91c4e85
...@@ -17,6 +17,7 @@ import java.util.List; ...@@ -17,6 +17,7 @@ import java.util.List;
@Slf4j @Slf4j
@Import({ @Import({
com.alibaba.cloud.seata.feign.SeataFeignClientAutoConfiguration.class,
FeignClientsConfiguration.class FeignClientsConfiguration.class
}) })
@EnableDiscoveryClient @EnableDiscoveryClient
......
...@@ -28,6 +28,7 @@ import java.util.List; ...@@ -28,6 +28,7 @@ import java.util.List;
// } // }
) )
@Import({ @Import({
com.alibaba.cloud.seata.feign.SeataFeignClientAutoConfiguration.class,
org.springframework.cloud.openfeign.FeignClientsConfiguration.class org.springframework.cloud.openfeign.FeignClientsConfiguration.class
}) })
@EnableAsync @EnableAsync
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.asset.domain.Asset; import cn.ibizlab.businesscentral.core.asset.domain.Asset;
...@@ -119,9 +120,7 @@ public class AssetServiceImpl extends ServiceImpl<AssetMapper, Asset> implements ...@@ -119,9 +120,7 @@ public class AssetServiceImpl extends ServiceImpl<AssetMapper, Asset> implements
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Asset et) { public boolean saveOrUpdate(Asset et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.asset.domain.WorkOrder; import cn.ibizlab.businesscentral.core.asset.domain.WorkOrder;
...@@ -119,9 +120,7 @@ public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrder ...@@ -119,9 +120,7 @@ public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderMapper, WorkOrder
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(WorkOrder et) { public boolean saveOrUpdate(WorkOrder et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Account; import cn.ibizlab.businesscentral.core.base.domain.Account;
...@@ -195,9 +196,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl ...@@ -195,9 +196,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Account et) { public boolean saveOrUpdate(Account et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.ActivityMimeatTachment; import cn.ibizlab.businesscentral.core.base.domain.ActivityMimeatTachment;
...@@ -119,9 +120,7 @@ public class ActivityMimeatTachmentServiceImpl extends ServiceImpl<ActivityMimea ...@@ -119,9 +120,7 @@ public class ActivityMimeatTachmentServiceImpl extends ServiceImpl<ActivityMimea
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ActivityMimeatTachment et) { public boolean saveOrUpdate(ActivityMimeatTachment et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.ActivityParty; import cn.ibizlab.businesscentral.core.base.domain.ActivityParty;
...@@ -125,9 +126,7 @@ public class ActivityPartyServiceImpl extends ServiceImpl<ActivityPartyMapper, A ...@@ -125,9 +126,7 @@ public class ActivityPartyServiceImpl extends ServiceImpl<ActivityPartyMapper, A
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ActivityParty et) { public boolean saveOrUpdate(ActivityParty et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.ActivityPointer; import cn.ibizlab.businesscentral.core.base.domain.ActivityPointer;
...@@ -134,9 +135,7 @@ public class ActivityPointerServiceImpl extends ServiceImpl<ActivityPointerMappe ...@@ -134,9 +135,7 @@ public class ActivityPointerServiceImpl extends ServiceImpl<ActivityPointerMappe
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ActivityPointer et) { public boolean saveOrUpdate(ActivityPointer et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Annotation; import cn.ibizlab.businesscentral.core.base.domain.Annotation;
...@@ -119,9 +120,7 @@ public class AnnotationServiceImpl extends ServiceImpl<AnnotationMapper, Annotat ...@@ -119,9 +120,7 @@ public class AnnotationServiceImpl extends ServiceImpl<AnnotationMapper, Annotat
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Annotation et) { public boolean saveOrUpdate(Annotation et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Appointment; import cn.ibizlab.businesscentral.core.base.domain.Appointment;
...@@ -131,9 +132,7 @@ public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appoi ...@@ -131,9 +132,7 @@ public class AppointmentServiceImpl extends ServiceImpl<AppointmentMapper, Appoi
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Appointment et) { public boolean saveOrUpdate(Appointment et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.BusinessUnitNewsArticle; import cn.ibizlab.businesscentral.core.base.domain.BusinessUnitNewsArticle;
...@@ -119,9 +120,7 @@ public class BusinessUnitNewsArticleServiceImpl extends ServiceImpl<BusinessUnit ...@@ -119,9 +120,7 @@ public class BusinessUnitNewsArticleServiceImpl extends ServiceImpl<BusinessUnit
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BusinessUnitNewsArticle et) { public boolean saveOrUpdate(BusinessUnitNewsArticle et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.BusinessUnit; import cn.ibizlab.businesscentral.core.base.domain.BusinessUnit;
...@@ -154,9 +155,7 @@ public class BusinessUnitServiceImpl extends ServiceImpl<BusinessUnitMapper, Bus ...@@ -154,9 +155,7 @@ public class BusinessUnitServiceImpl extends ServiceImpl<BusinessUnitMapper, Bus
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BusinessUnit et) { public boolean saveOrUpdate(BusinessUnit et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Calendar; import cn.ibizlab.businesscentral.core.base.domain.Calendar;
...@@ -133,9 +134,7 @@ public class CalendarServiceImpl extends ServiceImpl<CalendarMapper, Calendar> i ...@@ -133,9 +134,7 @@ public class CalendarServiceImpl extends ServiceImpl<CalendarMapper, Calendar> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Calendar et) { public boolean saveOrUpdate(Calendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Category; import cn.ibizlab.businesscentral.core.base.domain.Category;
...@@ -124,9 +125,7 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i ...@@ -124,9 +125,7 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Category et) { public boolean saveOrUpdate(Category et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Contact; import cn.ibizlab.businesscentral.core.base.domain.Contact;
...@@ -189,9 +190,7 @@ public class ContactServiceImpl extends ServiceImpl<ContactMapper, Contact> impl ...@@ -189,9 +190,7 @@ public class ContactServiceImpl extends ServiceImpl<ContactMapper, Contact> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Contact et) { public boolean saveOrUpdate(Contact et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.CustomerAddress; import cn.ibizlab.businesscentral.core.base.domain.CustomerAddress;
...@@ -128,9 +129,7 @@ public class CustomerAddressServiceImpl extends ServiceImpl<CustomerAddressMappe ...@@ -128,9 +129,7 @@ public class CustomerAddressServiceImpl extends ServiceImpl<CustomerAddressMappe
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CustomerAddress et) { public boolean saveOrUpdate(CustomerAddress et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Email; import cn.ibizlab.businesscentral.core.base.domain.Email;
...@@ -136,9 +137,7 @@ public class EmailServiceImpl extends ServiceImpl<EmailMapper, Email> implements ...@@ -136,9 +137,7 @@ public class EmailServiceImpl extends ServiceImpl<EmailMapper, Email> implements
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Email et) { public boolean saveOrUpdate(Email et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Fax; import cn.ibizlab.businesscentral.core.base.domain.Fax;
...@@ -131,9 +132,7 @@ public class FaxServiceImpl extends ServiceImpl<FaxMapper, Fax> implements IFaxS ...@@ -131,9 +132,7 @@ public class FaxServiceImpl extends ServiceImpl<FaxMapper, Fax> implements IFaxS
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Fax et) { public boolean saveOrUpdate(Fax et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Feedback; import cn.ibizlab.businesscentral.core.base.domain.Feedback;
...@@ -125,9 +126,7 @@ public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> i ...@@ -125,9 +126,7 @@ public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Feedback et) { public boolean saveOrUpdate(Feedback et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.IBizAudit; import cn.ibizlab.businesscentral.core.base.domain.IBizAudit;
...@@ -119,9 +120,7 @@ public class IBizAuditServiceImpl extends ServiceImpl<IBizAuditMapper, IBizAudit ...@@ -119,9 +120,7 @@ public class IBizAuditServiceImpl extends ServiceImpl<IBizAuditMapper, IBizAudit
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(IBizAudit et) { public boolean saveOrUpdate(IBizAudit et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.KnowledgeArticle; import cn.ibizlab.businesscentral.core.base.domain.KnowledgeArticle;
...@@ -144,9 +145,7 @@ public class KnowledgeArticleServiceImpl extends ServiceImpl<KnowledgeArticleMap ...@@ -144,9 +145,7 @@ public class KnowledgeArticleServiceImpl extends ServiceImpl<KnowledgeArticleMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(KnowledgeArticle et) { public boolean saveOrUpdate(KnowledgeArticle et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.KnowledgeArticleViews; import cn.ibizlab.businesscentral.core.base.domain.KnowledgeArticleViews;
...@@ -122,9 +123,7 @@ public class KnowledgeArticleViewsServiceImpl extends ServiceImpl<KnowledgeArtic ...@@ -122,9 +123,7 @@ public class KnowledgeArticleViewsServiceImpl extends ServiceImpl<KnowledgeArtic
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(KnowledgeArticleViews et) { public boolean saveOrUpdate(KnowledgeArticleViews et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.KnowledgeBaseRecord; import cn.ibizlab.businesscentral.core.base.domain.KnowledgeBaseRecord;
...@@ -122,9 +123,7 @@ public class KnowledgeBaseRecordServiceImpl extends ServiceImpl<KnowledgeBaseRec ...@@ -122,9 +123,7 @@ public class KnowledgeBaseRecordServiceImpl extends ServiceImpl<KnowledgeBaseRec
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(KnowledgeBaseRecord et) { public boolean saveOrUpdate(KnowledgeBaseRecord et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.LanguageLocale; import cn.ibizlab.businesscentral.core.base.domain.LanguageLocale;
...@@ -122,9 +123,7 @@ public class LanguageLocaleServiceImpl extends ServiceImpl<LanguageLocaleMapper, ...@@ -122,9 +123,7 @@ public class LanguageLocaleServiceImpl extends ServiceImpl<LanguageLocaleMapper,
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(LanguageLocale et) { public boolean saveOrUpdate(LanguageLocale et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Letter; import cn.ibizlab.businesscentral.core.base.domain.Letter;
...@@ -131,9 +132,7 @@ public class LetterServiceImpl extends ServiceImpl<LetterMapper, Letter> impleme ...@@ -131,9 +132,7 @@ public class LetterServiceImpl extends ServiceImpl<LetterMapper, Letter> impleme
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Letter et) { public boolean saveOrUpdate(Letter et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Metric; import cn.ibizlab.businesscentral.core.base.domain.Metric;
...@@ -122,9 +123,7 @@ public class MetricServiceImpl extends ServiceImpl<MetricMapper, Metric> impleme ...@@ -122,9 +123,7 @@ public class MetricServiceImpl extends ServiceImpl<MetricMapper, Metric> impleme
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Metric et) { public boolean saveOrUpdate(Metric et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.MultiPickData; import cn.ibizlab.businesscentral.core.base.domain.MultiPickData;
...@@ -119,9 +120,7 @@ public class MultiPickDataServiceImpl extends ServiceImpl<MultiPickDataMapper, M ...@@ -119,9 +120,7 @@ public class MultiPickDataServiceImpl extends ServiceImpl<MultiPickDataMapper, M
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(MultiPickData et) { public boolean saveOrUpdate(MultiPickData et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Organization; import cn.ibizlab.businesscentral.core.base.domain.Organization;
...@@ -128,9 +129,7 @@ public class OrganizationServiceImpl extends ServiceImpl<OrganizationMapper, Org ...@@ -128,9 +129,7 @@ public class OrganizationServiceImpl extends ServiceImpl<OrganizationMapper, Org
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Organization et) { public boolean saveOrUpdate(Organization et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.PersonalDocumentTemplate; import cn.ibizlab.businesscentral.core.base.domain.PersonalDocumentTemplate;
...@@ -119,9 +120,7 @@ public class PersonalDocumentTemplateServiceImpl extends ServiceImpl<PersonalDoc ...@@ -119,9 +120,7 @@ public class PersonalDocumentTemplateServiceImpl extends ServiceImpl<PersonalDoc
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(PersonalDocumentTemplate et) { public boolean saveOrUpdate(PersonalDocumentTemplate et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.PhoneCall; import cn.ibizlab.businesscentral.core.base.domain.PhoneCall;
...@@ -131,9 +132,7 @@ public class PhoneCallServiceImpl extends ServiceImpl<PhoneCallMapper, PhoneCall ...@@ -131,9 +132,7 @@ public class PhoneCallServiceImpl extends ServiceImpl<PhoneCallMapper, PhoneCall
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(PhoneCall et) { public boolean saveOrUpdate(PhoneCall et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Position; import cn.ibizlab.businesscentral.core.base.domain.Position;
...@@ -124,9 +125,7 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i ...@@ -124,9 +125,7 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Position et) { public boolean saveOrUpdate(Position et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Post; import cn.ibizlab.businesscentral.core.base.domain.Post;
...@@ -119,9 +120,7 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP ...@@ -119,9 +120,7 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Post et) { public boolean saveOrUpdate(Post et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Relationships; import cn.ibizlab.businesscentral.core.base.domain.Relationships;
...@@ -119,9 +120,7 @@ public class RelationshipsServiceImpl extends ServiceImpl<RelationshipsMapper, R ...@@ -119,9 +120,7 @@ public class RelationshipsServiceImpl extends ServiceImpl<RelationshipsMapper, R
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Relationships et) { public boolean saveOrUpdate(Relationships et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.SiteMap; import cn.ibizlab.businesscentral.core.base.domain.SiteMap;
...@@ -119,9 +120,7 @@ public class SiteMapServiceImpl extends ServiceImpl<SiteMapMapper, SiteMap> impl ...@@ -119,9 +120,7 @@ public class SiteMapServiceImpl extends ServiceImpl<SiteMapMapper, SiteMap> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(SiteMap et) { public boolean saveOrUpdate(SiteMap et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Site; import cn.ibizlab.businesscentral.core.base.domain.Site;
...@@ -128,9 +129,7 @@ public class SiteServiceImpl extends ServiceImpl<SiteMapper, Site> implements IS ...@@ -128,9 +129,7 @@ public class SiteServiceImpl extends ServiceImpl<SiteMapper, Site> implements IS
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Site et) { public boolean saveOrUpdate(Site et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.SlaItem; import cn.ibizlab.businesscentral.core.base.domain.SlaItem;
...@@ -122,9 +123,7 @@ public class SlaItemServiceImpl extends ServiceImpl<SlaItemMapper, SlaItem> impl ...@@ -122,9 +123,7 @@ public class SlaItemServiceImpl extends ServiceImpl<SlaItemMapper, SlaItem> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(SlaItem et) { public boolean saveOrUpdate(SlaItem et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.SlaKpiInstance; import cn.ibizlab.businesscentral.core.base.domain.SlaKpiInstance;
...@@ -131,9 +132,7 @@ public class SlaKpiInstanceServiceImpl extends ServiceImpl<SlaKpiInstanceMapper, ...@@ -131,9 +132,7 @@ public class SlaKpiInstanceServiceImpl extends ServiceImpl<SlaKpiInstanceMapper,
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(SlaKpiInstance et) { public boolean saveOrUpdate(SlaKpiInstance et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Sla; import cn.ibizlab.businesscentral.core.base.domain.Sla;
...@@ -206,9 +207,7 @@ public class SlaServiceImpl extends ServiceImpl<SlaMapper, Sla> implements ISlaS ...@@ -206,9 +207,7 @@ public class SlaServiceImpl extends ServiceImpl<SlaMapper, Sla> implements ISlaS
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Sla et) { public boolean saveOrUpdate(Sla et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Subject; import cn.ibizlab.businesscentral.core.base.domain.Subject;
...@@ -133,9 +134,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl ...@@ -133,9 +134,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Subject et) { public boolean saveOrUpdate(Subject et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Task; import cn.ibizlab.businesscentral.core.base.domain.Task;
...@@ -131,9 +132,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT ...@@ -131,9 +132,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements IT
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Task et) { public boolean saveOrUpdate(Task et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Team; import cn.ibizlab.businesscentral.core.base.domain.Team;
...@@ -134,9 +135,7 @@ public class TeamServiceImpl extends ServiceImpl<TeamMapper, Team> implements IT ...@@ -134,9 +135,7 @@ public class TeamServiceImpl extends ServiceImpl<TeamMapper, Team> implements IT
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Team et) { public boolean saveOrUpdate(Team et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.TeamTemplate; import cn.ibizlab.businesscentral.core.base.domain.TeamTemplate;
...@@ -122,9 +123,7 @@ public class TeamTemplateServiceImpl extends ServiceImpl<TeamTemplateMapper, Tea ...@@ -122,9 +123,7 @@ public class TeamTemplateServiceImpl extends ServiceImpl<TeamTemplateMapper, Tea
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(TeamTemplate et) { public boolean saveOrUpdate(TeamTemplate et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Template; import cn.ibizlab.businesscentral.core.base.domain.Template;
...@@ -125,9 +126,7 @@ public class TemplateServiceImpl extends ServiceImpl<TemplateMapper, Template> i ...@@ -125,9 +126,7 @@ public class TemplateServiceImpl extends ServiceImpl<TemplateMapper, Template> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Template et) { public boolean saveOrUpdate(Template et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Territory; import cn.ibizlab.businesscentral.core.base.domain.Territory;
...@@ -130,9 +131,7 @@ public class TerritoryServiceImpl extends ServiceImpl<TerritoryMapper, Territory ...@@ -130,9 +131,7 @@ public class TerritoryServiceImpl extends ServiceImpl<TerritoryMapper, Territory
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Territory et) { public boolean saveOrUpdate(Territory et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.TimezoneDefinition; import cn.ibizlab.businesscentral.core.base.domain.TimezoneDefinition;
...@@ -125,9 +126,7 @@ public class TimezoneDefinitionServiceImpl extends ServiceImpl<TimezoneDefinitio ...@@ -125,9 +126,7 @@ public class TimezoneDefinitionServiceImpl extends ServiceImpl<TimezoneDefinitio
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(TimezoneDefinition et) { public boolean saveOrUpdate(TimezoneDefinition et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.TimezoneLocalizedName; import cn.ibizlab.businesscentral.core.base.domain.TimezoneLocalizedName;
...@@ -122,9 +123,7 @@ public class TimezoneLocalizedNameServiceImpl extends ServiceImpl<TimezoneLocali ...@@ -122,9 +123,7 @@ public class TimezoneLocalizedNameServiceImpl extends ServiceImpl<TimezoneLocali
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(TimezoneLocalizedName et) { public boolean saveOrUpdate(TimezoneLocalizedName et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.TimezoneRule; import cn.ibizlab.businesscentral.core.base.domain.TimezoneRule;
...@@ -122,9 +123,7 @@ public class TimezoneRuleServiceImpl extends ServiceImpl<TimezoneRuleMapper, Tim ...@@ -122,9 +123,7 @@ public class TimezoneRuleServiceImpl extends ServiceImpl<TimezoneRuleMapper, Tim
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(TimezoneRule et) { public boolean saveOrUpdate(TimezoneRule et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency; import cn.ibizlab.businesscentral.core.base.domain.TransactionCurrency;
...@@ -341,9 +342,7 @@ public class TransactionCurrencyServiceImpl extends ServiceImpl<TransactionCurre ...@@ -341,9 +342,7 @@ public class TransactionCurrencyServiceImpl extends ServiceImpl<TransactionCurre
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(TransactionCurrency et) { public boolean saveOrUpdate(TransactionCurrency et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.UomSchedule; import cn.ibizlab.businesscentral.core.base.domain.UomSchedule;
...@@ -131,9 +132,7 @@ public class UomScheduleServiceImpl extends ServiceImpl<UomScheduleMapper, UomSc ...@@ -131,9 +132,7 @@ public class UomScheduleServiceImpl extends ServiceImpl<UomScheduleMapper, UomSc
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(UomSchedule et) { public boolean saveOrUpdate(UomSchedule et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.base.domain.Uom; import cn.ibizlab.businesscentral.core.base.domain.Uom;
...@@ -151,9 +152,7 @@ public class UomServiceImpl extends ServiceImpl<UomMapper, Uom> implements IUomS ...@@ -151,9 +152,7 @@ public class UomServiceImpl extends ServiceImpl<UomMapper, Uom> implements IUomS
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Uom et) { public boolean saveOrUpdate(Uom et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.AnnualFiscalCalendar; import cn.ibizlab.businesscentral.core.finance.domain.AnnualFiscalCalendar;
...@@ -122,9 +123,7 @@ public class AnnualFiscalCalendarServiceImpl extends ServiceImpl<AnnualFiscalCal ...@@ -122,9 +123,7 @@ public class AnnualFiscalCalendarServiceImpl extends ServiceImpl<AnnualFiscalCal
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(AnnualFiscalCalendar et) { public boolean saveOrUpdate(AnnualFiscalCalendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.FixedMonthlyFiscalCalendar; import cn.ibizlab.businesscentral.core.finance.domain.FixedMonthlyFiscalCalendar;
...@@ -122,9 +123,7 @@ public class FixedMonthlyFiscalCalendarServiceImpl extends ServiceImpl<FixedMont ...@@ -122,9 +123,7 @@ public class FixedMonthlyFiscalCalendarServiceImpl extends ServiceImpl<FixedMont
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(FixedMonthlyFiscalCalendar et) { public boolean saveOrUpdate(FixedMonthlyFiscalCalendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.InvoiceDetail; import cn.ibizlab.businesscentral.core.finance.domain.InvoiceDetail;
...@@ -141,9 +142,7 @@ public class InvoiceDetailServiceImpl extends ServiceImpl<InvoiceDetailMapper, I ...@@ -141,9 +142,7 @@ public class InvoiceDetailServiceImpl extends ServiceImpl<InvoiceDetailMapper, I
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(InvoiceDetail et) { public boolean saveOrUpdate(InvoiceDetail et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.Invoice; import cn.ibizlab.businesscentral.core.finance.domain.Invoice;
...@@ -171,9 +172,7 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl ...@@ -171,9 +172,7 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Invoice et) { public boolean saveOrUpdate(Invoice et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.MonthlyFiscalCalendar; import cn.ibizlab.businesscentral.core.finance.domain.MonthlyFiscalCalendar;
...@@ -122,9 +123,7 @@ public class MonthlyFiscalCalendarServiceImpl extends ServiceImpl<MonthlyFiscalC ...@@ -122,9 +123,7 @@ public class MonthlyFiscalCalendarServiceImpl extends ServiceImpl<MonthlyFiscalC
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(MonthlyFiscalCalendar et) { public boolean saveOrUpdate(MonthlyFiscalCalendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.QuarterlyFiscalCalendar; import cn.ibizlab.businesscentral.core.finance.domain.QuarterlyFiscalCalendar;
...@@ -122,9 +123,7 @@ public class QuarterlyFiscalCalendarServiceImpl extends ServiceImpl<QuarterlyFis ...@@ -122,9 +123,7 @@ public class QuarterlyFiscalCalendarServiceImpl extends ServiceImpl<QuarterlyFis
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(QuarterlyFiscalCalendar et) { public boolean saveOrUpdate(QuarterlyFiscalCalendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.finance.domain.SemiannualFiscalCalendar; import cn.ibizlab.businesscentral.core.finance.domain.SemiannualFiscalCalendar;
...@@ -122,9 +123,7 @@ public class SemiannualFiscalCalendarServiceImpl extends ServiceImpl<SemiannualF ...@@ -122,9 +123,7 @@ public class SemiannualFiscalCalendarServiceImpl extends ServiceImpl<SemiannualF
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(SemiannualFiscalCalendar et) { public boolean saveOrUpdate(SemiannualFiscalCalendar et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.humanresource.domain.Attendance; import cn.ibizlab.businesscentral.core.humanresource.domain.Attendance;
...@@ -119,9 +120,7 @@ public class AttendanceServiceImpl extends ServiceImpl<AttendanceMapper, Attenda ...@@ -119,9 +120,7 @@ public class AttendanceServiceImpl extends ServiceImpl<AttendanceMapper, Attenda
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Attendance et) { public boolean saveOrUpdate(Attendance et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.humanresource.domain.Company; import cn.ibizlab.businesscentral.core.humanresource.domain.Company;
...@@ -119,9 +120,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl ...@@ -119,9 +120,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Company et) { public boolean saveOrUpdate(Company et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.humanresource.domain.Employee; import cn.ibizlab.businesscentral.core.humanresource.domain.Employee;
...@@ -119,9 +120,7 @@ public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> i ...@@ -119,9 +120,7 @@ public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Employee et) { public boolean saveOrUpdate(Employee et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.humanresource.domain.Leave; import cn.ibizlab.businesscentral.core.humanresource.domain.Leave;
...@@ -119,9 +120,7 @@ public class LeaveServiceImpl extends ServiceImpl<LeaveMapper, Leave> implements ...@@ -119,9 +120,7 @@ public class LeaveServiceImpl extends ServiceImpl<LeaveMapper, Leave> implements
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Leave et) { public boolean saveOrUpdate(Leave et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.CampaignActivity; import cn.ibizlab.businesscentral.core.marketing.domain.CampaignActivity;
...@@ -125,9 +126,7 @@ public class CampaignActivityServiceImpl extends ServiceImpl<CampaignActivityMap ...@@ -125,9 +126,7 @@ public class CampaignActivityServiceImpl extends ServiceImpl<CampaignActivityMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CampaignActivity et) { public boolean saveOrUpdate(CampaignActivity et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.CampaignCampaign; import cn.ibizlab.businesscentral.core.marketing.domain.CampaignCampaign;
...@@ -127,9 +128,7 @@ public class CampaignCampaignServiceImpl extends ServiceImpl<CampaignCampaignMap ...@@ -127,9 +128,7 @@ public class CampaignCampaignServiceImpl extends ServiceImpl<CampaignCampaignMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CampaignCampaign et) { public boolean saveOrUpdate(CampaignCampaign et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.CampaignList; import cn.ibizlab.businesscentral.core.marketing.domain.CampaignList;
...@@ -130,9 +131,7 @@ public class CampaignListServiceImpl extends ServiceImpl<CampaignListMapper, Cam ...@@ -130,9 +131,7 @@ public class CampaignListServiceImpl extends ServiceImpl<CampaignListMapper, Cam
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CampaignList et) { public boolean saveOrUpdate(CampaignList et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.CampaignResponse; import cn.ibizlab.businesscentral.core.marketing.domain.CampaignResponse;
...@@ -131,9 +132,7 @@ public class CampaignResponseServiceImpl extends ServiceImpl<CampaignResponseMap ...@@ -131,9 +132,7 @@ public class CampaignResponseServiceImpl extends ServiceImpl<CampaignResponseMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CampaignResponse et) { public boolean saveOrUpdate(CampaignResponse et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.Campaign; import cn.ibizlab.businesscentral.core.marketing.domain.Campaign;
...@@ -163,9 +164,7 @@ public class CampaignServiceImpl extends ServiceImpl<CampaignMapper, Campaign> i ...@@ -163,9 +164,7 @@ public class CampaignServiceImpl extends ServiceImpl<CampaignMapper, Campaign> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Campaign et) { public boolean saveOrUpdate(Campaign et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.IBizList; import cn.ibizlab.businesscentral.core.marketing.domain.IBizList;
...@@ -154,9 +155,7 @@ public class IBizListServiceImpl extends ServiceImpl<IBizListMapper, IBizList> i ...@@ -154,9 +155,7 @@ public class IBizListServiceImpl extends ServiceImpl<IBizListMapper, IBizList> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(IBizList et) { public boolean saveOrUpdate(IBizList et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.ListAccount; import cn.ibizlab.businesscentral.core.marketing.domain.ListAccount;
...@@ -130,9 +131,7 @@ public class ListAccountServiceImpl extends ServiceImpl<ListAccountMapper, ListA ...@@ -130,9 +131,7 @@ public class ListAccountServiceImpl extends ServiceImpl<ListAccountMapper, ListA
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ListAccount et) { public boolean saveOrUpdate(ListAccount et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.ListContact; import cn.ibizlab.businesscentral.core.marketing.domain.ListContact;
...@@ -130,9 +131,7 @@ public class ListContactServiceImpl extends ServiceImpl<ListContactMapper, ListC ...@@ -130,9 +131,7 @@ public class ListContactServiceImpl extends ServiceImpl<ListContactMapper, ListC
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ListContact et) { public boolean saveOrUpdate(ListContact et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.marketing.domain.ListLead; import cn.ibizlab.businesscentral.core.marketing.domain.ListLead;
...@@ -130,9 +131,7 @@ public class ListLeadServiceImpl extends ServiceImpl<ListLeadMapper, ListLead> i ...@@ -130,9 +131,7 @@ public class ListLeadServiceImpl extends ServiceImpl<ListLeadMapper, ListLead> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ListLead et) { public boolean saveOrUpdate(ListLead et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.PriceLevel; import cn.ibizlab.businesscentral.core.product.domain.PriceLevel;
...@@ -149,9 +150,7 @@ public class PriceLevelServiceImpl extends ServiceImpl<PriceLevelMapper, PriceLe ...@@ -149,9 +150,7 @@ public class PriceLevelServiceImpl extends ServiceImpl<PriceLevelMapper, PriceLe
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(PriceLevel et) { public boolean saveOrUpdate(PriceLevel et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.ProductAssociation; import cn.ibizlab.businesscentral.core.product.domain.ProductAssociation;
...@@ -133,9 +134,7 @@ public class ProductAssociationServiceImpl extends ServiceImpl<ProductAssociatio ...@@ -133,9 +134,7 @@ public class ProductAssociationServiceImpl extends ServiceImpl<ProductAssociatio
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ProductAssociation et) { public boolean saveOrUpdate(ProductAssociation et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.ProductPriceLevel; import cn.ibizlab.businesscentral.core.product.domain.ProductPriceLevel;
...@@ -142,9 +143,7 @@ public class ProductPriceLevelServiceImpl extends ServiceImpl<ProductPriceLevelM ...@@ -142,9 +143,7 @@ public class ProductPriceLevelServiceImpl extends ServiceImpl<ProductPriceLevelM
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ProductPriceLevel et) { public boolean saveOrUpdate(ProductPriceLevel et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.ProductSalesLiterature; import cn.ibizlab.businesscentral.core.product.domain.ProductSalesLiterature;
...@@ -130,9 +131,7 @@ public class ProductSalesLiteratureServiceImpl extends ServiceImpl<ProductSalesL ...@@ -130,9 +131,7 @@ public class ProductSalesLiteratureServiceImpl extends ServiceImpl<ProductSalesL
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ProductSalesLiterature et) { public boolean saveOrUpdate(ProductSalesLiterature et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.Product; import cn.ibizlab.businesscentral.core.product.domain.Product;
...@@ -203,9 +204,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl ...@@ -203,9 +204,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Product et) { public boolean saveOrUpdate(Product et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.product.domain.ProductSubstitute; import cn.ibizlab.businesscentral.core.product.domain.ProductSubstitute;
...@@ -130,9 +131,7 @@ public class ProductSubstituteServiceImpl extends ServiceImpl<ProductSubstituteM ...@@ -130,9 +131,7 @@ public class ProductSubstituteServiceImpl extends ServiceImpl<ProductSubstituteM
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ProductSubstitute et) { public boolean saveOrUpdate(ProductSubstitute et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.BulkDeleteFailure; import cn.ibizlab.businesscentral.core.runtime.domain.BulkDeleteFailure;
...@@ -119,9 +120,7 @@ public class BulkDeleteFailureServiceImpl extends ServiceImpl<BulkDeleteFailureM ...@@ -119,9 +120,7 @@ public class BulkDeleteFailureServiceImpl extends ServiceImpl<BulkDeleteFailureM
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BulkDeleteFailure et) { public boolean saveOrUpdate(BulkDeleteFailure et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.BulkDeleteOperation; import cn.ibizlab.businesscentral.core.runtime.domain.BulkDeleteOperation;
...@@ -119,9 +120,7 @@ public class BulkDeleteOperationServiceImpl extends ServiceImpl<BulkDeleteOperat ...@@ -119,9 +120,7 @@ public class BulkDeleteOperationServiceImpl extends ServiceImpl<BulkDeleteOperat
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BulkDeleteOperation et) { public boolean saveOrUpdate(BulkDeleteOperation et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.BulkOperationLog; import cn.ibizlab.businesscentral.core.runtime.domain.BulkOperationLog;
...@@ -122,9 +123,7 @@ public class BulkOperationLogServiceImpl extends ServiceImpl<BulkOperationLogMap ...@@ -122,9 +123,7 @@ public class BulkOperationLogServiceImpl extends ServiceImpl<BulkOperationLogMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BulkOperationLog et) { public boolean saveOrUpdate(BulkOperationLog et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.BulkOperation; import cn.ibizlab.businesscentral.core.runtime.domain.BulkOperation;
...@@ -125,9 +126,7 @@ public class BulkOperationServiceImpl extends ServiceImpl<BulkOperationMapper, B ...@@ -125,9 +126,7 @@ public class BulkOperationServiceImpl extends ServiceImpl<BulkOperationMapper, B
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(BulkOperation et) { public boolean saveOrUpdate(BulkOperation et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.CallbackRegistration; import cn.ibizlab.businesscentral.core.runtime.domain.CallbackRegistration;
...@@ -119,9 +120,7 @@ public class CallbackRegistrationServiceImpl extends ServiceImpl<CallbackRegistr ...@@ -119,9 +120,7 @@ public class CallbackRegistrationServiceImpl extends ServiceImpl<CallbackRegistr
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CallbackRegistration et) { public boolean saveOrUpdate(CallbackRegistration et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.ConnectionRole; import cn.ibizlab.businesscentral.core.runtime.domain.ConnectionRole;
...@@ -122,9 +123,7 @@ public class ConnectionRoleServiceImpl extends ServiceImpl<ConnectionRoleMapper, ...@@ -122,9 +123,7 @@ public class ConnectionRoleServiceImpl extends ServiceImpl<ConnectionRoleMapper,
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(ConnectionRole et) { public boolean saveOrUpdate(ConnectionRole et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.Connection; import cn.ibizlab.businesscentral.core.runtime.domain.Connection;
...@@ -130,9 +131,7 @@ public class ConnectionServiceImpl extends ServiceImpl<ConnectionMapper, Connect ...@@ -130,9 +131,7 @@ public class ConnectionServiceImpl extends ServiceImpl<ConnectionMapper, Connect
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Connection et) { public boolean saveOrUpdate(Connection et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.Expiredprocess; import cn.ibizlab.businesscentral.core.runtime.domain.Expiredprocess;
...@@ -125,9 +126,7 @@ public class ExpiredprocessServiceImpl extends ServiceImpl<ExpiredprocessMapper, ...@@ -125,9 +126,7 @@ public class ExpiredprocessServiceImpl extends ServiceImpl<ExpiredprocessMapper,
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Expiredprocess et) { public boolean saveOrUpdate(Expiredprocess et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.QueueItem; import cn.ibizlab.businesscentral.core.runtime.domain.QueueItem;
...@@ -125,9 +126,7 @@ public class QueueItemServiceImpl extends ServiceImpl<QueueItemMapper, QueueItem ...@@ -125,9 +126,7 @@ public class QueueItemServiceImpl extends ServiceImpl<QueueItemMapper, QueueItem
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(QueueItem et) { public boolean saveOrUpdate(QueueItem et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.runtime.domain.Queue; import cn.ibizlab.businesscentral.core.runtime.domain.Queue;
...@@ -131,9 +132,7 @@ public class QueueServiceImpl extends ServiceImpl<QueueMapper, Queue> implements ...@@ -131,9 +132,7 @@ public class QueueServiceImpl extends ServiceImpl<QueueMapper, Queue> implements
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Queue et) { public boolean saveOrUpdate(Queue et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.CompetitorProduct; import cn.ibizlab.businesscentral.core.sales.domain.CompetitorProduct;
...@@ -130,9 +131,7 @@ public class CompetitorProductServiceImpl extends ServiceImpl<CompetitorProductM ...@@ -130,9 +131,7 @@ public class CompetitorProductServiceImpl extends ServiceImpl<CompetitorProductM
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CompetitorProduct et) { public boolean saveOrUpdate(CompetitorProduct et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.CompetitorSalesLiterature; import cn.ibizlab.businesscentral.core.sales.domain.CompetitorSalesLiterature;
...@@ -130,9 +131,7 @@ public class CompetitorSalesLiteratureServiceImpl extends ServiceImpl<Competitor ...@@ -130,9 +131,7 @@ public class CompetitorSalesLiteratureServiceImpl extends ServiceImpl<Competitor
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(CompetitorSalesLiterature et) { public boolean saveOrUpdate(CompetitorSalesLiterature et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.Competitor; import cn.ibizlab.businesscentral.core.sales.domain.Competitor;
...@@ -142,9 +143,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi ...@@ -142,9 +143,7 @@ public class CompetitorServiceImpl extends ServiceImpl<CompetitorMapper, Competi
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Competitor et) { public boolean saveOrUpdate(Competitor et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.Discount; import cn.ibizlab.businesscentral.core.sales.domain.Discount;
...@@ -122,9 +123,7 @@ public class DiscountServiceImpl extends ServiceImpl<DiscountMapper, Discount> i ...@@ -122,9 +123,7 @@ public class DiscountServiceImpl extends ServiceImpl<DiscountMapper, Discount> i
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Discount et) { public boolean saveOrUpdate(Discount et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.DiscountType; import cn.ibizlab.businesscentral.core.sales.domain.DiscountType;
...@@ -128,9 +129,7 @@ public class DiscountTypeServiceImpl extends ServiceImpl<DiscountTypeMapper, Dis ...@@ -128,9 +129,7 @@ public class DiscountTypeServiceImpl extends ServiceImpl<DiscountTypeMapper, Dis
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(DiscountType et) { public boolean saveOrUpdate(DiscountType et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.GoalRollupQuery; import cn.ibizlab.businesscentral.core.sales.domain.GoalRollupQuery;
...@@ -122,9 +123,7 @@ public class GoalRollupQueryServiceImpl extends ServiceImpl<GoalRollupQueryMappe ...@@ -122,9 +123,7 @@ public class GoalRollupQueryServiceImpl extends ServiceImpl<GoalRollupQueryMappe
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(GoalRollupQuery et) { public boolean saveOrUpdate(GoalRollupQuery et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.Goal; import cn.ibizlab.businesscentral.core.sales.domain.Goal;
...@@ -154,9 +155,7 @@ public class GoalServiceImpl extends ServiceImpl<GoalMapper, Goal> implements IG ...@@ -154,9 +155,7 @@ public class GoalServiceImpl extends ServiceImpl<GoalMapper, Goal> implements IG
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Goal et) { public boolean saveOrUpdate(Goal et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.LeadAddress; import cn.ibizlab.businesscentral.core.sales.domain.LeadAddress;
...@@ -125,9 +126,7 @@ public class LeadAddressServiceImpl extends ServiceImpl<LeadAddressMapper, LeadA ...@@ -125,9 +126,7 @@ public class LeadAddressServiceImpl extends ServiceImpl<LeadAddressMapper, LeadA
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(LeadAddress et) { public boolean saveOrUpdate(LeadAddress et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.LeadCompetitor; import cn.ibizlab.businesscentral.core.sales.domain.LeadCompetitor;
...@@ -130,9 +131,7 @@ public class LeadCompetitorServiceImpl extends ServiceImpl<LeadCompetitorMapper, ...@@ -130,9 +131,7 @@ public class LeadCompetitorServiceImpl extends ServiceImpl<LeadCompetitorMapper,
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(LeadCompetitor et) { public boolean saveOrUpdate(LeadCompetitor et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.Lead; import cn.ibizlab.businesscentral.core.sales.domain.Lead;
...@@ -226,9 +227,7 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL ...@@ -226,9 +227,7 @@ public class LeadServiceImpl extends ServiceImpl<LeadMapper, Lead> implements IL
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Lead et) { public boolean saveOrUpdate(Lead et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.OpportunityClose; import cn.ibizlab.businesscentral.core.sales.domain.OpportunityClose;
...@@ -134,9 +135,7 @@ public class OpportunityCloseServiceImpl extends ServiceImpl<OpportunityCloseMap ...@@ -134,9 +135,7 @@ public class OpportunityCloseServiceImpl extends ServiceImpl<OpportunityCloseMap
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(OpportunityClose et) { public boolean saveOrUpdate(OpportunityClose et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.OpportunityCompetitor; import cn.ibizlab.businesscentral.core.sales.domain.OpportunityCompetitor;
...@@ -130,9 +131,7 @@ public class OpportunityCompetitorServiceImpl extends ServiceImpl<OpportunityCom ...@@ -130,9 +131,7 @@ public class OpportunityCompetitorServiceImpl extends ServiceImpl<OpportunityCom
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(OpportunityCompetitor et) { public boolean saveOrUpdate(OpportunityCompetitor et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.OpportunityProduct; import cn.ibizlab.businesscentral.core.sales.domain.OpportunityProduct;
...@@ -133,9 +134,7 @@ public class OpportunityProductServiceImpl extends ServiceImpl<OpportunityProduc ...@@ -133,9 +134,7 @@ public class OpportunityProductServiceImpl extends ServiceImpl<OpportunityProduc
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(OpportunityProduct et) { public boolean saveOrUpdate(OpportunityProduct et) {
if (null == et) { if (null == et) {
return false; return false;
......
...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page; ...@@ -21,6 +21,7 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
import cn.ibizlab.businesscentral.core.sales.domain.Opportunity; import cn.ibizlab.businesscentral.core.sales.domain.Opportunity;
...@@ -189,9 +190,7 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor ...@@ -189,9 +190,7 @@ public class OpportunityServiceImpl extends ServiceImpl<OpportunityMapper, Oppor
} }
@Override @Override
@Transactional( @Transactional
rollbackFor = {Exception.class}
)
public boolean saveOrUpdate(Opportunity et) { public boolean saveOrUpdate(Opportunity et) {
if (null == et) { if (null == et) {
return false; return false;
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册