ALTER TABLE `security_company` ADD COLUMN `seq` int(11) NULL DEFAULT 1000 COMMENT '排序' AFTER `companyCode`; ALTER TABLE `security_company` ADD COLUMN `workAddress` VARCHAR(1000) NULL COMMENT '办公地址' AFTER `location`; ALTER TABLE `security_good_thing` ADD COLUMN `goodDeedsType` varchar(4) NULL COMMENT '好人好事类型' AFTER `goodDeedsId`; INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '01', '见义勇为', '1'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '02', '尊老爱幼', '2'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '03', ' 爱岗敬业', '3'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '04', '孝顺爱亲', '4'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '05', '拾金不昧', '5'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '06', '爱国爱党', '6'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '07', '保护环境', '7'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '08', '勤俭节约', '8'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '09', ' 助人为乐', '9'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'goodDeedsType', '好人好事类型', '99', '其他', '10'); ###权限 INSERT INTO `module` (`id`, `code`, `name`, `url`, `seq`, `index`, `shortcut`, `class`, `action`, `active`, `create_time`, `update_time`, `update_by`, `moduletype`, `p_id`) VALUES ('208', 'stationManagement ', '驻勤点管理', '', '1', '\0', '\0', '', '', '', now(), now(), 'system', '1', '142'), ('209', 'taskManagement', '驻勤信息管理', '', '1', '\0', '\0', '', '', '', now(), now(), 'system', '1', '208'), ('210', 'securityContractManagement', '保安合同管理', '', '1', '\0', '\0', '', '', '', now(), now(), 'system', '1', '142'), ('211', 'comSerContractList', '企业服务合同', '', '1', '\0', '\0', '', '', '', now(), now(), 'system', '1', '210'), ('212', 'laborContractList', '劳动合同', '', '2', '\0', '\0', '', '', '', now(), now(), 'system', '1', '210'), ('213', 'perLaborSerContractList', '劳务合同(个人)', '', '3', '\0', '\0', '', '', '', now(), now(), 'system', '1', '210'), ('214', 'comLaborSerContractList', '劳务合同(单位)', '', '4', '\0', '\0', '', '', '', now(), now(), 'system', '1', '210'); INSERT INTO `operation` (`code`, `name`, `module_id`, `active`, `create_time`, `update_time`, `update_by`) SELECT 'query', '查询', id, '', now(), now(), 'system' FROM module WHERE id=209; INSERT INTO `operation` (`code`, `name`, `module_id`, `active`, `create_time`, `update_time`, `update_by`) SELECT 'query', '查询', id, '', now(), now(), 'system' FROM module WHERE id=211; INSERT INTO `operation` (`code`, `name`, `module_id`, `active`, `create_time`, `update_time`, `update_by`) SELECT 'query', '查询', id, '', now(), now(), 'system' FROM module WHERE id=212; INSERT INTO `operation` (`code`, `name`, `module_id`, `active`, `create_time`, `update_time`, `update_by`) SELECT 'query', '查询', id, '', now(), now(), 'system' FROM module WHERE id=213; INSERT INTO `operation` (`code`, `name`, `module_id`, `active`, `create_time`, `update_time`, `update_by`) SELECT 'query', '查询', id, '', now(), now(), 'system' FROM module WHERE id=214; INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '01', '党政机关', '1'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '02', '高等院校', '2'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '03', '公交安全', '3'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '04', '公园景点', '4'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '05', '轨道交通', '5'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '06', '金融', '6'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '07', '酒店餐饮', '7'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '08', '居民社区', '8'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '09', '企事业单位', '9'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '10', '商市场', '10'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '11', '医疗机构', '11'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '12', '娱乐场所', '12'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '13', '文化/体育/会展中心', '13'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '14', '园区', '14'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '15', '乡镇街道', '15'); INSERT INTO sys_dict (`isActive`, `codeType`, `description`, `codeValue`, `label`, `seq`) VALUES ('1', 'taskStationType', '驻勤点类型', '16', '中小学幼儿园', '16'); ALTER TABLE `newsnotice_company` ADD COLUMN `replyContext` varchar(500) CHARACTER SET utf8 NULL COMMENT '回复内容' AFTER `undoState`, ADD COLUMN `replyState` varchar(10) CHARACTER SET utf8 NULL COMMENT '回复状态' AFTER `replyContext`; ALTER TABLE `sys_attachment` MODIFY COLUMN `businessid` bigint(11) NULL DEFAULT NULL COMMENT '业务ID' AFTER `path`; ALTER TABLE `newsnotice_police` ADD COLUMN `replyAtt` varchar(10) CHARACTER SET utf8 NULL COMMENT '回复附件是否为必填' AFTER `newsType`; ALTER TABLE `newsnotice_company` ADD COLUMN `replyAtt` varchar(10) CHARACTER SET utf8 NULL COMMENT '回复附件是否为必填' AFTER `replyState`; ALTER TABLE `newsnotice_police` MODIFY COLUMN `sendId` bigint(19) NULL DEFAULT NULL COMMENT '发送人ID' AFTER `newsContext`; update t_ba_bafwjbxx t,security_company s set t.comId=s.id where t.comId is NULL and t.BAFWGSFGSMC=s.`name` and s.active=true; update security_company set seq=1 where name='北京振远护卫中心'; update security_company set seq=2 where name='北京市保安服务总公司'; update security_company set seq=3 where name='国都金盾(北京)保安服务有限公司'; update security_company set seq=4 where name='北京华峰保安服务有限责任公司'; update security_company set seq=5 where name='北京坚盾保安服务有限公司'; update security_company set seq=6 where name='北京长城护卫保安有限公司'; update security_company set seq=7 where name='北京京诚京安保安服务有限公司'; update security_company set seq=8 where name='华信中安(北京)保安服务有限公司'; update security_company set seq=9 where name='北京国威保安服务有限责任公司'; update security_company set seq=10 where name='北京金法保安服务有限公司'; update security_company set seq=11 where name='中军军弘保安服务有限公司'; update security_company set seq=12 where name='北京静安金山保安服务有限公司'; update security_company set seq=13 where name='保全世纪(北京)保安服务有限公司'; update security_company set seq=14 where name='北京恒安卫士保安服务有限公司'; update security_company set seq=15 where name='中京保安服务(北京)有限公司'; update security_company set seq=16 where name='北京华安保安服务有限公司'; update security_company set seq=17 where name='北京恒城保安服务有限公司'; update security_company set seq=18 where name='北京国泰保安服务有限公司'; update security_company set seq=19 where name='北京佳强保安服务有限公司'; update security_company set seq=20 where name='北京金卫伟业保安服务有限公司'; update security_company set seq=21 where name='三星益维(北京)保安服务中心'; update security_company set seq=22 where name='北京老兵安卫保安服务有限公司'; update security_company set seq=23 where name='北京都豪鼎盛保安服务有限公司'; update security_company set seq=24 where name='北京首卫保安服务有限公司'; update security_company set seq=25 where name='北京京铁卫士保安服务有限公司'; update security_company set seq=26 where name='北京华远卫士保安服务有限公司'; update security_company set seq=27 where name='神之盾保安集团有限公司'; update security_company set seq=28 where name='北京军友保安服务有限公司'; update security_company set seq=29 where name='北京伟之杰保安服务股份有限公司'; update security_company set seq=30 where name='北京京城保安服务有限公司'; update security_company set seq=31 where name='中安(北京)保安服务有限公司'; update security_company set seq=32 where name='北京怀保保安服务有限公司'; update security_company set seq=33 where name='世纪中保(北京)保安服务有限公司'; update security_company set seq=34 where name='北京安寓辰保安服务有限公司'; update security_company set seq=35 where name='北京金色五星保安服务有限责任公司'; update security_company set seq=36 where name='北京兴华保安服务有限公司'; update security_company set seq=37 where name='京盾(北京)保安服务有限公司'; update security_company set seq=38 where name='北京威远保安服务有限公司'; update security_company set seq=39 where name='北京千翔保安服务有限公司'; update security_company set seq=40 where name='中鼎安泰(北京)保安服务有限公司'; update security_company set seq=41 where name='泰安然(北京)保安服务有限公司'; update security_company set seq=42 where name='北京首安保安服务有限公司'; update security_company set seq=43 where name='北京森德保安服务有限公司'; update security_company set seq=44 where name='北京安铁保安服务有限公司'; update security_company set seq=45 where name='北京银盾保安服务有限公司'; update security_company set seq=46 where name='北京京武鑫星保安服务有限公司'; update security_company set seq=47 where name='北京央务恒远保安服务有限公司'; update security_company set seq=48 where name='北京时代科安保安服务有限公司'; update security_company set seq=49 where name='北京恒昌安盾保安服务有限公司'; update security_company set seq=50 where name='北京金蓝盾保安服务有限公司'; update security_company set seq=51 where name='北京忠诚卫士保安服务有限公司'; update security_company set seq=52 where name='中警保安服务有限公司'; update security_company set seq=53 where name='时代中安(北京)保安服务有限公司'; update security_company set seq=54 where name='中安金盾保安服务(北京)有限公司'; update security_company set seq=55 where name='北京振邦保安服务有限公司'; update security_company set seq=56 where name='北京精英保安服务有限公司'; update security_company set seq=57 where name='国盾卫士(北京)保安服务有限公司'; update security_company set seq=58 where name='威之宸(北京)保安服务有限公司'; update security_company set seq=59 where name='中天护卫保安服务有限公司'; update security_company set seq=60 where name='北京京武吉业保安服务有限公司'; update security_company set seq=61 where name='北京京保卫士保安服务有限公司'; update security_company set seq=62 where name='北京精诚伟业保安服务有限公司'; update security_company set seq=63 where name='北京协平保安服务有限公司'; update security_company set seq=64 where name='北京军侨保安服务有限公司'; update security_company set seq=65 where name='强大伟业(北京)保安服务有限公司'; update security_company set seq=66 where name='北京特卫保安服务有限公司'; update security_company set seq=67 where name='北京淇沅僖保安服务有限公司'; update security_company set seq=68 where name='北京京都护卫保安服务有限公司'; update security_company set seq=69 where name='北京老兵京保保安服务有限公司'; update security_company set seq=70 where name='北京企保保安服务有限公司'; update security_company set seq=71 where name='北京都杰保安服务有限公司'; update security_company set seq=72 where name='北京安邦保安服务有限公司'; update security_company set seq=73 where name='北京金剑卫士保安服务有限公司'; update security_company set seq=74 where name='北京铁保中泰保安服务有限公司'; update security_company set seq=75 where name='中宸特卫国际保安服务(北京)有限公司'; update security_company set seq=76 where name='北京共同保安服务有限公司'; update security_company set seq=77 where name='中安保实业集团有限公司'; update security_company set seq=78 where name='北京圣安卫嘉保安服务有限公司'; update security_company set seq=79 where name='北京金保保安服务有限公司'; update security_company set seq=80 where name='北京寰宇保安服务有限公司'; update security_company set seq=81 where name='北京军福保安服务有限公司'; update security_company set seq=82 where name='北京市炫麟保安服务有限责任公司'; update security_company set seq=83 where name='北京金太保保安服务有限公司'; update security_company set seq=84 where name='戎威远保安服务(北京)有限公司'; update security_company set seq=85 where name='北京华夏永安保安服务有限公司'; update security_company set seq=86 where name='盛世中保(北京)保安服务有限公司'; update security_company set seq=87 where name='北京京安顺保安服务有限公司'; update security_company set seq=88 where name='精英厉盾(北京)保安服务有限公司'; update security_company set seq=89 where name='都安(北京)保安服务有限公司'; update security_company set seq=90 where name='北京荣军保安服务有限公司'; update security_company set seq=91 where name='北京鑫安儆卫保安服务有限公司'; update security_company set seq=92 where name='北京安国保安服务有限公司'; update security_company set seq=93 where name='北京天诚卫士保安服务有限公司'; update security_company set seq=94 where name='北京市强信保安服务中心'; update security_company set seq=95 where name='北京新奥保安服务有限公司'; update security_company set seq=96 where name='北京华威保安服务有限公司'; update security_company set seq=97 where name='北京中保伟业保安服务有限公司'; update security_company set seq=98 where name='北京世昌保安服务有限公司'; update security_company set seq=99 where name='京保通(北京)保安服务有限公司'; update security_company set seq=100 where name='北京安祥致远保安服务有限公司'; update security_company set seq=101 where name='北京德威保安服务有限公司'; update security_company set seq=102 where name='北京安艺达保安服务有限公司'; update security_company set seq=103 where name='中都保安服务(北京)有限公司'; update security_company set seq=104 where name='京恒(北京)保安服务有限公司'; update security_company set seq=105 where name='北京华电荣华保安服务有限公司'; update security_company set seq=106 where name='北京市金武通保保安服务有限公司'; update security_company set seq=107 where name='北京安南保安服务有限公司'; update security_company set seq=108 where name='北京京安保安服务中心'; update security_company set seq=109 where name='北京利盾保安服务有限公司'; update security_company set seq=110 where name='京安安达(北京)保安服务有限公司'; update security_company set seq=111 where name='中保(北京)保安服务有限公司'; update security_company set seq=112 where name='北京华泰永安保安服务有限公司'; update security_company set seq=113 where name='北京京安金箭保安服务有限公司'; update security_company set seq=114 where name='北京盾安保安服务有限公司'; update security_company set seq=115 where name='中保永安(北京)保安服务有限公司'; update security_company set seq=116 where name='北京市金鹰卫士保安服务有限公司'; update security_company set seq=117 where name='北京京武盾保安服务有限公司'; update security_company set seq=118 where name='海卫保安服务(北京)集团有限公司'; update security_company set seq=119 where name='北京安泰保安服务有限公司'; update security_company set seq=120 where name='中联卫(北京)保安服务有限公司'; update security_company set seq=121 where name='京安高保(北京)保安服务有限公司'; update security_company set seq=122 where name='北京历玳乐保安服务有限公司'; update security_company set seq=123 where name='蓝盾安保集团有限公司'; update security_company set seq=124 where name='北京军都保安服务有限公司'; update security_company set seq=125 where name='北京京卫昌盛保安服务有限公司'; update security_company set seq=126 where name='明晓中安(北京)保安服务有限公司'; update security_company set seq=127 where name='北京国兴保安服务有限公司'; update security_company set seq=128 where name='北京冠安保安服务有限公司'; update security_company set seq=129 where name='嘉豪国际保安服务(北京)有限公司'; update security_company set seq=130 where name='北京国卫铁盾保安服务有限公司'; update security_company set seq=131 where name='北京金玺特卫保安服务有限公司'; update security_company set seq=132 where name='北京国警盾保安服务中心'; update security_company set seq=133 where name='北京百安鼎盛保安服务有限公司'; update security_company set seq=134 where name='北京中泰民安保安服务有限公司'; update security_company set seq=135 where name='北京亚中京警保安服务有限公司'; update security_company set seq=136 where name='中保华一保安服务(北京)有限公司'; update security_company set seq=137 where name='北京盛世威扬保安服务有限公司'; update security_company set seq=138 where name='安华保安服务管理有限责任公司'; update security_company set seq=139 where name='中保国卫国际保安服务(北京)有限公司'; update security_company set seq=140 where name='北京沪杰保安服务有限公司'; update security_company set seq=141 where name='北京皇侍国际保安服务有限公司'; update security_company set seq=142 where name='北京中联卫士保安服务有限公司'; update security_company set seq=143 where name='北京雄威保安服务有限公司'; update security_company set seq=144 where name='世宏伟业(北京)保安服务有限公司'; update security_company set seq=145 where name='金武卫士(北京)保安服务有限公司'; update security_company set seq=146 where name='北京中联戎军保安服务有限公司'; update security_company set seq=147 where name='北京冬航卫士保安服务有限公司'; update security_company set seq=148 where name='北京首威保安服务有限公司'; update security_company set seq=149 where name='北京政博安保安职业技能培训学校'; update security_company set seq=150 where name='北京市保安职业技能培训学校'; update security_company set seq=151 where name='北京振远护卫职业技能培训学校'; update security_company set seq=152 where name='北京保全世纪保安职业技能培训学校'; update security_company set seq=153 where name='北京华安保安职业技能培训学校'; update security_company set seq=154 where name='北京京城职业技能培训中心'; update security_company set seq=155 where name='北京荣军职业技能培训学校'; update security_company set seq=156 where name='北京市昌平区特卫安防职业技能培训学校'; update security_company set seq=157 where name='北京市房山区现代管理职业技能培训学校'; update security_company set seq=158 where name='北京市丰台区睿翔世纪职业技能培训学校'; update security_company set seq=159 where name='北京市朝阳区京方职业技能培训学校'; update security_company set seq=160 where name='北京经贸职业技能培训学校'; update security_company set seq=161 where name='北京市顺义区现代职业技能培训学校'; update security_company set seq=162 where name='北京市丰台区华信中安保安职业技能培训学校'; update security_company set seq=163 where name='北京市昌平区博远保安职业技能培训学校'; update security_company set seq=164 where name='北京市朝阳区安泰保安职业技能培训学校'; update security_company set seq=165 where name='北京市石景山区央务恒远安保管理职业培训学校'; update security_company set seq=166 where name='北京市丰台区猎鹰保安职业技能培训学校'; update security_company set seq=167 where name='北京市中广职业技能培训学校'; update security_company set seq=168 where name='北京市石景山区京华职业技能培训学校'; update security_company set seq=169 where name='北京市顺义区精彩人生职业技能培训学校'; update security_company set seq=170 where name='北京市海淀区现代服务职工技能培训学校'; update security_company set seq=171 where name='北京坤保职业技能培训学校';