INSERT INTO xjr_dictionary_item (id,name,code,sort_code,remark,create_user_id,create_date,modify_user_id,modify_date,delete_mark,enabled_mark,tenant_id) VALUES
	 (1673142942973763585,'功能类别','GN10000',1,NULL,1000000000000000000,'2023-06-26 09:35:37.767',NULL,NULL,0,1,1);

INSERT INTO xjr_menu (id,parent_id,name,title,code,icon,path,component,component_type,iframe_src,menu_type,display,allow_modify,allow_delete,out_link,keep_alive,sort_code,remark,create_user_id,create_date,modify_user_id,modify_date,delete_mark,enabled_mark,system_id,form_id,tenant_id) VALUES
(1828993316421419009,0,'系统通知2369','系统通知','systemNotice','ant-design:tags-twotone','xitongtongzhi','/system/systemNotice/index',0,NULL,1,1,1,1,0,0,80,NULL,1000000000000000000,'2024-08-29 11:09:22.359',NULL,NULL,0,1,1,1828993316144594944,NULL);

INSERT INTO xjr_menu_button (id,name,menu_id,icon,code,url,method,tenant_id) VALUES
	 (1828993316673077249,'新增',1828993316421419009,'ant-design:plus-outlined','systemnotice:add',NULL,NULL,NULL),
	 (1828993316673077250,'编辑',1828993316421419009,'ant-design:form-outlined','systemnotice:edit',NULL,NULL,NULL),
	 (1828993316673077251,'刷新',1828993316421419009,'ant-design:reload-outlined','systemnotice:refresh',NULL,NULL,NULL),
	 (1828993316673077252,'查看',1828993316421419009,'ant-design:eye-outlined','systemnotice:view',NULL,NULL,NULL),
	 (1828993316673077253,'复制数据',1828993316421419009,'ant-design:copy-outlined','systemnotice:copyData',NULL,NULL,NULL),
	 (1828993316673077254,'删除',1828993316421419009,'ant-design:delete-outlined','systemnotice:delete',NULL,NULL,NULL);

INSERT INTO xjr_menu_column (id,menu_id,code,name,sort_code,description,tenant_id) VALUES
	 (1828993316735991809,1828993316421419009,'title','标题',NULL,NULL,NULL),
	 (1828993316735991810,1828993316421419009,'type','类型',NULL,NULL,NULL),
	 (1828993316735991811,1828993316421419009,'publisherType','发布主体类型',NULL,NULL,NULL),
	 (1828993316735991812,1828993316421419009,'publisher','发布主体',NULL,NULL,NULL),
	 (1828993316735991813,1828993316421419009,'status','发布状态',NULL,NULL,NULL);

INSERT INTO xjr_menu_form (id,menu_id,code,name,sort_code,is_required,parent_id,tenant_id) VALUES
	 (1828993316735991814,1828993316421419009,'7b8d7c4f6460482b808e9d6cf62f384c','标题',NULL,0,0,NULL),
	 (1828993316735991815,1828993316421419009,'title','标题',NULL,1,0,NULL),
	 (1828993316735991816,1828993316421419009,'type','类型',NULL,1,0,NULL),
	 (1828993316735991817,1828993316421419009,'publisherType','发布主体类型',NULL,0,0,NULL),
	 (1828993316735991818,1828993316421419009,'publisher','发布主体',NULL,0,0,NULL),
	 (1828993316735991819,1828993316421419009,'status','发布状态',NULL,0,0,NULL),
	 (1828993316798906369,1828993316421419009,'content','内容',NULL,0,0,NULL),
	 (1828993316798906370,1828993316421419009,'attachs','附件',NULL,0,0,NULL),
	 (1828993316656300032,1828993316421419009,'xjrNoticeUser','通知人员',NULL,NULL,NULL,NULL),
	 (1828993316798906371,1828993316421419009,'userId','人员',NULL,1,1828993316656300032,NULL);
INSERT INTO xjr_menu_form (id,menu_id,code,name,sort_code,is_required,parent_id,tenant_id) VALUES
	 (1828993316798906372,1828993316421419009,'isRead','已读',NULL,0,1828993316656300032,NULL),
	 (1828993316798906373,1828993316421419009,'reply','回复',NULL,0,1828993316656300032,NULL);	 

	 	 
INSERT INTO xjr_dictionary_item (id,name,code,sort_code,remark,create_user_id,create_date,modify_user_id,modify_date,delete_mark,enabled_mark,tenant_id) VALUES
	 (1718831555510091777,'公告类型','noticeType',10,NULL,NULL,NULL,NULL,NULL,0,1,NULL);

ALTER TABLE xjr_notice 
MODIFY COLUMN `RANGE` int NOT NULL DEFAULT 1 COMMENT '通知范围，0公开/1指定用户' AFTER rule_user_id;


INSERT INTO xjr_form_template (id,name,category,form_type,form_design_type,form_json,sort_code,remark,create_user_id,create_date,modify_user_id,modify_date,delete_mark,enabled_mark,config_json,tenant_id) VALUES
	 (1828993316144594944,'系统通知',NULL,0,NULL,'{"databaseId":"master","tableStructureConfigs":[{"operator":4,"tableName":"xjr_notice_user","tableComment":null,"isMain":false,"pkField":null,"tableFieldConfigs":[{"fieldName":"user_id","fieldType":null,"fieldLength":50,"fieldComment":"人员"},{"fieldName":"is_read","fieldType":null,"fieldLength":50,"fieldComment":"已读"},{"fieldName":"reply","fieldType":null,"fieldLength":50,"fieldComment":"回复"}]},{"operator":4,"tableName":"xjr_notice","tableComment":null,"isMain":true,"pkField":null,"tableFieldConfigs":[{"fieldName":null,"fieldType":null,"fieldLength":50,"fieldComment":"标题"},{"fieldName":"title","fieldType":null,"fieldLength":50,"fieldComment":"标题"},{"fieldName":"type","fieldType":null,"fieldLength":50,"fieldComment":"类型"},{"fieldName":"publisher_type","fieldType":null,"fieldLength":50,"fieldComment":"发布主体类型"},{"fieldName":"publisher","fieldType":null,"fieldLength":50,"fieldComment":"发布主体"},{"fieldName":"status","fieldType":null,"fieldLength":50,"fieldComment":"发布状态"},{"fieldName":"content","fieldType":null,"fieldLength":50,"fieldComment":"内容"},{"fieldName":"attachs","fieldType":null,"fieldLength":50,"fieldComment":"附件"}]}],"formEventConfig":{"0":[{"type":"circle","color":"#2774ff","text":"开始节点","icon":"#icon-kaishi","bgcColor":"#D8E5FF","isUserDefined":false},{"color":"#F6AB01","icon":"#icon-chushihua","text":"初始化表单","bgcColor":"#f9f5ea","isUserDefined":false,"nodeInfo":{"processEvent":[]}}],"1":[{"color":"#B36EDB","icon":"#icon-shujufenxi","text":"获取表单数据","detail":"(新增无此操作)","bgcColor":"#F8F2FC","isUserDefined":false,"nodeInfo":{"processEvent":[]}}],"2":[{"color":"#F8625C","icon":"#icon-jiazai","text":"加载表单","bgcColor":"#FFF1F1","isUserDefined":false,"nodeInfo":{"processEvent":[]}}],"3":[{"color":"#6C6AE0","icon":"#icon-jsontijiao","text":"提交表单","bgcColor":"#F5F4FF","isUserDefined":false,"nodeInfo":{"processEvent":[]}}],"4":[{"type":"circle","color":"#F8625C","text":"结束节点","icon":"#icon-jieshuzhiliao","bgcColor":"#FFD6D6","isLast":true,"isUserDefined":false}]},"tableConfigs":[{"tableName":"xjr_notice","isMain":true,"pkField":"id","pkType":"Long","relationField":null,"relationTableField":null},{"tableName":"xjr_notice_user","isMain":false,"pkField":"id","pkType":"Long","relationField":"notice_id","relationTableField":"id"}],"formJson":{"list":[{"label":"标题","type":"title","key":"[REDACTED]","bindTable":null,"bindField":null,"rules":[],"children":null,"layout":null,"options":{"defaultValue":"通知","color":"","align":"left","fontSize":18,"isShow":true},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"标题","type":"input","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"title","rules":[],"children":null,"layout":null,"options":{"width":"100%","span":"","defaultValue":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请输入标题","maxlength":null,"prefix":"","suffix":"","addonBefore":"","addonAfter":"","disabled":false,"allowClear":false,"showLabel":true,"required":true,"rules":[],"events":{},"isSave":false,"isShow":true,"scan":false},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"类型","type":"select","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"type","rules":[],"children":null,"layout":null,"options":{"width":"100%","span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请选择类型","sepTextField":"","showLabel":true,"showSearch":false,"clearable":false,"disabled":false,"staticOptions":[{"key":1,"label":"Option 1","value":"Option 1"},{"key":2,"label":"Option 2","value":"Option 2"},{"key":3,"label":"Option 3","value":"Option 3"}],"defaultSelect":null,"datasourceType":"dic","params":{"itemId":"1718831555510091777"},"labelField":"name","valueField":"value","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":true,"rules":[],"events":{},"isShow":true,"itemId":"1718831555510091777"},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"发布主体类型","type":"radio","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"publisher_type","rules":[],"children":null,"layout":null,"options":{"span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"showLabel":true,"disabled":false,"optionType":"default","staticOptions":[{"key":1,"label":"组织","value":"1"},{"key":2,"label":"用户","value":"0"}],"datasourceType":"staticData","labelField":"label","valueField":"value","defaultSelect":"1","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":false,"rules":[],"events":{},"isShow":true,"params":null},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"发布主体","type":"organization","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"publisher","rules":[],"children":null,"layout":null,"options":{"labelWidthMode":"fix","labelFixWidth":120,"parentNode":"","responsive":true,"sepTextField":"","span":"","width":"100%","orgzType":0,"placeholder":"请选择发布主体","showLabel":true,"disabled":false,"required":false,"isShow":true,"events":{}},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"发布状态","type":"select","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"status","rules":[],"children":null,"layout":null,"options":{"width":"100%","span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请选择发布状态","sepTextField":"","showLabel":true,"showSearch":false,"clearable":false,"disabled":false,"staticOptions":[{"key":1,"label":"草稿","value":"0"},{"key":2,"label":"已发布","value":"1"},{"key":3,"label":"已结束","value":"2"}],"defaultSelect":"0","datasourceType":"staticData","params":null,"labelField":"label","valueField":"value","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":false,"rules":[],"events":{},"isShow":true},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"内容","type":"richtext-editor","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"content","rules":[],"children":null,"layout":null,"options":{"labelWidthMode":"fix","labelFixWidth":120,"span":"","defaultValue":"","width":"100%","disabled":false,"showLabel":true,"required":false,"isShow":true,"rules":[],"events":{}},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"附件","type":"upload","key":"[REDACTED]","bindTable":"xjr_notice","bindField":"attachs","rules":[],"children":null,"layout":null,"options":{"labelWidthMode":"fix","labelFixWidth":120,"span":"","defaultValue":[],"accept":"","maxNumber":5,"maxSize":5,"showLabel":true,"multiple":true,"disabled":false,"required":false,"isShow":true,"events":{},"listType":"text"},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"通知人员","type":"form","key":"[REDACTED]","bindTable":"xjr_notice_user","bindField":null,"rules":[],"children":[{"label":"人员","type":"user","key":"[REDACTED]","bindTable":"xjr_notice_user","bindField":"user_id","rules":null,"children":null,"layout":null,"options":{"labelWidthMode":"fix","labelFixWidth":120,"responsive":false,"sepTextField":"","span":"","width":"100%","defaultValue":"","placeholder":"请选择人员","userType":0,"prefix":"","suffix":"ant-design:setting-outlined","showLabel":true,"disabled":false,"required":true,"isShow":true,"events":{}},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":true,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"已读","type":"switch","key":"[REDACTED]","bindTable":"xjr_notice_user","bindField":"is_read","rules":null,"children":null,"layout":null,"options":{"span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":false,"respNewRow":false,"defaultValue":0,"checkedChildren":"","unCheckedChildren":"","checkedColor":"#5e95ff","unCheckedColor":"#bbbdbf","showLabel":true,"disabled":true,"events":{},"isShow":true},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":true,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null},{"label":"回复","type":"input","key":"[REDACTED]","bindTable":"xjr_notice_user","bindField":"reply","rules":null,"children":null,"layout":null,"options":{"width":"100%","span":"","defaultValue":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":false,"respNewRow":false,"placeholder":"暂无回复","maxlength":null,"prefix":"","suffix":"","addonBefore":"","addonAfter":"","disabled":true,"allowClear":false,"showLabel":true,"required":false,"rules":[],"events":{},"isSave":false,"isShow":true,"scan":false},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":true,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null}],"layout":null,"options":{"span":"24","preloadType":"api","apiConfig":{},"itemId":"","dicOptions":[],"useSelectButton":false,"buttonName":"选择数据","showLabel":true,"showComponentBorder":true,"showFormBorder":true,"showIndex":true,"isShow":true,"multipleHeads":[]},"bindStartTime":null,"bindEndTime":null,"value":null,"code":null,"isSubFormChild":false,"height":null,"position":null,"width":null,"colspan":null,"rowspan":null,"class":null}],"config":{"formType":"modal","size":"default","hideRequiredMark":null,"layout":"horizontal","labelAlign":"right","labelCol":{"span":3,"offset":0},"formWidth":900},"hiddenComponent":[]},"isDataAuth":null,"dataAuthList":null}',NULL,NULL,1000000000000000000,'2024-08-29 11:09:22.463',NULL,NULL,0,1,'{"isLeftMenu":false,"isPage":true,"pageSize":null,"leftMenuConfig":{"isTree":null,"leftWidth":null,"datasourceType":"static","datasourceId":null,"relationFieldName":null,"listFieldName":null,"fieldName":null,"parentFiledName":null,"showFieldName":null,"dictionaryItemId":null,"menuName":"","parentIcon":"","childIcon":"","apiConfig":{},"staticData":[]},"queryConfigs":[{"fieldName":"title","label":null,"isDate":false,"width":null,"format":null},{"fieldName":"type","label":null,"isDate":false,"width":null,"format":null},{"fieldName":"publisher_type","label":null,"isDate":false,"width":null,"format":null},{"fieldName":"publisher","label":null,"isDate":false,"width":null,"format":null},{"fieldName":"status","label":null,"isDate":false,"width":null,"format":null}],"columnConfigs":[{"label":"标题","columnName":"title","alignType":"left","columnWidth":"100","autoWidth":true,"componentType":"input","isTotal":false,"isNumber":false,"format":null,"key":"[REDACTED]","componentProps":{"width":"100%","span":"","defaultValue":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请输入标题","maxlength":null,"prefix":"","suffix":"","addonBefore":"","addonAfter":"","disabled":false,"allowClear":false,"showLabel":true,"required":true,"rules":[],"events":{},"isSave":false,"isShow":true,"scan":false},"isFilter":false},{"label":"类型","columnName":"type","alignType":"left","columnWidth":"100","autoWidth":true,"componentType":"select","isTotal":false,"isNumber":true,"format":null,"key":"[REDACTED]","componentProps":{"width":"100%","span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请选择类型","sepTextField":"","showLabel":true,"showSearch":false,"clearable":false,"disabled":false,"staticOptions":[{"key":1,"label":"Option 1","value":"Option 1"},{"key":2,"label":"Option 2","value":"Option 2"},{"key":3,"label":"Option 3","value":"Option 3"}],"defaultSelect":null,"datasourceType":"dic","params":{"itemId":"1718831555510091777"},"labelField":"name","valueField":"value","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":true,"rules":[],"events":{},"isShow":true,"itemId":"1718831555510091777"},"isFilter":false},{"label":"发布主体类型","columnName":"publisher_type","alignType":"left","columnWidth":"100","autoWidth":true,"componentType":"radio","isTotal":false,"isNumber":true,"format":null,"key":"[REDACTED]","componentProps":{"span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"showLabel":true,"disabled":false,"optionType":"default","staticOptions":[{"key":1,"label":"组织","value":"1"},{"key":2,"label":"用户","value":"0"}],"datasourceType":"staticData","labelField":"label","valueField":"value","defaultSelect":"1","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":false,"rules":[],"events":{},"isShow":true,"params":null},"isFilter":false},{"label":"发布主体","columnName":"publisher","alignType":"left","columnWidth":"100","autoWidth":true,"componentType":"organization","isTotal":false,"isNumber":true,"format":null,"key":"[REDACTED]","componentProps":{"labelWidthMode":"fix","labelFixWidth":120,"parentNode":"","responsive":true,"sepTextField":"","span":"","width":"100%","orgzType":0,"placeholder":"请选择发布主体","showLabel":true,"disabled":false,"required":false,"isShow":true,"events":{}},"isFilter":false},{"label":"发布状态","columnName":"status","alignType":"left","columnWidth":"100","autoWidth":true,"componentType":"select","isTotal":false,"isNumber":true,"format":null,"key":"[REDACTED]","componentProps":{"width":"100%","span":"","labelWidthMode":"fix","labelFixWidth":120,"responsive":true,"respNewRow":false,"placeholder":"请选择发布状态","sepTextField":"","showLabel":true,"showSearch":false,"clearable":false,"disabled":false,"staticOptions":[{"key":1,"label":"草稿","value":"0"},{"key":2,"label":"已发布","value":"1"},{"key":3,"label":"已结束","value":"2"}],"defaultSelect":"0","datasourceType":"staticData","params":null,"labelField":"label","valueField":"value","apiConfig":{"path":"CodeGeneration/selection","method":"GET","apiId":"[REDACTED]"},"dicOptions":[],"required":false,"rules":[],"events":{},"isShow":true},"isFilter":false}],"buttonConfigs":[{"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true,"isUse":true},{"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"name":"批量删除","code":"batchdelete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":false},{"name":"复制数据","code":"copyData","icon":"ant-design:copy-outlined","isDefault":true,"isUse":true},{"name":"批量设置权限所属人","code":"batchSetUserId","icon":"ant-design:setting-outlined","isDefault":true,"isUse":false},{"name":"快速导入","code":"import","icon":"ant-design:import-outlined","isDefault":true,"isUse":false},{"name":"快速导出","code":"export","icon":"ant-design:export-outlined","isDefault":true,"isUse":false},{"name":"发起审批","code":"startwork","icon":"ant-design:form-outlined","isDefault":true,"isUse":false},{"name":"查看流转记录","code":"flowRecord","icon":"ant-design:form-outlined","isDefault":true,"isUse":false},{"name":"打印","code":"print","icon":"ant-design:printer-outlined","isDefault":true,"isUse":false},{"name":"模板打印","code":"templateprint","icon":"ant-design:printer-outlined","isDefault":true,"isUse":false},{"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}],"totalConfigs":null,"defaultOrder":true,"orderBy":null,"orderType":"","listTitle":null}',NULL);
