Browse Source

补齐栏目排序内部类发布

恢复带 sortNumber 映射的 Website 类,避免新增排序字段触发 setter 缺失。

将 AppWebsiteManageUtil$1.class 纳入 hxcs 同步清单,修复主类与匿名排序内部类版本不一致导致的栏目接口 NoSuchMethodError。

Validation:
- local-run/bin/compile-hxcs-deploy-classes.sh
- AppWebsiteManageUtil$1.class 已生成
非繁 4 months ago
parent
commit
bb61277bbb

+ 1 - 0
local-run/bin/compile-hxcs-deploy-classes.sh

@@ -16,6 +16,7 @@ fi
 
 
 SOURCES=(
 SOURCES=(
 	"${PROJECT_ROOT}/src/apps/pojo/Person.java"
 	"${PROJECT_ROOT}/src/apps/pojo/Person.java"
+	"${PROJECT_ROOT}/src/apps/pojo/Website.java"
 	"${PROJECT_ROOT}/src/apps/pojo/WebsiteTemplate.java"
 	"${PROJECT_ROOT}/src/apps/pojo/WebsiteTemplate.java"
 	"${PROJECT_ROOT}/src/space/apps/moudules/basic/util/SortOrderUtil.java"
 	"${PROJECT_ROOT}/src/space/apps/moudules/basic/util/SortOrderUtil.java"
 	"${PROJECT_ROOT}/src/space/apps/moudules/website/template/ffkjschool01/WebSiteArticleService.java"
 	"${PROJECT_ROOT}/src/space/apps/moudules/website/template/ffkjschool01/WebSiteArticleService.java"

+ 3 - 4
local-run/bin/sync-to-hxcs-prod.sh

@@ -306,6 +306,7 @@ sync_static_files() {
 	# 全局排序序号相关 Java 类
 	# 全局排序序号相关 Java 类
 	for class_path in \
 	for class_path in \
 		"apps/pojo/Person.class" \
 		"apps/pojo/Person.class" \
+		"apps/pojo/Website.class" \
 		"apps/pojo/WebsiteTemplate.class" \
 		"apps/pojo/WebsiteTemplate.class" \
 		"space/apps/moudules/basic/util/SortOrderUtil.class" \
 		"space/apps/moudules/basic/util/SortOrderUtil.class" \
 		"space/apps/moudules/personnel/services/PersonService.class" \
 		"space/apps/moudules/personnel/services/PersonService.class" \
@@ -314,15 +315,13 @@ sync_static_files() {
 		"space/apps/moudules/website/services/NavigationAPIService.class" \
 		"space/apps/moudules/website/services/NavigationAPIService.class" \
 		"space/apps/moudules/website/services/WebsiteTemplateService.class" \
 		"space/apps/moudules/website/services/WebsiteTemplateService.class" \
 		"space/apps/moudules/website/services/ArticleClassifyService.class" \
 		"space/apps/moudules/website/services/ArticleClassifyService.class" \
-		"space/apps/moudules/website/util/AppWebsiteManageUtil.class"; do
+		"space/apps/moudules/website/util/AppWebsiteManageUtil.class" \
+		"space/apps/moudules/website/util/AppWebsiteManageUtil\$1.class"; do
 		local class_file="${PROJECT_ROOT}/WebRoot/WEB-INF/classes/${class_path}"
 		local class_file="${PROJECT_ROOT}/WebRoot/WEB-INF/classes/${class_path}"
 		local class_dir="${class_path%/*}"
 		local class_dir="${class_path%/*}"
 		[[ -f "${class_file}" ]] && rsync_to "${host}" "${password}" "${webapp}/WEB-INF/classes/${class_dir}/" "${class_file}"
 		[[ -f "${class_file}" ]] && rsync_to "${host}" "${password}" "${webapp}/WEB-INF/classes/${class_dir}/" "${class_file}"
 	done
 	done
 
 
-	# Website 由 apps.pojo.jar 提供,清理曾误同步的同名覆盖类。
-	run_remote "${host}" "${password}" "rm -f '${webapp}/WEB-INF/classes/apps/pojo/Website.class'"
-
 	# 游客账号 JSP 组件
 	# 游客账号 JSP 组件
 	if [[ -d "${PROJECT_ROOT}/WebRoot/web/subassembly/app/pc/10007/10536" ]]; then
 	if [[ -d "${PROJECT_ROOT}/WebRoot/web/subassembly/app/pc/10007/10536" ]]; then
 		for id in 10536 10537 10538; do
 		for id in 10536 10537 10538; do

+ 276 - 0
src/apps/pojo/Website.java

@@ -0,0 +1,276 @@
+package apps.pojo;
+
+import java.sql.Timestamp;
+import java.util.HashMap;
+
+import space.core.db.bean.base.PageBean;
+
+public class Website extends PageBean {
+	public String clsInfo;
+	private static final HashMap WEBSITE_FIELDS_MAPPING = new HashMap();
+
+	private Long websiteid;
+	private Long dcode;
+	private Long unitid;
+	private Long wtcode;
+	private Long wtid;
+	private Long parentWid;
+	private String name;
+	private String desc;
+	private String protocol;
+	private Long port;
+	private String domains;
+	private String catalogUri;
+	private String logo;
+	private String whiteLogoFile;
+	private String seoIcon;
+	private String seoTitle;
+	private String seoKeywords;
+	private String seoDescription;
+	private Long sortNumber;
+	private Timestamp createTime;
+	private Long createPid;
+	private String idCode;
+
+	public Website() {
+		this.clsInfo = " SpaceCore Compatible Version; Date: 2026/07/17;";
+		this.setObjName("Website");
+		this.setDbTableName("website");
+		if (WEBSITE_FIELDS_MAPPING.size() == 0) {
+			WEBSITE_FIELDS_MAPPING.put("websiteid", new String[] { "websiteid", "websiteid", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("dcode", new String[] { "dcode", "dcode", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("unitid", new String[] { "unitid", "unitid", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("wtcode", new String[] { "wtcode", "wtcode", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("wtid", new String[] { "wtid", "wtid", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("parentWid", new String[] { "parent_wid", "parentWid", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("name", new String[] { "name", "name", "String" });
+			WEBSITE_FIELDS_MAPPING.put("desc", new String[] { "desc", "desc", "String" });
+			WEBSITE_FIELDS_MAPPING.put("protocol", new String[] { "protocol", "protocol", "String" });
+			WEBSITE_FIELDS_MAPPING.put("port", new String[] { "port", "port", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("domains", new String[] { "domains", "domains", "String" });
+			WEBSITE_FIELDS_MAPPING.put("catalogUri", new String[] { "catalog_uri", "catalogUri", "String" });
+			WEBSITE_FIELDS_MAPPING.put("logo", new String[] { "logo", "logo", "String" });
+			WEBSITE_FIELDS_MAPPING.put("whiteLogoFile", new String[] { "white_logo_file", "whiteLogoFile", "String" });
+			WEBSITE_FIELDS_MAPPING.put("seoIcon", new String[] { "seo_icon", "seoIcon", "String" });
+			WEBSITE_FIELDS_MAPPING.put("seoTitle", new String[] { "seo_title", "seoTitle", "String" });
+			WEBSITE_FIELDS_MAPPING.put("seoKeywords", new String[] { "seo_keywords", "seoKeywords", "String" });
+			WEBSITE_FIELDS_MAPPING.put("seoDescription", new String[] { "seo_description", "seoDescription", "String" });
+			WEBSITE_FIELDS_MAPPING.put("sortNumber", new String[] { "sort_number", "sortNumber", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("createTime", new String[] { "create_time", "createTime", "Timestamp" });
+			WEBSITE_FIELDS_MAPPING.put("createPid", new String[] { "create_pid", "createPid", "Long" });
+			WEBSITE_FIELDS_MAPPING.put("idCode", new String[] { "id_code", "idCode", "String" });
+		}
+	}
+
+	public HashMap getFieldMap() {
+		return WEBSITE_FIELDS_MAPPING;
+	}
+
+	public int getFieldMappingCount() {
+		return WEBSITE_FIELDS_MAPPING.size();
+	}
+
+	public Object[] getFieldMappingItems() {
+		return WEBSITE_FIELDS_MAPPING.values().toArray();
+	}
+
+	public String[] getFieldMappingItem(String key) {
+		return (String[]) WEBSITE_FIELDS_MAPPING.get(key);
+	}
+
+	public Long getDbObjectId() {
+		return this.websiteid;
+	}
+
+	public void setDbObjectId(Long websiteid) {
+		this.websiteid = websiteid;
+	}
+
+	public String getDbObjectIdName() {
+		return "websiteid";
+	}
+
+	public String getObjectIdName() {
+		return "websiteid";
+	}
+
+	public Long getWebsiteid() {
+		return websiteid;
+	}
+
+	public void setWebsiteid(Long websiteid) {
+		this.websiteid = websiteid;
+	}
+
+	public Long getDcode() {
+		return dcode;
+	}
+
+	public void setDcode(Long dcode) {
+		this.dcode = dcode;
+	}
+
+	public Long getUnitid() {
+		return unitid;
+	}
+
+	public void setUnitid(Long unitid) {
+		this.unitid = unitid;
+	}
+
+	public Long getWtcode() {
+		return wtcode;
+	}
+
+	public void setWtcode(Long wtcode) {
+		this.wtcode = wtcode;
+	}
+
+	public Long getWtid() {
+		return wtid;
+	}
+
+	public void setWtid(Long wtid) {
+		this.wtid = wtid;
+	}
+
+	public Long getParentWid() {
+		return parentWid;
+	}
+
+	public void setParentWid(Long parentWid) {
+		this.parentWid = parentWid;
+	}
+
+	public String getName() {
+		return name;
+	}
+
+	public void setName(String name) {
+		this.name = name;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+
+	public void setDesc(String desc) {
+		this.desc = desc;
+	}
+
+	public String getProtocol() {
+		return protocol;
+	}
+
+	public void setProtocol(String protocol) {
+		this.protocol = protocol;
+	}
+
+	public Long getPort() {
+		return port;
+	}
+
+	public void setPort(Long port) {
+		this.port = port;
+	}
+
+	public String getDomains() {
+		return domains;
+	}
+
+	public void setDomains(String domains) {
+		this.domains = domains;
+	}
+
+	public String getCatalogUri() {
+		return catalogUri;
+	}
+
+	public void setCatalogUri(String catalogUri) {
+		this.catalogUri = catalogUri;
+	}
+
+	public String getLogo() {
+		return logo;
+	}
+
+	public void setLogo(String logo) {
+		this.logo = logo;
+	}
+
+	public String getWhiteLogoFile() {
+		return whiteLogoFile;
+	}
+
+	public void setWhiteLogoFile(String whiteLogoFile) {
+		this.whiteLogoFile = whiteLogoFile;
+	}
+
+	public String getSeoIcon() {
+		return seoIcon;
+	}
+
+	public void setSeoIcon(String seoIcon) {
+		this.seoIcon = seoIcon;
+	}
+
+	public String getSeoTitle() {
+		return seoTitle;
+	}
+
+	public void setSeoTitle(String seoTitle) {
+		this.seoTitle = seoTitle;
+	}
+
+	public String getSeoKeywords() {
+		return seoKeywords;
+	}
+
+	public void setSeoKeywords(String seoKeywords) {
+		this.seoKeywords = seoKeywords;
+	}
+
+	public String getSeoDescription() {
+		return seoDescription;
+	}
+
+	public void setSeoDescription(String seoDescription) {
+		this.seoDescription = seoDescription;
+	}
+
+	public Long getSortNumber() {
+		return sortNumber;
+	}
+
+	public void setSortNumber(Long sortNumber) {
+		this.sortNumber = sortNumber;
+	}
+
+	public Timestamp getCreateTime() {
+		return createTime;
+	}
+
+	public void setCreateTime(Timestamp createTime) {
+		this.createTime = createTime;
+	}
+
+	public Long getCreatePid() {
+		return createPid;
+	}
+
+	public void setCreatePid(Long createPid) {
+		this.createPid = createPid;
+	}
+
+	public String getIdCode() {
+		return idCode;
+	}
+
+	public void setIdCode(String idCode) {
+		this.idCode = idCode;
+	}
+
+	public String toString() {
+		return "Website[websiteid=" + websiteid + "]";
+	}
+}