Пример #1
0
 /**
  * Description:保存订单提醒<br>
  *
  * @author zouming
  * @version 0.1 2013-1-22上午10:48:28
  * @param orderReminder
  * @return OrderReminder
  * @update 2013-1-22上午10:48:28
  */
 @Override
 public OrderReminder saveOrderReminder(OrderReminder orderReminder) {
   SqlSession session = this.getSqlSession(ExecutorType.SIMPLE);
   orderReminder.setId(getSequence());
   session.insert(NAMESPACE_ORDERREMINDER + INSERT_ORDERREMINDER, orderReminder);
   return orderReminder;
 }
Пример #2
0
 /**
  * Description:保存订单提醒列表<br>
  *
  * @author zouming
  * @version 0.1 2013-1-22上午10:49:10
  * @param orderReminderList
  * @update 2013-1-22上午10:49:10
  */
 @Override
 public void saveOrderReminderList(List<OrderReminder> orderReminderList) {
   SqlSession session = this.getSqlSession(ExecutorType.SIMPLE);
   for (OrderReminder orderReminder : orderReminderList) {
     orderReminder.setId(getSequence());
     session.insert(NAMESPACE_ORDERREMINDER + INSERT_ORDERREMINDER, orderReminder);
   }
 }