package com.weaver.seconddev.sxjg.util; import com.alibaba.fastjson.JSONObject; public class NccResultUtil { private Boolean result; private String description; public NccResultUtil() { } public NccResultUtil(String rs) { JSONObject rs1 = JSONObject.parseObject(rs); if(rs1.getBoolean("success")) { if("1000000000".equals(rs1.getString("code"))) { this.setResult(true); }else { this.setResult(false); this.setDescription(rs1.getString("message")); } }else { this.setResult(false); this.setDescription(rs1.getString("message")); } } public Boolean getResult() { return result; } public void setResult(Boolean result) { this.result = result; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }