From 64fa40bb05e09c55617a581e006cd0d25c6fc986 Mon Sep 17 00:00:00 2001
From: yujian <yujian>
Date: 星期五, 11 一月 2019 12:30:28 +0800
Subject: [PATCH] 网页推送、站内信推送时  PushRecord写入推送时间

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
index 147a5ae..b936603 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
@@ -81,6 +81,7 @@
 		pushRecord.setTitle(title);
 		pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
 		pushRecord.setAccount(1);
+		pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
 
 		xmPushService.pushGoods(uid, Long.parseLong(gid), title, content);
 		iosPushService.pushGoods(uid, Long.parseLong(gid), title, content);
@@ -106,6 +107,7 @@
 		pushRecord.setUrl(url);
 		pushRecord.setTitle(title);
 		pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
+		pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
 
 		xmPushService.pushUrl(uid, url, title, content);
 		iosPushService.pushUrl(uid, url, title, content);
@@ -135,6 +137,8 @@
 			pushRecord.setState(1); // 鎴愬姛
 			pushRecord.setType(4); // 绫诲瀷锛氱珯鍐呬俊
 			pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
+			pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
+			
 			xmPushService.pushZNX(uId, null, systemZnx);
 			iosPushService.pushZNX(uId, null, systemZnx);
 			hwPushService.pushZNX(uId, null, systemZnx);
@@ -160,6 +164,8 @@
 			pushRecord.setState(1); // 鎴愬姛
 			pushRecord.setType(PushController.ZNX); // 绫诲瀷锛氱珯鍐呬俊
 			pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
+			pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
+			
 			pushRecordMapper.insertSelective(pushRecord);
 		}
 	}

--
Gitblit v1.8.0