forked from integrated_whb/integrated_whb
Merge branch 'dev' of http://47.92.113.182:3000/integrated_whb/integrated_whb into dev
commit
0683b752b6
|
@ -64,7 +64,7 @@ public class PageData extends HashMap<Object, Object> implements Map<Object, Obj
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getString(Object key) {
|
public String getString(Object key) {
|
||||||
return get(key) == null ? "" : get(key).toString().trim();
|
return get(key) == null ? null : get(key).toString().trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class MqUtil {
|
||||||
private final static SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
|
private final static SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
|
||||||
|
|
||||||
public static Integer analysisTime(String time) throws Exception{
|
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();
|
long time_difference = agreed_date.getTime() - new Date().getTime();
|
||||||
if (time_difference < 0){
|
if (time_difference < 0){
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue