WebserviceResult.java 1.07 KB
package com.huaheng.api.erp.domain;

import com.alibaba.fastjson.JSON;
import com.huaheng.common.utils.JaxbXmlUtil;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "WebserviceResult", propOrder={ "O_MESSG", "O_TYPE" })
public class WebserviceResult {

    //消息内容
    private String O_MESSG;

    //消息类型
    private String O_TYPE;

    public String getO_MESSG() {
        return O_MESSG;
    }

    public void setO_MESSG(String o_MESSG) {
        O_MESSG = o_MESSG;
    }

    public String getO_TYPE() {
        return O_TYPE;
    }

    public void setO_TYPE(String o_TYPE) {
        O_TYPE = o_TYPE;
    }

    public static String success(String resultDate){
        WebserviceResult webserviceResult = new WebserviceResult();
        webserviceResult.setO_MESSG(resultDate);
        webserviceResult.setO_TYPE("S");
        return null;
    }

    public static String error(String resultDate){
        return null;
    }

}