- 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.
21 lines
861 B
PL/PgSQL
21 lines
861 B
PL/PgSQL
-- 岗位上下架状态、是否重点人群及重点人群类型字段。
|
||
-- 执行目标:对应环境 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;
|