Commit f28c5bff by 吴迪

【修改】bug修改

parent 60135a7f
...@@ -144,35 +144,186 @@ INSERT INTO sys_user (user_id, username, password, salt, email, mobile, status, ...@@ -144,35 +144,186 @@ INSERT INTO sys_user (user_id, username, password, salt, email, mobile, status,
SET IDENTITY_INSERT sys_user OFF; SET IDENTITY_INSERT sys_user OFF;
SET IDENTITY_INSERT sys_menu ON; SET IDENTITY_INSERT sys_menu ON;
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (1, 0, '系统管理', NULL, NULL, 0, 'system', 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('1', '0', '系统管理', NULL, NULL, '0', 'system', '7');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (2, 1, '管理员列表', 'sys/user', NULL, 1, 'admin', 1); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('2', '1', '管理员列表', 'sys/user', NULL, '1', 'admin', '1');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (3, 1, '角色管理', 'sys/role', NULL, 1, 'role', 2); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('3', '1', '角色管理', 'sys/role', NULL, '1', 'role', '2');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (4, 1, '菜单管理', 'sys/menu', NULL, 1, 'menu', 3); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('4', '1', '菜单管理', 'sys/menu', NULL, '1', 'menu', '3');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (5, 1, 'SQL监控', 'http://localhost:8080/renren-fast/druid/sql.html', NULL, 1, 'sql', 4); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('5', '1', 'SQL监控', 'http://localhost:8080/renren-fast/druid/sql.html', NULL, '1', 'sql', '4');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (6, 1, '定时任务', 'job/schedule', NULL, 1, 'job', 5); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('6', '1', '定时任务', 'job/schedule', NULL, '1', 'job', '5');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (7, 6, '查看', NULL, 'sys:schedule:list,sys:schedule:info', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('7', '6', '查看', NULL, 'sys:schedule:list,sys:schedule:info', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (8, 6, '新增', NULL, 'sys:schedule:save', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('8', '6', '新增', NULL, 'sys:schedule:save', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (9, 6, '修改', NULL, 'sys:schedule:update', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('9', '6', '修改', NULL, 'sys:schedule:update', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (10, 6, '删除', NULL, 'sys:schedule:delete', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('10', '6', '删除', NULL, 'sys:schedule:delete', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (11, 6, '暂停', NULL, 'sys:schedule:pause', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('11', '6', '暂停', NULL, 'sys:schedule:pause', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (12, 6, '恢复', NULL, 'sys:schedule:resume', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('12', '6', '恢复', NULL, 'sys:schedule:resume', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (13, 6, '立即执行', NULL, 'sys:schedule:run', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('13', '6', '立即执行', NULL, 'sys:schedule:run', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (14, 6, '日志列表', NULL, 'sys:schedule:log', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('14', '6', '日志列表', NULL, 'sys:schedule:log', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (15, 2, '查看', NULL, 'sys:user:list,sys:user:info', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('15', '2', '查看', NULL, 'sys:user:list,sys:user:info', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (16, 2, '新增', NULL, 'sys:user:save,sys:role:select', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('16', '2', '新增', NULL, 'sys:user:save,sys:role:select', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (17, 2, '修改', NULL, 'sys:user:update,sys:role:select', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('17', '2', '修改', NULL, 'sys:user:update,sys:role:select', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('18', '2', '删除', NULL, 'sys:user:delete', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (19, 3, '查看', NULL, 'sys:role:list,sys:role:info', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('19', '3', '查看', NULL, 'sys:role:list,sys:role:info', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (20, 3, '新增', NULL, 'sys:role:save,sys:menu:list', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('20', '3', '新增', NULL, 'sys:role:save,sys:menu:list', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (21, 3, '修改', NULL, 'sys:role:update,sys:menu:list', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('21', '3', '修改', NULL, 'sys:role:update,sys:menu:list', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('22', '3', '删除', NULL, 'sys:role:delete', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (23, 4, '查看', NULL, 'sys:menu:list,sys:menu:info', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('23', '4', '查看', NULL, 'sys:menu:list,sys:menu:info', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (24, 4, '新增', NULL, 'sys:menu:save,sys:menu:select', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('24', '4', '新增', NULL, 'sys:menu:save,sys:menu:select', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (25, 4, '修改', NULL, 'sys:menu:update,sys:menu:select', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('25', '4', '修改', NULL, 'sys:menu:update,sys:menu:select', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (26, 4, '删除', NULL, 'sys:menu:delete', 2, NULL, 0); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('26', '4', '删除', NULL, 'sys:menu:delete', '2', NULL, '0');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (27, 1, '参数管理', 'sys/config', 'sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete', 1, 'config', 6); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('27', '1', '参数管理', 'sys/config', 'sys:config:list,sys:config:info,sys:config:save,sys:config:update,sys:config:delete', '1', 'config', '6');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (29, 1, '系统日志', 'sys/log', 'sys:log:list', 1, 'log', 7); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('29', '1', '系统日志', 'sys/log', 'sys:log:list', '1', 'log', '7');
INSERT INTO sys_menu(menu_id, parent_id, name, url, perms, type, icon, order_num) VALUES (30, 1, '文件上传', 'oss/oss', 'sys:oss:all', 1, 'oss', 6); INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('30', '1', '文件上传', 'oss/oss', 'sys:oss:all', '1', 'oss', '6');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('33', '0', '资讯管理', '', '', '0', 'editor', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('34', '33', '图片资讯', 'info/picture', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('35', '34', '查看', NULL, 'manage:picture:list,manage:picture:info', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('36', '34', '新增', '', 'manage:picture:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('37', '34', '修改', '', 'manage:picture:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('38', '34', '删除', '', 'manage:picture:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('39', '34', '审核', '', 'manage:picture:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('40', '33', '首页轮播', 'info/indexcarouselmanage', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('41', '33', '文章管理', 'info/news', '', '1', '', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('42', '33', '专题管理', 'info/newtopic', '', '1', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('43', '33', '视频管理', 'info/newsmovie', '', '1', '', '4');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('44', '0', '党办资讯管理', '', '', '0', 'pinglun', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('45', '44', '规章制度', 'party/rules', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('46', '44', '中央和总局精神', 'party/center', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('47', '44', '活动报道', 'party/topicnews', '', '1', '', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('48', '44', '热点关注', 'party/hotFlow', '', '1', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('49', '0', '政策法规管理', '', '', '0', 'log', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('50', '49', '政策法规管理', 'policy/policy', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('52', '0', '服务管理', '', '', '0', 'oss', '4');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('53', '52', '文档管理', 'service/doc', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('54', '0', '医疗管理', '', '', '0', 'mudedi', '5');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('55', '54', '医疗管理', 'medical/medical', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('56', '0', '物流管理', '', '', '0', 'dangdifill', '6');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('57', '56', '物流管理', 'logistics/logistics', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('58', '40', '查看', NULL, 'manage:indexcarouselmanage:list,manage:indexcarouselmanage:info', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('59', '41', '新增', '', 'manage:news:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('60', '41', '审核', '', 'manage:news:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('61', '41', '查看', NULL, 'manage:news:list,manage:news:info', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('62', '41', '删除', NULL, 'manage:news:delete', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('63', '41', '修改', NULL, 'manage:news:update', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('64', '40', '新增', NULL, 'manage:indexcarouselmanage:save', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('65', '40', '修改', NULL, 'manage:indexcarouselmanage:update', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('66', '40', '删除', NULL, 'manage:indexcarouselmanage:delete', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('67', '40', '审核', NULL, 'manage:indexcarouselmanage:check', '2', NULL, '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('68', '42', '查看', 'info/newtopic', 'manage:newtopic:list,manage:newtopic:info', '2', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('69', '42', '新增', '', 'manage:newtopic:save', '2', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('70', '42', '修改', '', 'manage:newtopic:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('71', '42', '删除', '', 'manage:newtopic:delete', '2', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('72', '42', '审核', '', 'manage:newtopic:check', '2', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('73', '132', '查看', '', 'manage:announce:list,manage:announce:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('74', '43', '新增', '', 'manage:newsmovie:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('75', '43', '修改', '', 'manage:newsmovie:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('76', '43', '删除', '', 'manage:newsmovie:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('77', '43', '审核', '', 'manage:newsmovie:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('79', '45', '查看', '', 'manage:rules:list,manage:rules:info,manage:news:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('80', '45', '新增', '', 'manage:rules:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('81', '45', '修改', '', 'manage:rules:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('82', '45', '删除', '', 'manage:rules:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('83', '45', '审核', '', 'manage:rules:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('84', '46', '查看', '', 'manage:center:list,manage:center:info,manage:news:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('85', '46', '新增', '', 'manage:center:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('86', '46', '修改', '', 'manage:center:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('87', '46', '删除', '', 'manage:center:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('88', '46', '审核', '', 'manage:center:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('89', '47', '查看', '', 'manage:topicnews:list,manage:topicnews:info,manage:news:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('90', '47', '新增', '', 'manage:topicnews:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('91', '47', '修改', '', 'manage:topicnews:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('92', '47', '删除', '', 'manage:topicnews:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('93', '47', '审核', '', 'manage:topicnews:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('94', '48', '查看', '', 'manage:hotFlow:list,manage:hotFlow:info,manage:news:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('95', '48', '新增', '', 'manage:hotFlow:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('96', '48', '修改', '', 'manage:hotFlow:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('97', '48', '删除', '', 'manage:hotFlow:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('98', '48', '审核', '', 'manage:hotFlow:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('99', '50', '查看', '', 'manage:policy:list,manage:policy:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('100', '50', '新增', '', 'manage:policy:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('101', '50', '修改', '', 'manage:policy:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('102', '50', '删除', '', 'manage:policy:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('103', '50', '审核', '', 'manage:policy:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('104', '53', '查看', '', 'manage:doc:info,manage:doc:list', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('105', '53', '新增', '', 'manage:doc:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('106', '53', '修改', '', 'manage:doc:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('107', '53', '删除', '', 'manage:doc:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('108', '53', '审核', '', 'manage:doc:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('109', '55', '查看', '', 'manage:medical:info,manage:medical:list', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('110', '55', '新增', '', 'manage:medical:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('111', '55', '修改', '', 'manage:medical:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('112', '55', '删除', '', 'manage:medical:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('113', '55', '审核', '', 'manage:medical:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('114', '57', '查看', '', 'manage:logistics:info,manage:logistics:list', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('115', '57', '新增', '', 'manage:logistics:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('116', '57', '修改', '', 'manage:logistics:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('117', '57', '删除', '', 'manage:logistics:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('118', '57', '审核', '', 'manage:logistics:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('119', '0', '应用领域管理', '', '', '0', 'zonghe', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('120', '119', '应用领域', 'application/news', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('121', '0', '板块管理', '', '', '0', 'tubiao', '6');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('123', '121', '术语管理', 'plate/glossary', '', '1', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('124', '121', '商品管理', 'plate/product', '', '1', '', '4');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('125', '121', '商品分类', 'plate/pcategory', '', '1', '', '5');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('126', '0', '标准服务提供商管理', '', '', '0', 'xiangqufill', '5');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('127', '126', '提供商管理', 'standard/partners', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('128', '126', '案例管理', 'standard/cases', '', '1', '', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('130', '0', '培训计划管理', NULL, NULL, '0', 'bianji', '10');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('131', '130', '年度计划管理', 'planbranch/annual', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('132', '33', '公告管理', 'info/announce', '', '1', '', '5');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('133', '132', '新增', '', 'manage:announce:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('134', '132', '修改', '', 'manage:announce:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('135', '132', '删除', '', 'manage:announce:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('136', '132', '审核', '', 'manage:announce:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('137', '43', '查看', '', 'manage:newsmovie:list,manage:newsmovie:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('139', '52', '分支机构管理', 'service/branch', '', '1', '', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('141', '120', '查看', '', 'application:news:list,application:news:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('142', '120', '新增', '', 'application:news:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('143', '120', '修改', '', 'application:news:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('144', '120', '删除', '', 'application:news:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('145', '120', '审核', '', 'application:news:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('146', '127', '查看', '', 'standard:partners:list,standard:partners:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('147', '127', '新增', '', 'standard:partners:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('148', '127', '修改', '', 'standard:partners:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('149', '127', '删除', '', 'standard:partners:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('150', '127', '审核', '', 'standard:partners:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('151', '128', '查看', '', 'standard:cases:list,standard:cases:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('152', '128', '新增', '', 'standard:cases:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('153', '128', '修改', '', 'standard:cases:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('154', '128', '删除', '', 'standard:cases:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('155', '128', '审核', '', 'standard:cases:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('156', '123', '新增', '', 'plate:glossary:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('157', '123', '修改', '', 'plate:glossary:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('158', '123', '删除', '', 'plate:glossary:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('159', '124', '查看', '', 'plate:product:list,plate:product:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('160', '124', '新增', '', 'plate:product:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('161', '124', '修改', '', 'plate:product:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('162', '124', '删除', '', 'plate:product:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('163', '124', '审核', '', 'plate:product:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('164', '125', '新增', '', 'plate:pcategory:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('165', '125', '编辑', '', 'plate:pcategory:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('166', '125', '删除', '', 'plate:pcategory:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('167', '0', '零售管理', '', '', '0', 'tubiao', '4');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('168', '167', '图片资讯', 'retail/picture', '', '1', '', '1');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('169', '168', '查看', '', 'manage:retailPicture:list,manage:retailPicture:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('170', '168', '新增', '', 'manage:retailPicture:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('171', '168', '修改', '', 'manage:retailPicture:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('172', '168', '删除', '', 'manage:retailPicture:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('173', '168', '审核', '', 'manage:retailPicture:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('174', '130', '一季度计划管理', 'planbranch/fistplan', '', '1', '', '2');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('175', '130', '二季度培训计划', 'planbranch/secondplan', '', '1', '', '3');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('176', '130', '三季度培训计划', 'planbranch/thirdplan', '', '1', '', '4');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('177', '130', '四季度培训计划', 'planbranch/fourplan', '', '1', '', '5');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('178', '121', '知识管理', 'plate/knowledgeinfo', '', '1', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('179', '178', '新增', '', 'manage:knowledgeinfo:save', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('180', '178', '查看', '', 'manage:knowledgeinfo:info,manage:knowledgeinfo:list', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('181', '178', '修改', '', 'manage:knowledgeinfo:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('182', '178', '删除', '', 'manage:knowledgeinfo:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('183', '178', '审核', '', 'manage:knowledgeinfo:check', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('184', '139', '修改', '', 'manage:branch:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('185', '139', '删除', '', 'manage:branch:delete', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('186', '131', '修改', '', 'manage:planbranch:update', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('187', '131', '修改状态', '', 'manage:planbranch:batchupdate', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('188', '139', '列表', '', 'manage:branch:list,manage:branch:info', '2', '', '0');
INSERT INTO sys_menu ([menu_id], [parent_id], [name], [url], [perms], [type], [icon], [order_num]) VALUES ('190', '139', '新增', '', 'manage:branch:save', '2', '', '0');
SET IDENTITY_INSERT sys_menu OFF; SET IDENTITY_INSERT sys_menu OFF;
...@@ -560,6 +711,7 @@ CREATE TABLE [dbo].[medical] ( ...@@ -560,6 +711,7 @@ CREATE TABLE [dbo].[medical] (
[id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL , [id] varchar(50) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[title] varchar(500) COLLATE Chinese_PRC_CI_AS NULL , [title] varchar(500) COLLATE Chinese_PRC_CI_AS NULL ,
[type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL , [type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL ,
[typeid] int NULL ,
[level] int NULL , [level] int NULL ,
[jumppath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL , [jumppath] varchar(255) COLLATE Chinese_PRC_CI_AS NULL ,
[keyword] varchar(50) COLLATE Chinese_PRC_CI_AS NULL , [keyword] varchar(50) COLLATE Chinese_PRC_CI_AS NULL ,
......
...@@ -71,6 +71,7 @@ public class MedicalController extends AbstractController { ...@@ -71,6 +71,7 @@ public class MedicalController extends AbstractController {
if(medical.getReleasetime()==null) { if(medical.getReleasetime()==null) {
medical.setReleasetime(new Date()); medical.setReleasetime(new Date());
} }
dealMedicalTypeId(medical.getType(),medical);
medicalService.save(medical); medicalService.save(medical);
return R.ok("新增成功!"); return R.ok("新增成功!");
} }
...@@ -87,6 +88,7 @@ public class MedicalController extends AbstractController { ...@@ -87,6 +88,7 @@ public class MedicalController extends AbstractController {
medical.setEditor(username); medical.setEditor(username);
medical.setLasteditor(username); medical.setLasteditor(username);
medical.setUpdatetime(new Date()); medical.setUpdatetime(new Date());
dealMedicalTypeId(medical.getType(),medical);
medicalService.updateById(medical); medicalService.updateById(medical);
return R.ok("修改成功!"); return R.ok("修改成功!");
} }
...@@ -170,4 +172,14 @@ public class MedicalController extends AbstractController { ...@@ -170,4 +172,14 @@ public class MedicalController extends AbstractController {
} }
private void dealMedicalTypeId(String type,MedicalEntity medical) {
if(StringUtils.isNotBlank(type)) {
String medicalTypeId = medicalService.getMedicalTypeId(type);
medical.setTypeid(Integer.parseInt(medicalTypeId));
}
}
} }
...@@ -3,6 +3,7 @@ package io.office.modules.manage.dao; ...@@ -3,6 +3,7 @@ package io.office.modules.manage.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.office.modules.manage.entity.MedicalEntity; import io.office.modules.manage.entity.MedicalEntity;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -20,4 +21,5 @@ public interface MedicalDao extends BaseMapper<MedicalEntity> { ...@@ -20,4 +21,5 @@ public interface MedicalDao extends BaseMapper<MedicalEntity> {
List<Map<String, Object>> getMedicalTypeList(); List<Map<String, Object>> getMedicalTypeList();
String getMedicalTypeId(@Param("typeName") String typeName);
} }
...@@ -37,6 +37,8 @@ public class MedicalEntity implements Serializable { ...@@ -37,6 +37,8 @@ public class MedicalEntity implements Serializable {
* $column.comments * $column.comments
*/ */
private String type; private String type;
@TableField("typeid")
private Integer typeid;
/** /**
* $column.comments * $column.comments
*/ */
......
...@@ -20,5 +20,7 @@ public interface MedicalService extends IService<MedicalEntity> { ...@@ -20,5 +20,7 @@ public interface MedicalService extends IService<MedicalEntity> {
List<Map<String, Object>> getMedicalTypeList(); List<Map<String, Object>> getMedicalTypeList();
String getMedicalTypeId(String typeName);
} }
package io.office.modules.manage.service.impl; package io.office.modules.manage.service.impl;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import io.netty.util.internal.StringUtil; import io.netty.util.internal.StringUtil;
import io.office.modules.manage.dao.MedicalDao; import io.office.modules.manage.dao.MedicalDao;
import io.office.modules.manage.entity.MedicalEntity; import io.office.modules.manage.entity.MedicalEntity;
...@@ -37,10 +38,17 @@ public class MedicalServiceImpl extends ServiceImpl<MedicalDao, MedicalEntity> i ...@@ -37,10 +38,17 @@ public class MedicalServiceImpl extends ServiceImpl<MedicalDao, MedicalEntity> i
} else { } else {
medicalEntityQueryWrapper.gt("level",0); medicalEntityQueryWrapper.gt("level",0);
} }
if(!StringUtil.isNullOrEmpty(String.valueOf(params.get("sidx")))){
if(String.valueOf(params.get("sidx")).equalsIgnoreCase("type")) {
params.put("sidx","typeid");
}
}
IPage<MedicalEntity> page = this.page( IPage<MedicalEntity> page = this.page(
new Query<MedicalEntity>().getPage(params), new Query<MedicalEntity>().getPage(params),
medicalEntityQueryWrapper medicalEntityQueryWrapper
); );
return new PageUtils(page); return new PageUtils(page);
} }
...@@ -50,4 +58,10 @@ public class MedicalServiceImpl extends ServiceImpl<MedicalDao, MedicalEntity> i ...@@ -50,4 +58,10 @@ public class MedicalServiceImpl extends ServiceImpl<MedicalDao, MedicalEntity> i
return list; return list;
} }
@Override
public String getMedicalTypeId(String typeName) {
return medicalDao.getMedicalTypeId(typeName);
}
} }
\ No newline at end of file
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
<result property="inputDate" column="inputDate"/> <result property="inputDate" column="inputDate"/>
</resultMap> </resultMap>
<select id="getMedicalTypeList" resultType="java.util.Map"> <select id="getMedicalTypeList" resultType="java.util.Map">
select * from medical_type t select * from medical_type t order by t.id asc
</select> </select>
<select id="getMedicalTypeId" parameterType="string" resultType="string">
select * from medical_type where typeName=#{typeName}
</select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment