@Test public void testModifyArrangement() throws Exception { }
@Override public CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot){ int count; if(arrangementId == null || timeSlot == null || (timeSlot != 1 && timeSlot != 2 && timeSlot != 3 && timeSlot != 4)) return CommonResult.fail(ResultCode.E_801); if(timeSlot == 4) count = arrangementMapper.deleteById(arrangementId); else count = arrangementMapper.updateTimeSlot(arrangementId, timeSlot); return CommonResult.success(count); }
ArrangementManagementServiceImpl implements ArrangementManagementService { @Override public CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot){ int count; if(arrangementId == null || timeSlot == null || (timeSlot != 1 && timeSlot != 2 && timeSlot != 3 && timeSlot != 4)) return CommonResult.fail(ResultCode.E_801); if(timeSlot == 4) count = arrangementMapper.deleteById(arrangementId); else count = arrangementMapper.updateTimeSlot(arrangementId, timeSlot); return CommonResult.success(count); } }
ArrangementManagementServiceImpl implements ArrangementManagementService { @Override public CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot){ int count; if(arrangementId == null || timeSlot == null || (timeSlot != 1 && timeSlot != 2 && timeSlot != 3 && timeSlot != 4)) return CommonResult.fail(ResultCode.E_801); if(timeSlot == 4) count = arrangementMapper.deleteById(arrangementId); else count = arrangementMapper.updateTimeSlot(arrangementId, timeSlot); return CommonResult.success(count); }  }
ArrangementManagementServiceImpl implements ArrangementManagementService { @Override public CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot){ int count; if(arrangementId == null || timeSlot == null || (timeSlot != 1 && timeSlot != 2 && timeSlot != 3 && timeSlot != 4)) return CommonResult.fail(ResultCode.E_801); if(timeSlot == 4) count = arrangementMapper.deleteById(arrangementId); else count = arrangementMapper.updateTimeSlot(arrangementId, timeSlot); return CommonResult.success(count); }  @Override CommonResult insertArrangementRule(ArrangementRuleParam arrangementRuleParam); @Override CommonResult listArrangementRules(Integer departmentId); @Override CommonResult insertArrangement(ArrangementParam arrangementParam); List<ArrangementConflictParam> saveArrangement(Date today, int week, Integer departmentId,
                                                          Integer arrangementRuleId, List<Arrangement> arrangements,
                                                          List<ArrangementConflictParam> conflict, Boolean toInsert,
                                                          List<Arrangement> toInsertArrangements); @Override CommonResult listArrangements(Date startDate, Date endDate, Integer departmentId); String getStatusStr(Boolean isValid); @Override CommonResult modifyArrangements(ArrangementParam arrangementParam); @Override CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot); JSONObject formatJson(JSONObject jsonObject, List<HashMap> arrangementRule); }
ArrangementManagementServiceImpl implements ArrangementManagementService { @Override public CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot){ int count; if(arrangementId == null || timeSlot == null || (timeSlot != 1 && timeSlot != 2 && timeSlot != 3 && timeSlot != 4)) return CommonResult.fail(ResultCode.E_801); if(timeSlot == 4) count = arrangementMapper.deleteById(arrangementId); else count = arrangementMapper.updateTimeSlot(arrangementId, timeSlot); return CommonResult.success(count); }  @Override CommonResult insertArrangementRule(ArrangementRuleParam arrangementRuleParam); @Override CommonResult listArrangementRules(Integer departmentId); @Override CommonResult insertArrangement(ArrangementParam arrangementParam); List<ArrangementConflictParam> saveArrangement(Date today, int week, Integer departmentId,
                                                          Integer arrangementRuleId, List<Arrangement> arrangements,
                                                          List<ArrangementConflictParam> conflict, Boolean toInsert,
                                                          List<Arrangement> toInsertArrangements); @Override CommonResult listArrangements(Date startDate, Date endDate, Integer departmentId); String getStatusStr(Boolean isValid); @Override CommonResult modifyArrangements(ArrangementParam arrangementParam); @Override CommonResult modifyArrangement(Integer arrangementId, Byte timeSlot); JSONObject formatJson(JSONObject jsonObject, List<HashMap> arrangementRule);  }