Beispiel #1
0
 /**
  * @Title: selectReplyById @Description: TODO(根据评论id查询评论或回复对象)
  *
  * @author <a href="*****@*****.**">赖彩妙</a>
  * @date 2015-5-21 上午9:55:05
  * @version 1.0.0
  * @param @param data
  * @param @return
  * @return Object 返回类型
  * @throws
  */
 public Object selectReplyById(Object data) {
   log.info("start[MemberCommentService.selectReplyById]");
   OrderCommentDetailDTO comment = orderCommentMapper.selectReplyById((Integer) data);
   if (comment != null) {
     SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
     if (comment.getCreateTime() != null) {
       comment.setCommentDate(format.format(comment.getCreateTime()));
     }
   }
   log.info("end[MemberCommentService.selectReplyById]");
   return new ResultObject(new HeadObject(ErrorCode.SUCCESS), comment);
 }