From a489609934155d3a9417ebfd315afbadd1d9b95f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 19 三月 2019 12:21:32 +0800
Subject: [PATCH] 删除ExtractRecordDao

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 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 bf8608f..482a9b5 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
@@ -21,7 +21,6 @@
 import com.yeshi.fanli.service.inter.push.PushRecordService;
 import com.yeshi.fanli.service.inter.push.PushService;
 import com.yeshi.fanli.service.inter.push.XMPushService;
-import com.yeshi.fanli.service.inter.user.AccountMessageService;
 import com.yeshi.fanli.service.inter.user.SystemZnxService;
 import com.yeshi.fanli.util.Constant;
 import com.yeshi.fanli.util.StringUtil;
@@ -42,9 +41,6 @@
 
 	@Resource
 	private SystemZnxService systemZnxService;
-
-	@Resource
-	private AccountMessageService accountMessageService;
 
 	@Resource
 	private DeviceTokenHWService deviceTokenHWService;
@@ -185,6 +181,17 @@
 	public void pushBaiChuanUrl(Long uid, String title, String content, String url, List<String> listVersion) throws PushException {
 		iosPushService.pushBaiChuanUrl(uid, title, content, url, listVersion);
 		xmPushService.pushBaiChuanUrl(uid, title, content, url, listVersion);
+		
+		// 鎻掑叆鎺ㄩ�佽褰�
+		PushRecord pushRecord = new PushRecord();
+		pushRecord.setTitle(title);
+		pushRecord.setUid(uid);
+		pushRecord.setState(1); // 鎴愬姛
+		pushRecord.setType(PushController.BAICHUAN); // 绫诲瀷锛氱櫨宸�
+		pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
+		pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
+		
+		pushRecordMapper.insertSelective(pushRecord);
 	}
 
 	@Override

--
Gitblit v1.8.0