Beispiel #1
0
 /**
  * 查询订单评论
  *
  * @param data
  * @return
  */
 public Object findCommentByOrderId(Object data) {
   log.info("start[MemberCommentService.selectCommentCountByProductId]");
   Long orderId = (Long) data;
   OrderComment orderComment = new OrderComment();
   HeadObject head = new HeadObject();
   try {
     orderComment = orderCommentMapper.findCommentByOrderId(orderId);
     head.setRetCode(ErrorCode.SUCCESS);
   } catch (Exception e) {
     e.printStackTrace();
     head.setRetCode(ErrorCode.FAILURE);
     log.error(e.toString());
   }
   log.info("end[MemberCommentService.selectCommentCountByProductId]");
   ResultObject result =
       new ResultObject(new HeadObject(ErrorCode.SUCCESS), JSONObject.toJSON(orderComment));
   return result;
 }