355356357358359360361362363364365
return; if( fireTime == null ) fireTime = Calendar.getInstance(); Plan plan = dao.read(id); if( plan != null ){ plan.setFireTime(fireTime); dao.update(plan); } }
372373374375376377378379380381382383384385
return; if( finishTime == null ) finishTime = Calendar.getInstance(); Plan plan = dao.read(id); if( plan != null ){ if( plan.getFinishTime() == null ) plan.setFinishTime(finishTime); plan.setFinished(Boolean.TRUE); dao.update(plan); } }