AjaxResultSrmBack.java
753 Bytes
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
package com.huaheng.framework.web.domain;
import java.io.Serializable;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
/**
*
* @author huaheng
*/
@Data
public class AjaxResultSrmBack<T> implements Serializable
{
private static final long serialVersionUID = 1L;
@JSONField(name = "IsOK")
public Boolean IsOK;
@JSONField(name = "Message")
private String Message;
@JSONField(name = "Result")
private List<RD01List> rd01Lists;
/**
* erp返回体解析
* @return
*/
public AjaxResult responseAnalyz(){
if(IsOK){
return AjaxResult.success(rd01Lists);
}else{
return AjaxResult.error(Message);
}
}
}