@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
提交
取消