Browse Source

撤销错误的 Website 类覆盖

恢复使用 apps.pojo.jar 内置的 Website 核心类,避免 hxcs 文章菜单和栏目接口因同名 class 覆盖而报错。

发布脚本不再编译或同步 Website.class,并在同步时清理服务器上已存在的错误覆盖类。

Validation:
- local-run/bin/compile-hxcs-deploy-classes.sh
- 本地完整环境重启成功,HTTP 200
- 本地运行副本已加载最新 AppWebsiteManageUtil 排序类
非繁 4 months ago
parent
commit
ad78e118d8

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

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

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

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

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

@@ -1,276 +0,0 @@
-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 + "]";
-	}
-}