import groovy.xml.*
import groovy.json.*
class ResParam{
String code;
String message;
}
def paramConvert(param){
def xmlSlurper = new XmlSlurper()
def resXml = xmlSlurper.parseText(param[0])
def code = resXml.MARK
if(resXml.MARK == "1"){
code = "0"
}
def outputs = JsonOutput.toJson(new ResParam(code:code,message:resXml.MSG))
return outputs
}