@Override
public Map onExecute(Map params) {
Collection ids = (Collection) params.get(ParamsConst.IDS);
for (Iterator iterator = ids.iterator(); iterator.hasNext();) {
Integer id = (Integer) iterator.next();
Entity entity = (Entity) getSession().get(getEntity(), id);
entity.setDelete(new Date());
getSession().saveOrUpdate(entity);
}
return null;
}