@Override@Transactional(rollbackFor = CommonException.class, propagation = Propagation.REQUIRED)public String syncSupplier(String ployStr) {//同步供應商銀行信息A();//同步供應商個人信息B();}} catch (Exception e) {String remark = e.getMessage();//記錄錯誤插入日志表C(remark);throw new CommonException(e.getMessage());}return new SupplierResponseDTO("1", "success").toString();} 可是這樣會會回滾A、B、C方法??怎么只讓AB回滾,C能插入數據到數據庫
添加回答
舉報
0/150
提交
取消
