瀏覽代碼

修改网上办理地址webapplyurl规则3

master
wangrenkang 11 月之前
父節點
當前提交
38ad1bc5f4
共有 1 個文件被更改,包括 13 次插入9 次删除
  1. +13
    -9
      kqapi/src/main/java/com/ningdatech/kqapi/common/helper/basic/AbstractMatterCacheHelper.java

+ 13
- 9
kqapi/src/main/java/com/ningdatech/kqapi/common/helper/basic/AbstractMatterCacheHelper.java 查看文件

@@ -135,19 +135,23 @@ public abstract class AbstractMatterCacheHelper implements InitializingBean {
.refreshAfterWrite(7, TimeUnit.DAYS)
.maximumSize(1024 * 100)
.build(key -> {
DscSxAdsShareItemQltQlsxCommonIDVKq matter = kqService.getOne(Wrappers.lambdaQuery(DscSxAdsShareItemQltQlsxCommonIDVKq.class)
.eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlName, key)
// .eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlState, "1")
// .isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCodeItem)
.isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getWebapplyurl)
.orderByDesc(DscSxAdsShareItemQltQlsxCommonIDVKq::getUpdateDate)
// DscSxAdsShareItemQltQlsxCommonIDVKq matter = kqService.getOne(Wrappers.lambdaQuery(DscSxAdsShareItemQltQlsxCommonIDVKq.class)
// .eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlName, key)
//// .eq(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlState, "1")
//// .isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getQlInnerCodeItem)
// .isNotNull(DscSxAdsShareItemQltQlsxCommonIDVKq::getWebapplyurl)
// .orderByDesc(DscSxAdsShareItemQltQlsxCommonIDVKq::getUpdateDate)
// .last(BizConst.LIMIT_1)
// );
NdKqZzsfwMattersDeduplicate dup = deduplicateService.getOne(Wrappers.lambdaQuery(NdKqZzsfwMattersDeduplicate.class)
.eq(NdKqZzsfwMattersDeduplicate::getQlName, key)
.last(BizConst.LIMIT_1)
);
if (Objects.isNull(matter)) {
.isNotNull(NdKqZzsfwMattersDeduplicate::getWebapplyurl));
if (Objects.isNull(dup)) {
//查不到直接返回null
return null;
}
return matter.getWebapplyurl();
return dup.getWebapplyurl();
// return "https://www.zjzwfw.gov.cn/zjservice-fe/#/workguide?localInnerCode="+ matter.getQlInnerCodeItem() +"&siteCode=330000000000";
});
mattersDupCache = Caffeine.newBuilder()


Loading…
取消
儲存