copy from pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResStartVo.java
copy to pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResStartRtuReportVo.java
File was copied from pipIrr-platform/pipIrr-mw/pipIrr-mwTest-client/src/main/java/com/dy/testClient/rmiClient/ResStartVo.java |
| | |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | |
| | | public class ResStartVo { |
| | | public class ResStartRtuReportVo { |
| | | |
| | | public boolean start ; |
| | | public boolean report ; |
| | | |
| | | |
| | | /** |
| | |
| | | * @return 对象 |
| | | * @throws Exception 异常 |
| | | */ |
| | | public static ResStartVo jsonToObject(String json)throws Exception{ |
| | | public static ResStartRtuReportVo jsonToObject(String json)throws Exception{ |
| | | try{ |
| | | return JSON.parseObject(json, ResStartVo.class) ; |
| | | return JSON.parseObject(json, ResStartRtuReportVo.class) ; |
| | | //return new JSONDeserializer<ResStartVo>().deserialize(json, ResStartVo.class) ; |
| | | }catch(Exception e){ |
| | | throw new Exception(e.getMessage() , e ) ; |
| | | } |
| | | } |
| | | |
| | | public boolean isStart() { |
| | | return start; |
| | | public boolean isReport() { |
| | | return report; |
| | | } |
| | | |
| | | public void setStart(boolean start) { |
| | | this.start = start; |
| | | public void setReport(boolean report) { |
| | | this.report = report; |
| | | } |
| | | |
| | | } |