ALTER TABLE "mailbox"."mail_appeal" ADD COLUMN "first_leader_emp_no" varchar, ADD COLUMN "first_leader_condition" text; COMMENT ON COLUMN "mailbox"."mail_appeal"."first_leader_emp_no" IS '市局领导警号'; COMMENT ON COLUMN "mailbox"."mail_appeal"."first_leader_condition" IS '市局领导审批意见'; INSERT INTO "mailbox"."flow_node"("key", "before_name", "full_name", "limited_time", "web_components", "sort", "after_name") VALUES ('first_leader_approval', '待审批', '市局领导审批', 345600, 'MailApprovalDetail,Comments', 18, NULL); update "mailbox"."flow_node" set full_name = '部门会签' where key = 'countersign'; INSERT INTO "mailbox"."role"("id", "name", "remark", "sort", "is_disable", "create_time", "update_time") VALUES (8, '市局专班领导', NULL, 6, 0, 1715332587, 1715332604); ALTER TABLE "mailbox"."mail" ADD COLUMN "first_distribute_time" timestamp; COMMENT ON COLUMN "mailbox"."mail"."first_distribute_time" IS '市局专班下发时间'; update mail m set m.first_distribute_time = f.create_time from mail_flow f where m.id = f.mail_id and f.flow_key = 'three_sign';