Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.queryOrdersItemsList")
 public List<OrdersItems> queryOrdersItemsList(OrdersItemsQuery queryBean) {
   List<OrdersItems> ordersItemsList = null;
   try {
     ordersItemsList = ordersItemsManager.queryOrdersItemsList(queryBean);
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#queryOrdersItemsList has error.", e);
   }
   return ordersItemsList;
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.insert")
 public boolean insert(OrdersItems ordersItems) {
   boolean resultFlag = false;
   try {
     if (null != ordersItems) {
       if (ordersItemsManager.exist(ordersItems)) {
         throw new ExistedException();
       }
       resultFlag = ordersItemsManager.insert(ordersItems);
     } else {
       LOG.warn("OrdersItemsServiceImpl#insert failed, param is illegal.");
     }
   } catch (ExistedException e) {
     LOG.warn("OrdersItemsServiceImpl#insert failed, ordersItems has existed.");
     throw e;
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#insert has error.", e);
   }
   return resultFlag;
 }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.queryOrdersItemsListWithPage")
 public List<OrdersItems> queryOrdersItemsListWithPage(
     OrdersItemsQuery queryBean, PageUtil pageUtil) {
   List<OrdersItems> ordersItemsList = null;
   try {
     ordersItemsList = ordersItemsManager.queryOrdersItemsListWithPage(queryBean, pageUtil);
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#queryOrdersItemsListWithPage has error.", e);
   }
   return ordersItemsList;
 }
Ejemplo n.º 4
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.update")
 public boolean update(OrdersItems ordersItems) {
   boolean resultFlag = false;
   try {
     if (null != ordersItems && null != ordersItems.getId()) {
       resultFlag = ordersItemsManager.update(ordersItems);
     } else {
       LOG.warn("OrdersItemsServiceImpl#update failed, param is illegal.");
     }
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#update has error.", e);
   }
   return resultFlag;
 }
Ejemplo n.º 5
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.batchInsert")
 public boolean insert(List<OrdersItems> ordersItemsList) {
   boolean resultFlag = false;
   try {
     if (CollectionUtils.isNotEmpty(ordersItemsList)) {
       resultFlag = ordersItemsManager.insert(ordersItemsList);
     } else {
       LOG.warn("OrdersItemsServiceImpl#batchInsert failed, param is illegal.");
     }
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#batchInsert has error.", e);
   }
   return resultFlag;
 }
Ejemplo n.º 6
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.getOrdersItemsById")
 public OrdersItems getOrdersItemsById(Long id) {
   OrdersItems ordersItems = null;
   try {
     if (null != id) {
       ordersItems = ordersItemsManager.getOrdersItemsById(id);
     } else {
       LOG.warn("OrdersItemsServiceImpl#getOrdersItemsById failed, param is illegal.");
     }
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#getOrdersItemsById has error.", e);
   }
   return ordersItems;
 }
Ejemplo n.º 7
0
 /** {@inheritDoc} */
 @Profiled(tag = "OrdersItemsService.batchDelete")
 public boolean delete(OrdersItems[] ordersItemss) {
   boolean resultFlag = false;
   try {
     if (null != ordersItemss && ordersItemss.length > 0) {
       resultFlag = ordersItemsManager.delete(ordersItemss);
     } else {
       LOG.warn("OrdersItemsServiceImpl#batchDelete failed, param is illegal.");
     }
   } catch (Exception e) {
     LOG.error("OrdersItemsServiceImpl#batchDelete has error.", e);
   }
   return resultFlag;
 }