forked from integrated_whb/integrated_whb
Merge branch 'master' into dev
commit
a96b4f85df
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue