| | |
| | | //用来存放大计、小计金额 |
| | | private Object sumTotal; |
| | | |
| | | //所需数据 |
| | | private Object rep; |
| | | |
| | | public ResultVo() { |
| | | } |
| | | |
| | |
| | | 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) { |
| | |
| | | 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); |