展示消息提醒信息,2019年1月1日 09:52:54

public String getSuccessMessage() {
    //获取时间的年月日时分秒
    Calendar now = Calendar.getInstance();
    now.setTime(this.getBidPriceTime());
    int year = now.get(Calendar.YEAR);
    int month = now.get(Calendar.MONTH) + 1; // 0-based!
    int day = now.get(Calendar.DAY_OF_MONTH);
    Time sfm = new Time(now.getTimeInMillis());
    return "恭喜!您于"+year+""+month+""+day+""+sfm+"参与竞价的编号为"+this.getOrderNo()+"的订单,出价金额为"
      +this.getCharge()+"元,竞价成功!";
  }

 

posted @ 2019-01-02 09:53  kerala  阅读(163)  评论(0编辑  收藏  举报