import groovy.xml.*
import groovy.json.*
class ResParam{
int state;
}
def paramConvert(param){
def xmlSlurper = new XmlSlurper()
def resXml = xmlSlurper.parseText(param[1])
def hisState = resXml.body.FYJLZT;
def peState = hisState
if(hisState == 0){
peState = 4
}
if(hisState == -1){
hisState = 3
}
return new ResParam(state:peState)
}