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