Merge branch 'company_server' of https://gitee.com/doc_wei01/erp-pro into company_server

This commit is contained in:
weizhiqiang 2022-08-10 14:43:23 +08:00
commit ba322e1082
2 changed files with 16 additions and 3 deletions

View file

@ -22,9 +22,9 @@
### 联系作者
| 作者微信/或者搜索 wzq_598748873加上之后请先自报家门 | QQ交流群/或者搜索 1016439713 | 企业版设计思路知识星球 | 扫码进微信群畅聊(禁止发广告) |
| ------ | ---- | ---- |-----|
| ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/%E5%BE%AE%E4%BF%A1.jpg) | ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/skyeye%E7%B3%BB%E5%88%97QQ%E7%BE%A4%E8%81%8A%E4%BA%8C%E7%BB%B4%E7%A0%81.png)| ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/%E7%9F%A5%E8%AF%86%E6%98%9F%E7%90%83.png) | ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220626095834.jpg) |
| QQ交流群/或者搜索 1016439713 | 企业版设计思路知识星球 | 扫码进微信群畅聊(禁止发广告) |
| ---- | ---- | ---- |
| ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/skyeye%E7%B3%BB%E5%88%97QQ%E7%BE%A4%E8%81%8A%E4%BA%8C%E7%BB%B4%E7%A0%81.png)| ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/%E7%9F%A5%E8%AF%86%E6%98%9F%E7%90%83.png) | ![](https://gitee.com/doc_wei01/skyeye/raw/company_server/web/src/main/resources/template/tpl/common/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220626095834.jpg) |
#### 环境搭建

View file

@ -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.");