| | |
| | | package com.fgkj.dto; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | public class ServiceModel implements Serializable{ |
| | | public Integer code=0; //用于判断请求是否成功 0:不成功 1:成功 |
| | | public String msg; //返回的简单信息 |
| | | public Integer sum=0; //用于放查询记录的条数 |
| | | public Integer newsum=0; //用于记录条数 |
| | | // public Integer sum=0; //用于放查询记录的条数 |
| | | // public Integer newsum=0; //用于记录条数 |
| | | public Object data; //用于返回复杂数据 |
| | | public String msgN; //返回单体编号 |
| | | public String msgV; //返回单体电压 |
| | | public String msgO; |
| | | public String msgT; |
| | | public Float lowCA; //返回告警阈值 |
| | | public Float lowCH; //返回更换阈值 |
| | | public Float lowRA; //返回电导的告警阈值 |
| | | public Float lowRH; //返回电导的更换阈值 |
| | | // public String msgN; //返回单体编号 |
| | | // public String msgV; //返回单体电压 |
| | | // public String msgO; |
| | | // public String msgT; |
| | | // public Float lowCA; //返回告警阈值 |
| | | // public Float lowCH; //返回更换阈值 |
| | | // public Float lowRA; //返回电导的告警阈值 |
| | | // public Float lowRH; //返回电导的更换阈值 |
| | | |
| | | public ServiceModel set(Integer code,Object data){ |
| | | this.code =code; |
| | | this.data = data; |
| | | return this; |
| | | } |
| | | |
| | | public Integer getCode() { |
| | | return code; |
| | |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | public Integer getSum() { |
| | | return sum; |
| | | } |
| | | public void setSum(Integer sum) { |
| | | this.sum = sum; |
| | | } |
| | | public Integer getNewsum() { |
| | | return newsum; |
| | | } |
| | | public void setNewsum(Integer newsum) { |
| | | this.newsum = newsum; |
| | | } |
| | | |
| | | public String getMsgN() { |
| | | return msgN; |
| | | } |
| | | public void setMsgN(String msgN) { |
| | | this.msgN = msgN; |
| | | } |
| | | public String getMsgV() { |
| | | return msgV; |
| | | } |
| | | public void setMsgV(String msgV) { |
| | | this.msgV = msgV; |
| | | } |
| | | |
| | | public String getMsgO() { |
| | | return msgO; |
| | | } |
| | | public void setMsgO(String msgO) { |
| | | this.msgO = msgO; |
| | | } |
| | | public String getMsgT() { |
| | | return msgT; |
| | | } |
| | | public void setMsgT(String msgT) { |
| | | this.msgT = msgT; |
| | | } |
| | | public Float getLowCA() { |
| | | return lowCA; |
| | | } |
| | | public void setLowCA(Float lowCA) { |
| | | this.lowCA = lowCA; |
| | | } |
| | | public Float getLowCH() { |
| | | return lowCH; |
| | | } |
| | | public void setLowCH(Float lowCH) { |
| | | this.lowCH = lowCH; |
| | | } |
| | | |
| | | public Float getLowRA() { |
| | | return lowRA; |
| | | } |
| | | public void setLowRA(Float lowRA) { |
| | | this.lowRA = lowRA; |
| | | } |
| | | public Float getLowRH() { |
| | | return lowRH; |
| | | } |
| | | public void setLowRH(Float lowRH) { |
| | | this.lowRH = lowRH; |
| | | } |
| | | public Object getData() { |
| | | return data; |
| | | } |
| | | public void setData(Object data) { |
| | | this.data = data; |
| | | } |
| | | @Override |
| | | public String toString() { |
| | | return "ServiceModel [code=" + code + ", msg=" + msg + ", sum=" + sum |
| | | + ", newsum=" + newsum + ", data=" + data + ", msgN=" + msgN |
| | | + ", msgV=" + msgV + ", msgO=" + msgO + ", msgT=" + msgT |
| | | + ", lowCA=" + lowCA + ", lowCH=" + lowCH + ", lowRA=" + lowRA |
| | | + ", lowRH=" + lowRH + "]"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |