mirror of
https://github.com/weizhiqiang1995/erp-pro.git
synced 2025-03-01 01:43:45 +08:00
Merge branch 'company_server' of https://gitee.com/doc_wei01/erp-pro into company_server
This commit is contained in:
commit
ba322e1082
2 changed files with 16 additions and 3 deletions
|
@ -22,9 +22,9 @@
|
|||
|
||||
### 联系作者
|
||||
|
||||
| 作者微信/或者搜索 wzq_598748873,加上之后请先自报家门 | QQ交流群/或者搜索 1016439713 | 企业版设计思路知识星球 | 扫码进微信群畅聊(禁止发广告) |
|
||||
| ------ | ---- | ---- |-----|
|
||||
|  | |  |  |
|
||||
| QQ交流群/或者搜索 1016439713 | 企业版设计思路知识星球 | 扫码进微信群畅聊(禁止发广告) |
|
||||
| ---- | ---- | ---- |
|
||||
| |  |  |
|
||||
|
||||
#### 环境搭建
|
||||
|
||||
|
|
|
@ -16,7 +16,9 @@ import com.skyeye.eve.dao.SearchDao;
|
|||
import com.skyeye.eve.entity.search.SearchMation;
|
||||
import com.skyeye.eve.entity.search.SearchOperatorMation;
|
||||
import com.skyeye.eve.entity.search.SearchParamsConfigMation;
|
||||
import com.skyeye.eve.service.ISearchConfigService;
|
||||
import com.skyeye.eve.service.SearchConfigService;
|
||||
import com.skyeye.jedis.JedisClientService;
|
||||
import net.sf.json.JSONObject;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
@ -39,6 +41,12 @@ public class SearchConfigServiceImpl implements SearchConfigService {
|
|||
@Autowired
|
||||
private SearchDao searchDao;
|
||||
|
||||
@Autowired
|
||||
private ISearchConfigService iSearchConfigService;
|
||||
|
||||
@Autowired
|
||||
private JedisClientService jedisService;
|
||||
|
||||
/**
|
||||
* 根据urlId以及appId获取高级查询的参数配置信息----用于前台使用
|
||||
*
|
||||
|
@ -152,6 +160,11 @@ public class SearchConfigServiceImpl implements SearchConfigService {
|
|||
LOGGER.info("insert searchConfig data, id is {}", searchMation.getId());
|
||||
searchDao.insert(searchMation);
|
||||
}
|
||||
// 删除缓存
|
||||
String searchParamsConfigCacheKey = iSearchConfigService.querySearchParamsConfigCacheKeyById(searchMation.getUrlId(), searchMation.getAppId());
|
||||
String searchParamsConfigToHtmlCacheKey = iSearchConfigService.querySearchParamsConfigToHtmlCacheKeyById(searchMation.getUrlId(), searchMation.getAppId());
|
||||
jedisService.del(searchParamsConfigCacheKey);
|
||||
jedisService.del(searchParamsConfigToHtmlCacheKey);
|
||||
outputObject.setBean(searchMation);
|
||||
} else {
|
||||
outputObject.setreturnMessage("this data is non-existent.");
|
||||
|
|
Loading…
Reference in a new issue