You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1020 B
Java
45 lines
1020 B
Java
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;
|
|
}
|
|
|
|
}
|