消息增加cdatetime字段
This commit is contained in:
@@ -302,6 +302,7 @@ public class UniPushService {
|
|||||||
map.put("params", mess.getParams());
|
map.put("params", mess.getParams());
|
||||||
map.put("content", mess.getContent());
|
map.put("content", mess.getContent());
|
||||||
map.put("cdate", mess.getCdate());
|
map.put("cdate", mess.getCdate());
|
||||||
|
map.put("cdatetime", mess.getCdatetime());
|
||||||
map.put("id", mess.getId());
|
map.put("id", mess.getId());
|
||||||
map.put("ctime", mess.getCtime());
|
map.put("ctime", mess.getCtime());
|
||||||
map.put("status", mess.getStatus());
|
map.put("status", mess.getStatus());
|
||||||
|
|||||||
@@ -62,6 +62,13 @@ public class SysMessage implements Serializable {
|
|||||||
private Boolean status = false;
|
private Boolean status = false;
|
||||||
|
|
||||||
public String getCdate() {
|
public String getCdate() {
|
||||||
|
String cdate = "";
|
||||||
|
if (ctime != null && ctime > 0) {
|
||||||
|
cdate = DateUtil.format(new Date(ctime), "yyyy-MM-dd");
|
||||||
|
}
|
||||||
|
return cdate;
|
||||||
|
}
|
||||||
|
public String getCdatetime() {
|
||||||
String cdate = "";
|
String cdate = "";
|
||||||
if (ctime != null && ctime > 0) {
|
if (ctime != null && ctime > 0) {
|
||||||
cdate = DateUtil.format(new Date(ctime), "yyyy-MM-dd HH:mm:ss");
|
cdate = DateUtil.format(new Date(ctime), "yyyy-MM-dd HH:mm:ss");
|
||||||
|
|||||||
@@ -301,6 +301,7 @@ public class UniPushService {
|
|||||||
map.put("params", mess.getParams());
|
map.put("params", mess.getParams());
|
||||||
map.put("content", mess.getContent());
|
map.put("content", mess.getContent());
|
||||||
map.put("cdate", mess.getCdate());
|
map.put("cdate", mess.getCdate());
|
||||||
|
map.put("cdatetime", mess.getCdatetime());
|
||||||
map.put("id", mess.getId());
|
map.put("id", mess.getId());
|
||||||
map.put("ctime", mess.getCtime());
|
map.put("ctime", mess.getCtime());
|
||||||
map.put("status", mess.getStatus());
|
map.put("status", mess.getStatus());
|
||||||
|
|||||||
Reference in New Issue
Block a user