Browse Source

修复网站模板排序字段部署缺失

新增 WebsiteTemplate POJO 覆盖类,补齐 sortNumber 字段映射和 getter/setter,避免 website_template 新增 sort_number 后远端反射加载失败。

更新试运行发布编译与同步清单,确保 WebsiteTemplate.class 会随 hxcs 文件同步发布。

Validation:

- ./local-run/bin/compile-hxcs-deploy-classes.sh

- javap 确认 apps.pojo.WebsiteTemplate 包含 getSortNumber/setSortNumber
非繁 4 months ago
parent
commit
8252734359

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

@@ -16,6 +16,7 @@ fi
 
 SOURCES=(
 	"${PROJECT_ROOT}/src/apps/pojo/Person.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"
 	"${PROJECT_ROOT}/src/space/apps/moudules/website/template/ffkjcollege1/WebSiteArticleService.java"

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

@@ -306,6 +306,7 @@ sync_static_files() {
 	# 全局排序序号相关 Java 类
 	for class_path in \
 		"apps/pojo/Person.class" \
+		"apps/pojo/WebsiteTemplate.class" \
 		"space/apps/moudules/basic/util/SortOrderUtil.class" \
 		"space/apps/moudules/personnel/services/PersonService.class" \
 		"space/apps/moudules/personnel/services/PersonSelectService.class" \

+ 216 - 0
src/apps/pojo/WebsiteTemplate.java

@@ -0,0 +1,216 @@
+package apps.pojo;
+
+import java.sql.Timestamp;
+import java.util.HashMap;
+
+import space.core.db.bean.base.PageBean;
+
+public class WebsiteTemplate extends PageBean {
+	public String clsInfo;
+	private static final HashMap WEBSITETEMPLATE_FIELDS_MAPPING = new HashMap();
+
+	private Long wtid;
+	private Long dcode;
+	private Long unitid;
+	private String name;
+	private String desc;
+	private String previewUrl;
+	private String thumbnail;
+	private Long wtccode;
+	private Long wttcode;
+	private Long wtacode;
+	private Long cms;
+	private String config;
+	private Long sortNumber;
+	private Timestamp createTime;
+	private Long createPid;
+	private String idCode;
+
+	public WebsiteTemplate() {
+		this.clsInfo = " SpaceCore Compatible Version; Date: 2026/07/17;";
+		this.setObjName("WebsiteTemplate");
+		this.setDbTableName("website_template");
+		if (WEBSITETEMPLATE_FIELDS_MAPPING.size() == 0) {
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("wtid", new String[] { "wtid", "wtid", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("dcode", new String[] { "dcode", "dcode", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("unitid", new String[] { "unitid", "unitid", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("name", new String[] { "name", "name", "String" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("desc", new String[] { "desc", "desc", "String" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("previewUrl", new String[] { "preview_url", "previewUrl", "String" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("thumbnail", new String[] { "thumbnail", "thumbnail", "String" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("wtccode", new String[] { "wtccode", "wtccode", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("wttcode", new String[] { "wttcode", "wttcode", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("wtacode", new String[] { "wtacode", "wtacode", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("cms", new String[] { "cms", "cms", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("config", new String[] { "config", "config", "String" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("sortNumber", new String[] { "sort_number", "sortNumber", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("createTime", new String[] { "create_time", "createTime", "Timestamp" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("createPid", new String[] { "create_pid", "createPid", "Long" });
+			WEBSITETEMPLATE_FIELDS_MAPPING.put("idCode", new String[] { "id_code", "idCode", "String" });
+		}
+	}
+
+	public HashMap getFieldMap() {
+		return WEBSITETEMPLATE_FIELDS_MAPPING;
+	}
+
+	public int getFieldMappingCount() {
+		return WEBSITETEMPLATE_FIELDS_MAPPING.size();
+	}
+
+	public Object[] getFieldMappingItems() {
+		return WEBSITETEMPLATE_FIELDS_MAPPING.values().toArray();
+	}
+
+	public String[] getFieldMappingItem(String key) {
+		return (String[]) WEBSITETEMPLATE_FIELDS_MAPPING.get(key);
+	}
+
+	public Long getDbObjectId() {
+		return this.wtid;
+	}
+
+	public void setDbObjectId(Long wtid) {
+		this.wtid = wtid;
+	}
+
+	public String getDbObjectIdName() {
+		return "wtid";
+	}
+
+	public String getObjectIdName() {
+		return "wtid";
+	}
+
+	public Long getWtid() {
+		return wtid;
+	}
+
+	public void setWtid(Long wtid) {
+		this.wtid = wtid;
+	}
+
+	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 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 getPreviewUrl() {
+		return previewUrl;
+	}
+
+	public void setPreviewUrl(String previewUrl) {
+		this.previewUrl = previewUrl;
+	}
+
+	public String getThumbnail() {
+		return thumbnail;
+	}
+
+	public void setThumbnail(String thumbnail) {
+		this.thumbnail = thumbnail;
+	}
+
+	public Long getWtccode() {
+		return wtccode;
+	}
+
+	public void setWtccode(Long wtccode) {
+		this.wtccode = wtccode;
+	}
+
+	public Long getWttcode() {
+		return wttcode;
+	}
+
+	public void setWttcode(Long wttcode) {
+		this.wttcode = wttcode;
+	}
+
+	public Long getWtacode() {
+		return wtacode;
+	}
+
+	public void setWtacode(Long wtacode) {
+		this.wtacode = wtacode;
+	}
+
+	public Long getCms() {
+		return cms;
+	}
+
+	public void setCms(Long cms) {
+		this.cms = cms;
+	}
+
+	public String getConfig() {
+		return config;
+	}
+
+	public void setConfig(String config) {
+		this.config = config;
+	}
+
+	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 "WebsiteTemplate[wtid=" + wtid + "]";
+	}
+}