|
|
|
@ -94,7 +94,37 @@ public class BaseResultBean<Obj> {
|
|
|
|
|
return totalCount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static BaseResultBean buildBaseResultBean(boolean success,String msg){
|
|
|
|
|
public BaseResultBean setMsg(String msg) {
|
|
|
|
|
this.msg = msg;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseResultBean setErrorMsg(String errorMsg) {
|
|
|
|
|
this.errorMsg = errorMsg;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseResultBean setResultList(List<Obj> resultList) {
|
|
|
|
|
this.resultList = resultList;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseResultBean setResultObject(Obj resultObject) {
|
|
|
|
|
this.resultObject = resultObject;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseResultBean setListPager(ListPager<Obj> listPager) {
|
|
|
|
|
this.listPager = listPager;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseResultBean setResultMap(Map<String, Object> resultMap) {
|
|
|
|
|
this.resultMap = resultMap;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static BaseResultBean buildBaseResultBean(boolean success, String msg){
|
|
|
|
|
BaseResultBean rs = new BaseResultBean();
|
|
|
|
|
rs.success = success;
|
|
|
|
|
if (success) {
|
|
|
|
|