@Override public TransactionReportRecord queryTransactionReportRecord( String merchantType, String reportType, Date recordDate) { TransactionReportRecord transactionReportRecord = transactionReportRecordDao.queryTransactionReportRecord( merchantType, reportType, recordDate); return transactionReportRecord; }
@Override @Transactional(propagation = Propagation.REQUIRES_NEW) public TransactionReportRecord updateTransactionReportRecord( String reportType, String merchantType, String recordStatus, String recordDescribe, Date recordDate) { TransactionReportRecord trr = transactionReportRecordDao.queryTransactionReportRecordByStatus( merchantType, reportType, recordDate); trr.setBeginDate(ReportTool.getBeginTime()); trr.setEndDate(ReportTool.getEndTime()); trr.setUpdateDate(new Date()); trr.setReportStatus(recordStatus); trr.setMerchantType(merchantType); trr.setReportDescribe(recordDescribe); trr.setReportType(reportType); trr = transactionReportRecordJpaDao.save(trr); return trr; }