Просмотр исходного кода

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

master
wangrenkang 10 месяцев назад
Родитель
Сommit
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()


Загрузка…
Отмена
Сохранить