From 6fdcc0c26dd33e87a024a69ed635d9aedb59cad6 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 07 一月 2020 12:02:50 +0800
Subject: [PATCH] 订单搜索引擎增量更新

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java
index 2cd4c22..8bf81ca 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/help/AppPageNotificationServiceImpl.java
@@ -1,6 +1,7 @@
 package com.yeshi.fanli.service.impl.help;
 
 import java.util.Date;
+import java.util.List;
 
 import javax.annotation.Resource;
 
@@ -24,11 +25,10 @@
 		return appPageNotificationMapper.selectByType(type);
 	}
 
-	@Cacheable(value = "configCache", key = "'getAppPageNotificationByType-'+#type")
+	@Cacheable(value = "configCache", key = "'getValidNotificationByTypeCache-'+#type")
 	@Override
-	public AppPageNotification getAppPageNotificationByTypeCache(String type) {
-
-		return appPageNotificationMapper.selectByType(type);
+	public AppPageNotification getValidNotificationByTypeCache(String type) {
+		return appPageNotificationMapper.selectValidByType(type);
 	}
 
 	@Override
@@ -48,4 +48,40 @@
 		appPageNotificationMapper.insertSelective(apn);
 	}
 
+	@Override
+	public void insertSelective(AppPageNotification record) {
+		appPageNotificationMapper.insertSelective(record);
+	}
+
+	@Override
+	public void updateByPrimaryKey(AppPageNotification record) {
+		appPageNotificationMapper.updateByPrimaryKey(record);		
+	}
+	
+	@Override
+	public void updateByPrimaryKeySelective(AppPageNotification record) {
+		appPageNotificationMapper.updateByPrimaryKeySelective(record);		
+	}
+
+	@Override
+	public AppPageNotification selectByPrimaryKey(Long id) {
+		return appPageNotificationMapper.selectByPrimaryKey(id);
+	}
+
+	@Override
+	public int deleteBatchByPrimaryKey(List<Long> list) {
+		return appPageNotificationMapper.deleteBatchByPrimaryKey(list);
+	}
+
+	@Override
+	public List<AppPageNotification> listQuery(long start, int count, String key, Integer show, Integer canClose) {
+		return appPageNotificationMapper.listQuery(start, count, key, show, canClose);
+	}
+
+	@Override
+	public long countQuery(String key, Integer show, Integer canClose) {
+		return appPageNotificationMapper.countQuery(key, show, canClose);
+	}
+
+	
 }

--
Gitblit v1.8.0