@Test public void testConfirmResult() throws Exception { }
@Override public CommonResult confirmResult(DailySummaryParam dailySummaryParam){ Integer cashierId = dailySummaryParam.getCashierId(); String beginDateStr = dailySummaryParam.getBeginDateStr(); String endDateStr = dailySummaryParam.getEndDateStr(); Integer assessorId = dailySummaryParam.getAssessorId(); int count = dailySummaryLogMapper.updateResult(cashierId, assessorId, beginDateStr, endDateStr); if(count > 0) return CommonResult.success(count); else return CommonResult.fail(); }
CheckDailyServiceImpl implements CheckDailyService { @Override public CommonResult confirmResult(DailySummaryParam dailySummaryParam){ Integer cashierId = dailySummaryParam.getCashierId(); String beginDateStr = dailySummaryParam.getBeginDateStr(); String endDateStr = dailySummaryParam.getEndDateStr(); Integer assessorId = dailySummaryParam.getAssessorId(); int count = dailySummaryLogMapper.updateResult(cashierId, assessorId, beginDateStr, endDateStr); if(count > 0) return CommonResult.success(count); else return CommonResult.fail(); } }
CheckDailyServiceImpl implements CheckDailyService { @Override public CommonResult confirmResult(DailySummaryParam dailySummaryParam){ Integer cashierId = dailySummaryParam.getCashierId(); String beginDateStr = dailySummaryParam.getBeginDateStr(); String endDateStr = dailySummaryParam.getEndDateStr(); Integer assessorId = dailySummaryParam.getAssessorId(); int count = dailySummaryLogMapper.updateResult(cashierId, assessorId, beginDateStr, endDateStr); if(count > 0) return CommonResult.success(count); else return CommonResult.fail(); }  }
CheckDailyServiceImpl implements CheckDailyService { @Override public CommonResult confirmResult(DailySummaryParam dailySummaryParam){ Integer cashierId = dailySummaryParam.getCashierId(); String beginDateStr = dailySummaryParam.getBeginDateStr(); String endDateStr = dailySummaryParam.getEndDateStr(); Integer assessorId = dailySummaryParam.getAssessorId(); int count = dailySummaryLogMapper.updateResult(cashierId, assessorId, beginDateStr, endDateStr); if(count > 0) return CommonResult.success(count); else return CommonResult.fail(); }  CommonResult checkDailySummary(DailySummaryParam dailySummaryParam); @Override CommonResult confirmResult(DailySummaryParam dailySummaryParam); }
CheckDailyServiceImpl implements CheckDailyService { @Override public CommonResult confirmResult(DailySummaryParam dailySummaryParam){ Integer cashierId = dailySummaryParam.getCashierId(); String beginDateStr = dailySummaryParam.getBeginDateStr(); String endDateStr = dailySummaryParam.getEndDateStr(); Integer assessorId = dailySummaryParam.getAssessorId(); int count = dailySummaryLogMapper.updateResult(cashierId, assessorId, beginDateStr, endDateStr); if(count > 0) return CommonResult.success(count); else return CommonResult.fail(); }  CommonResult checkDailySummary(DailySummaryParam dailySummaryParam); @Override CommonResult confirmResult(DailySummaryParam dailySummaryParam);  }