From afb7872d507a8558f734403d17936a62339cf318 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期一, 29 七月 2019 18:01:56 +0800
Subject: [PATCH] 券链接处理

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

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java
index c20ad55..b5cb373 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/user/HistorySearchServiceImpl.java
@@ -17,6 +17,7 @@
 	private HistorySearchMapper historySearchMapper;
 
 	public void addHistorySearch(String searchKey, String bid) {
+		searchKey = searchKey != null && searchKey.length() > 64 ? searchKey.substring(0, 64) : searchKey;
 		HistorySearch historySearch = new HistorySearch();
 		historySearch.setName(searchKey);
 		historySearch.setBusinessId(bid);

--
Gitblit v1.8.0