Files
shz-backend/sql/migration_add_job_status_and_key_populations.sql
lapuda c1a7aa3532 feat: Add news information management module with API and database support
- Introduced new API endpoints for querying and managing news information in the CMS.
- Implemented data model for NewsInfo and NewsInfoQuery with validation.
- Created NewsInfoMapper for database interactions and corresponding XML mappings.
- Developed INewsInfoService interface and its implementation for business logic.
- Added RichTextSanitizer utility for cleaning HTML content to prevent XSS attacks.
- Created unit tests for RichTextSanitizer to ensure proper functionality.
- Updated database schema with news_info table and necessary fields, including status and module.
- Added migration scripts for setting up the news information module in the database.
- Integrated jsoup library for HTML sanitization.
2026-07-20 14:54:15 +08:00

21 lines
861 B
PL/PgSQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 岗位上下架状态、是否重点人群及重点人群类型字段。
-- 执行目标:对应环境 HighGo 数据库的 shz schema。
-- 可重复执行:字段使用 IF NOT EXISTS列注释可重复设置。
-- 字段定义与测试库 shz.job 保持一致:允许为空且不设置默认值。
BEGIN;
ALTER TABLE "shz"."job"
ADD COLUMN IF NOT EXISTS "job_status" VARCHAR(2),
ADD COLUMN IF NOT EXISTS "is_key_populations" VARCHAR(2),
ADD COLUMN IF NOT EXISTS "key_populations" VARCHAR(20);
COMMENT ON COLUMN "shz"."job"."job_status"
IS '是否下架(0上架1下架)';
COMMENT ON COLUMN "shz"."job"."is_key_populations"
IS '是否重点人群';
COMMENT ON COLUMN "shz"."job"."key_populations"
IS '重点人群1农民工、2团场职工、3失业人员、4零就业家庭、5零工人员、6退役军人';
COMMIT;