use of com.cas.sim.tis.services.PreparationResourceService in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationResourceAction method detele.
public void detele(Integer rid) {
PreparationResourceService service = getService();
PreparationResource resource = service.findById(rid);
resource.setDel(true);
resource.setUpdater(Session.get(Session.KEY_LOGIN_ID));
service.update(resource);
}
use of com.cas.sim.tis.services.PreparationResourceService in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationResourceAction method addResource.
public void addResource(PreparationResource resource) {
PreparationResourceService service = getService();
resource.setCreator(Session.get(Session.KEY_LOGIN_ID));
service.save(resource);
}
Aggregations