Browse Source

修改url匹配规则

master
wangrenkang 8 months ago
parent
commit
20253da407
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      kqapi/src/main/java/com/ningdatech/kqapi/common/helper/basic/AbstractMatterCacheHelper.java

+ 5
- 5
kqapi/src/main/java/com/ningdatech/kqapi/common/helper/basic/AbstractMatterCacheHelper.java View File

@@ -64,10 +64,10 @@ public abstract class AbstractMatterCacheHelper implements InitializingBean {
DscSxAdsShareItemQltQlsxCommonIDVKq::getQlState,
DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCodeItem,
DscSxAdsShareItemQltQlsxCommonIDVKq::getWebapplyurl)
.eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlState, "1")
// .eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlState, "1")
.isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getWebapplyurl)
.isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCodeItem)
.ne(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCodeItem, "")
.isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCode)
.ne(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCode, "")
.notIn(!eliminatedQlNames.isEmpty(), DscSxAdsShareItemQltQlsxCommonIDVKq::getQlName, eliminatedQlNames) // 过滤掉那些在eliminatedQlNames中的记录
.orderByDesc(DscSxAdsShareItemQltQlsxCommonIDVKq::getUpdateDate));
if (allMatters.isEmpty()) {
@@ -75,8 +75,8 @@ public abstract class AbstractMatterCacheHelper implements InitializingBean {
return Boolean.FALSE;
}
allMatters.forEach(m -> {
// 1-11日修改新的url匹配规则,取事项状态为1且qlInnerCodeItem不为空的进行拼接,新的url规则如下
String kq_url = KQ_ZZS_BASE_URL.replace("localInnerCode=", "localInnerCode=" + m.getQlInnerCodeItem());
// 3-14日修改新的url匹配规则,取事项状态为1且qlInnerCode不为空的进行拼接,新的url规则如下
String kq_url = KQ_ZZS_BASE_URL.replace("localInnerCode=", "localInnerCode=" + m.getQlInnerCode());
MatterKey key = MatterKey.of(m.getQlName(),kq_url);
if(!mattersUrlCache.asMap().containsKey(m.getQlName())){
mattersUrlCache.put(m.getQlName(),kq_url);


Loading…
Cancel
Save