package entity;

import java.util.Date;

/**
 * Created by Bruce-Jiang on 2016/10/9.
 * 做题记录类，Model
 */
public class Record {
    /**
     * 序列号
     */
    private int id;

    /**
     * 用户序列号
     */
    private int uId;

    /**
     * 表达式序列号
     */
    private int eId;
    /**
     * 用户答案
     */
    private String result;
    /**
     * 时间戳,注意SQL时间与Java时间转化,使用
     * SimpleDateFormat将时间格式化为yyyy-MM-dd HH:mm:ss形式
     */
    private String date;

    public Record(){}
    public Record(int uId, int eId, String result, String date){
        this.eId = eId;
        this.uId = uId;
        this.result = result;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getuId() {
        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public int geteId() {
        return eId;
    }

    public void seteId(int eId) {
        this.eId = eId;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", uId=" + uId +
                ", eId=" + eId +
                ", result='" + result + '\'' +
                ", date=" + date +
                '}';
    }
}

@@ -14,31 +14,8 @@
 y;%0A%0A
-import java.util.Date;%0A
 %0A/**
@@ -426,16 +426,125 @@
  date;%0A%0A
+    /**%0A     * %E7%94%A8%E6%88%B7%E6%98%AF%E7%AC%AC%E5%87%A0%E6%AC%A1%E5%81%9A%E9%A2%98%0A     */%0A    private int num;%0A%0A    /**%0A     * %E5%81%9A%E9%A2%98%E8%AF%95%E5%8D%B7%E7%AD%89%E7%BA%A7%0A     */%0A    private int r_rank;%0A%0A
     publ
@@ -619,16 +619,34 @@
 ing date
+,int num, int rank
 )%7B%0A     
@@ -736,32 +736,84 @@
 is.date = date;%0A
+        this.num = num;%0A        this.r_rank = rank;%0A
     %7D%0A%0A    publi
@@ -1419,24 +1419,278 @@
 ate;%0A    %7D%0A%0A
+    public int getNum() %7B%0A        return num;%0A    %7D%0A%0A    public void setNum(int num) %7B%0A        this.num = num;%0A    %7D%0A%0A    public int getR_rank() %7B%0A        return r_rank;%0A    %7D%0A%0A    public void setR_rank(int r_rank) %7B%0A        this.r_rank = r_rank;%0A    %7D%0A%0A
     @Overrid
@@ -1915,16 +1915,17 @@
 %22, date=
+'
 %22 + date
@@ -1926,16 +1926,95 @@
 + date +
+ '%5C'' +%0A                %22, num=%22 + num +%0A                %22, r_rank=%22 + r_rank +
 %0A       

update entity , Record