@Override
 public Integer deleteItems(String[] checkList) {
   Integer res = 0;
   if (checkList != null && checkList.length > 0) {
     res = checkList.length;
     for (String id : checkList) {
       maintenancehistoryDAO.delete(Long.parseLong(id));
     }
   }
   return res;
 }
 @Override
 public Maintenancehistory findLastestMachine(Long machineID) {
   return maintenancehistoryDAO.findLatestMachine(machineID);
 }
 @Override
 public List<Maintenancehistory> findByMachine(Long machineID) {
   return maintenancehistoryDAO.findByMachine(machineID);
 }
 @Override
 public List<Maintenancehistory> findByMachineComponent(Long machineComponentID) {
   return maintenancehistoryDAO.findByMachineComponent(machineComponentID);
 }
 @Override
 public Maintenancehistory findLastestMachineComponent(Long machineComponentID) {
   return maintenancehistoryDAO.findLastestMachineComponent(machineComponentID);
 }