java110
2021-07-19 c79d257ae61065dd367a7736232e516dc5db013d
java110-bean/src/main/java/com/java110/vo/ResultVo.java
old mode 100644 new mode 100755
@@ -28,6 +28,7 @@
    public static final int CODE_UNAUTHORIZED = 401; //认证失败
    public static final int CODE_WECHAT_UNAUTHORIZED = 1401; //认证失败
    public static final int CODE_BUSINESS_VERIFICATION = 5010; //业务校验未通过
    public static final int ORDER_ERROR = 500; //订单调度异常
@@ -64,6 +65,9 @@
    //用来存放大计、小计金额
    private Object sumTotal;
    //所需数据
    private Object rep;
    public ResultVo() {
    }
@@ -93,6 +97,16 @@
        this.total = total;
        this.data = data;
        this.sumTotal = sumTotal;
    }
    public ResultVo(int records, int total, Object data, Object sumTotal, Object rep) {
        this.code = CODE_OK;
        this.msg = MSG_OK;
        this.records = records;
        this.total = total;
        this.data = data;
        this.sumTotal = sumTotal;
        this.rep = rep;
    }
    public ResultVo(int code, String msg, Object data) {
@@ -173,6 +187,14 @@
        this.sumTotal = sumTotal;
    }
    public Object getRep() {
        return rep;
    }
    public void setRep(Object rep) {
        this.rep = rep;
    }
    @Override
    public String toString() {
        return JSONObject.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect, SerializerFeature.WriteDateUseDateFormat);