@Test public void testInsertTransactionExceptionLog() throws Exception { }
public CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason){ TransactionExceptionLog transactionExceptionLog = new TransactionExceptionLog(); transactionExceptionLog.setOriginalInvoiceCode(originalCode); transactionExceptionLog.setNewInvoiceCode(newCode); transactionExceptionLog.setReverseInvoiceCode(reverseCode); transactionExceptionLog.setRoleId(roleId); transactionExceptionLog.setReason(reason); int count = transactionExceptionLogMapper.insertSelective(transactionExceptionLog); if(count == 0) return CommonResult.fail(E_605); return CommonResult.success(transactionExceptionLog); }
TransactionServiceImpl implements TransactionService { public CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason){ TransactionExceptionLog transactionExceptionLog = new TransactionExceptionLog(); transactionExceptionLog.setOriginalInvoiceCode(originalCode); transactionExceptionLog.setNewInvoiceCode(newCode); transactionExceptionLog.setReverseInvoiceCode(reverseCode); transactionExceptionLog.setRoleId(roleId); transactionExceptionLog.setReason(reason); int count = transactionExceptionLogMapper.insertSelective(transactionExceptionLog); if(count == 0) return CommonResult.fail(E_605); return CommonResult.success(transactionExceptionLog); } }
TransactionServiceImpl implements TransactionService { public CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason){ TransactionExceptionLog transactionExceptionLog = new TransactionExceptionLog(); transactionExceptionLog.setOriginalInvoiceCode(originalCode); transactionExceptionLog.setNewInvoiceCode(newCode); transactionExceptionLog.setReverseInvoiceCode(reverseCode); transactionExceptionLog.setRoleId(roleId); transactionExceptionLog.setReason(reason); int count = transactionExceptionLogMapper.insertSelective(transactionExceptionLog); if(count == 0) return CommonResult.fail(E_605); return CommonResult.success(transactionExceptionLog); }  }
TransactionServiceImpl implements TransactionService { public CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason){ TransactionExceptionLog transactionExceptionLog = new TransactionExceptionLog(); transactionExceptionLog.setOriginalInvoiceCode(originalCode); transactionExceptionLog.setNewInvoiceCode(newCode); transactionExceptionLog.setReverseInvoiceCode(reverseCode); transactionExceptionLog.setRoleId(roleId); transactionExceptionLog.setReason(reason); int count = transactionExceptionLogMapper.insertSelective(transactionExceptionLog); if(count == 0) return CommonResult.fail(E_605); return CommonResult.success(transactionExceptionLog); }  CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason); CommonResult insertTransactionLog(TransactionLog transactionLog); }
TransactionServiceImpl implements TransactionService { public CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason){ TransactionExceptionLog transactionExceptionLog = new TransactionExceptionLog(); transactionExceptionLog.setOriginalInvoiceCode(originalCode); transactionExceptionLog.setNewInvoiceCode(newCode); transactionExceptionLog.setReverseInvoiceCode(reverseCode); transactionExceptionLog.setRoleId(roleId); transactionExceptionLog.setReason(reason); int count = transactionExceptionLogMapper.insertSelective(transactionExceptionLog); if(count == 0) return CommonResult.fail(E_605); return CommonResult.success(transactionExceptionLog); }  CommonResult insertTransactionExceptionLog(String originalCode, String newCode, String reverseCode, Integer roleId, String reason); CommonResult insertTransactionLog(TransactionLog transactionLog);  }