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

补齐 hxcs 排序功能部署清单

同步脚本增加全局排序相关 Java class,包括 SortOrderUtil、NavigationAPIService、AppWebsiteManageUtil、NavigationService、WebsiteTemplateService、PersonService、PersonSelectService 和 Person。

避免试运行环境部署时只编译但未同步新排序类,导致下拉排序等功能没有实际生效。

Validation:

- bash -n local-run/bin/sync-to-hxcs-prod.sh

- git diff --check

- git diff --cached --check

- local-run/bin/compile-hxcs-deploy-classes.sh
非繁 4 месяцев назад
Родитель
Сommit
b1fc61f0d4
1 измененных файлов с 15 добавлено и 0 удалено
  1. 15 0
      local-run/bin/sync-to-hxcs-prod.sh

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

@@ -275,6 +275,21 @@ sync_static_files() {
 		[[ -f "${class_file}" ]] && rsync_to "${host}" "${password}" "${webapp}/WEB-INF/classes/space/apps/moudules/sys/services/" "${class_file}"
 	done
 
+	# 全局排序序号相关 Java 类
+	for class_path in \
+		"apps/pojo/Person.class" \
+		"space/apps/moudules/basic/util/SortOrderUtil.class" \
+		"space/apps/moudules/personnel/services/PersonService.class" \
+		"space/apps/moudules/personnel/services/PersonSelectService.class" \
+		"space/apps/moudules/website/services/NavigationService.class" \
+		"space/apps/moudules/website/services/NavigationAPIService.class" \
+		"space/apps/moudules/website/services/WebsiteTemplateService.class" \
+		"space/apps/moudules/website/util/AppWebsiteManageUtil.class"; do
+		local class_file="${PROJECT_ROOT}/WebRoot/WEB-INF/classes/${class_path}"
+		local class_dir="${class_path%/*}"
+		[[ -f "${class_file}" ]] && rsync_to "${host}" "${password}" "${webapp}/WEB-INF/classes/${class_dir}/" "${class_file}"
+	done
+
 	# 游客账号 JSP 组件
 	if [[ -d "${PROJECT_ROOT}/WebRoot/web/subassembly/app/pc/10007/10536" ]]; then
 		for id in 10536 10537 10538; do