收银后台跟进1.5

This commit is contained in:
liuyingfang
2024-01-05 19:33:44 +08:00
parent d4f35b7014
commit 8f849b20a6
36 changed files with 1283 additions and 159 deletions

View File

@@ -61,4 +61,6 @@ public class PageUtil extends cn.hutool.core.util.PageUtil {
return map;
}
}

View 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);
// }
}

View File

@@ -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;
}
}