From 3534b13391b2a6152d0f91b72fda343b13a947cb Mon Sep 17 00:00:00 2001 From: ludc <ludc@vci-tech.com> Date: 星期三, 22 一月 2025 15:55:27 +0800 Subject: [PATCH] 分类码段码值管理查询去除null的情况,分类码段生成编码时去除码值为null的情况 --- Source/BladeX-Tool/blade-starter-http/src/test/java/org/springblade/core/http/test/VBlog.java | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/Source/BladeX-Tool/blade-starter-http/src/test/java/org/springblade/core/http/test/VBlog.java b/Source/BladeX-Tool/blade-starter-http/src/test/java/org/springblade/core/http/test/VBlog.java new file mode 100644 index 0000000..b7aa3f4 --- /dev/null +++ b/Source/BladeX-Tool/blade-starter-http/src/test/java/org/springblade/core/http/test/VBlog.java @@ -0,0 +1,30 @@ +package org.springblade.core.http.test; + +import lombok.Getter; +import lombok.Setter; +import org.springblade.core.http.CssQuery; + +/** + * 鐑棬鍗氬 + */ +@Getter +@Setter +public class VBlog { + + @CssQuery(value = "a", attr = "title") + private String title; + + @CssQuery(value = "a", attr = "href") + private String href; + + //1341闃�/9璇�/4璧� + @CssQuery(value = "span", attr = "text", regex = "^\\d+") + private Integer read; + + @CssQuery(value = "span", attr = "text", regex = "(\\d*).*/(\\d*).*/(\\d*).*", regexGroup = 2) + private Integer ping; + + @CssQuery(value = "span", attr = "text", regex = "(\\d*).*/(\\d*).*/(\\d*).*", regexGroup = 3) + private Integer zhan; + +} -- Gitblit v1.9.3