WebserviceResult.java
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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;
}
}