收银后台跟进1.5
This commit is contained in:
@@ -61,4 +61,6 @@ public class PageUtil extends cn.hutool.core.util.PageUtil {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
56
eladmin-common/src/main/java/me/zhengjie/utils/Result.java
Normal file
56
eladmin-common/src/main/java/me/zhengjie/utils/Result.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package me.zhengjie.utils;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lyf
|
||||
*/
|
||||
public class Result<T> {
|
||||
// private int code;
|
||||
// private String message;
|
||||
// private T data;
|
||||
// private String respCode;
|
||||
//
|
||||
// private T list;
|
||||
//
|
||||
// private String totalCount;
|
||||
//
|
||||
// private String timestamp;
|
||||
//
|
||||
// public Result<T> setCode(String resultCode) {
|
||||
// this.code = resultCode;
|
||||
// return this;
|
||||
// }
|
||||
//
|
||||
// public Result(ResultCode resultCode, String message) {
|
||||
// this(resultCode, message, null);
|
||||
// }
|
||||
//
|
||||
// public Result(ResultCode resultCode, String message, T data) {
|
||||
// this.code = resultCode.code();
|
||||
// this.message = message;
|
||||
// this.data = data;
|
||||
// timestamp = cn.hutool.core.date.DateUtil.format(new Date(), "yyyyMMddHHmmss");
|
||||
// }
|
||||
//
|
||||
// public Result(int code, String message, T data) {
|
||||
// this.code = code;
|
||||
// this.message = message;
|
||||
// this.data = data;
|
||||
// timestamp = cn.hutool.core.date.DateUtil.format(new Date(), "yyyyMMddHHmmss");
|
||||
// }
|
||||
//
|
||||
// public Result(int code, String message) {
|
||||
// this.code = code;
|
||||
// this.message = message;
|
||||
// timestamp = DateUtil.format(new Date(), "yyyyMMddHHmmss");
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String toString() {
|
||||
// return JSON.toJSONString(this);
|
||||
// }
|
||||
}
|
||||
@@ -31,6 +31,7 @@ import java.net.UnknownHostException;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* @author Zheng Jie
|
||||
@@ -261,4 +262,12 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public static HashMap<String,Object> stringChangeMap(String mapString){
|
||||
|
||||
JSONObject jsonObject = new JSONObject(mapString);
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.putAll(jsonObject);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user