WenShiJun 2024-01-11 15:19:18 +08:00
commit 0683b752b6
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class PageData extends HashMap<Object, Object> implements Map<Object, Obj
}
public String getString(Object key) {
return get(key) == null ? "" : get(key).toString().trim();
return get(key) == null ? null : get(key).toString().trim();
}
@Override

View File

@ -9,7 +9,7 @@ public class MqUtil {
private final static SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
public static Integer analysisTime(String time) throws Exception{
Date agreed_date = timeFormat.parse(time);
Date agreed_date = timeFormat.parse(time.replaceAll("/","-"));
long time_difference = agreed_date.getTime() - new Date().getTime();
if (time_difference < 0){
return 0;