// 删除 @Transactional public void delete(Long id) { orderDao.delete(id); }
// 搜索 @Transactional(readOnly = true) public Page search(Page page, List<PropertyFilter> filters) { return orderDao.findPage(page, filters); }
// 保存订单对象 @Transactional public void save(OnlineOrder entity) { Date dateTime = new Date(); entity.setDateTime(dateTime); orderDao.save(entity); }
// 获取在线订单 @Transactional(readOnly = true) public OnlineOrder getEntity(Long id) { return orderDao.get(id); // 获取订单对象 }