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