mirror of
https://gitee.com/sdyunze/iotlink.git
synced 2026-08-31 01:40:16 +08:00
fix
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,301 @@
|
||||
# 0.8.0 版本升级SQL
|
||||
# 菜单表更新数据 [2022-04-30] [zf]
|
||||
|
||||
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统管理', `parent_id` = 0, `order_num` = 51, `path` = 'system', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'system', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2021-08-06 12:29:06', `remark` = '系统管理目录' WHERE `menu_id` = 1;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统监控', `parent_id` = 1, `order_num` = 52, `path` = 'monitor', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'monitor', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-01-15 15:13:01', `remark` = '系统监控目录' WHERE `menu_id` = 2;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '研发工具', `parent_id` = 1, `order_num` = 53, `path` = 'tool', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'tool', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-01-15 15:13:08', `remark` = '系统工具目录' WHERE `menu_id` = 3;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '内部管理', `parent_id` = 2027, `order_num` = 99, `path` = 'user', `component` = 'system/user/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '1', `status` = '1', `perms` = 'system:user:list', `icon` = 'star', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-03-30 15:45:12', `remark` = '用户管理菜单' WHERE `menu_id` = 100;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色管理', `parent_id` = 2027, `order_num` = 6, `path` = 'role', `component` = 'system/role/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:role:list', `icon` = 'peoples', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2021-10-12 09:41:23', `remark` = '角色管理菜单' WHERE `menu_id` = 101;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '菜单管理', `parent_id` = 1, `order_num` = 3, `path` = 'menu', `component` = 'system/menu/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:menu:list', `icon` = 'cascader', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-04-21 16:38:29', `remark` = '菜单管理菜单' WHERE `menu_id` = 102;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '企业管理', `parent_id` = 2027, `order_num` = 1, `path` = 'dept', `component` = 'system/dept/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:dept:list', `icon` = 'tree', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-04-21 16:42:57', `remark` = '部门管理菜单' WHERE `menu_id` = 103;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位管理', `parent_id` = 1, `order_num` = 5, `path` = 'post', `component` = 'system/post/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '1', `status` = '0', `perms` = 'system:post:list', `icon` = 'post', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = 'admin', `update_time` = '2022-04-11 15:32:16', `remark` = '岗位管理菜单' WHERE `menu_id` = 104;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典管理', `parent_id` = 1, `order_num` = 6, `path` = 'dict', `component` = 'system/dict/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:dict:list', `icon` = 'dict', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '字典管理菜单' WHERE `menu_id` = 105;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数设置', `parent_id` = 1, `order_num` = 7, `path` = 'config', `component` = 'system/config/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:config:list', `icon` = 'edit', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '参数设置菜单' WHERE `menu_id` = 106;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通知公告', `parent_id` = 1, `order_num` = 8, `path` = 'notice', `component` = 'system/notice/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'system:notice:list', `icon` = 'message', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '通知公告菜单' WHERE `menu_id` = 107;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '日志管理', `parent_id` = 1, `order_num` = 9, `path` = 'log', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'log', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '日志管理菜单' WHERE `menu_id` = 108;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '在线用户', `parent_id` = 2, `order_num` = 1, `path` = 'online', `component` = 'monitor/online/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:online:list', `icon` = 'online', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '在线用户菜单' WHERE `menu_id` = 109;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '定时任务', `parent_id` = 2, `order_num` = 2, `path` = 'job', `component` = 'monitor/job/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:job:list', `icon` = 'job', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '定时任务菜单' WHERE `menu_id` = 110;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '数据监控', `parent_id` = 2, `order_num` = 3, `path` = 'druid', `component` = 'monitor/druid/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:druid:list', `icon` = 'druid', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '数据监控菜单' WHERE `menu_id` = 111;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '服务监控', `parent_id` = 2, `order_num` = 4, `path` = 'server', `component` = 'monitor/server/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:server:list', `icon` = 'server', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '服务监控菜单' WHERE `menu_id` = 112;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '缓存监控', `parent_id` = 2, `order_num` = 5, `path` = 'cache', `component` = 'monitor/cache/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:cache:list', `icon` = 'redis', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '缓存监控菜单' WHERE `menu_id` = 113;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '表单构建', `parent_id` = 3, `order_num` = 1, `path` = 'build', `component` = 'tool/build/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'tool:build:list', `icon` = 'build', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '表单构建菜单' WHERE `menu_id` = 114;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '代码生成', `parent_id` = 3, `order_num` = 2, `path` = 'gen', `component` = 'tool/gen/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'tool:gen:list', `icon` = 'code', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '代码生成菜单' WHERE `menu_id` = 115;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统接口', `parent_id` = 3, `order_num` = 3, `path` = 'swagger', `component` = 'tool/swagger/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'tool:swagger:list', `icon` = 'swagger', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '系统接口菜单' WHERE `menu_id` = 116;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '操作日志', `parent_id` = 108, `order_num` = 1, `path` = 'operlog', `component` = 'monitor/operlog/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:operlog:list', `icon` = 'form', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '操作日志菜单' WHERE `menu_id` = 500;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '登录日志', `parent_id` = 108, `order_num` = 2, `path` = 'logininfor', `component` = 'monitor/logininfor/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'monitor:logininfor:list', `icon` = 'logininfor', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '登录日志菜单' WHERE `menu_id` = 501;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户查询', `parent_id` = 100, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1001;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户新增', `parent_id` = 100, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1002;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户修改', `parent_id` = 100, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1003;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户删除', `parent_id` = 100, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1004;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户导出', `parent_id` = 100, `order_num` = 5, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1005;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户导入', `parent_id` = 100, `order_num` = 6, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:import', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1006;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '重置密码', `parent_id` = 100, `order_num` = 7, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:user:resetPwd', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1007;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色查询', `parent_id` = 101, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:role:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1008;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色新增', `parent_id` = 101, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:role:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1009;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色修改', `parent_id` = 101, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:role:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1010;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色删除', `parent_id` = 101, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:role:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1011;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '角色导出', `parent_id` = 101, `order_num` = 5, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:role:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1012;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '菜单查询', `parent_id` = 102, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:menu:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1013;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '菜单新增', `parent_id` = 102, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:menu:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1014;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '菜单修改', `parent_id` = 102, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:menu:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1015;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '菜单删除', `parent_id` = 102, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:menu:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1016;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '部门查询', `parent_id` = 103, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dept:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1017;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '部门新增', `parent_id` = 103, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dept:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1018;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '部门修改', `parent_id` = 103, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dept:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1019;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '部门删除', `parent_id` = 103, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dept:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1020;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位查询', `parent_id` = 104, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:post:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1021;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位新增', `parent_id` = 104, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:post:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1022;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位修改', `parent_id` = 104, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:post:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1023;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位删除', `parent_id` = 104, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:post:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1024;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '岗位导出', `parent_id` = 104, `order_num` = 5, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:post:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1025;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典查询', `parent_id` = 105, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dict:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1026;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典新增', `parent_id` = 105, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dict:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1027;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典修改', `parent_id` = 105, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dict:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1028;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典删除', `parent_id` = 105, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dict:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1029;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '字典导出', `parent_id` = 105, `order_num` = 5, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dict:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1030;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数查询', `parent_id` = 106, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:config:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1031;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数新增', `parent_id` = 106, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:config:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1032;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数修改', `parent_id` = 106, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:config:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1033;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数删除', `parent_id` = 106, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:config:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1034;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '参数导出', `parent_id` = 106, `order_num` = 5, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:config:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1035;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '公告查询', `parent_id` = 107, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:notice:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1036;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '公告新增', `parent_id` = 107, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:notice:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1037;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '公告修改', `parent_id` = 107, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:notice:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1038;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '公告删除', `parent_id` = 107, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:notice:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1039;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '操作查询', `parent_id` = 500, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:operlog:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1040;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '操作删除', `parent_id` = 500, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:operlog:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1041;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '日志导出', `parent_id` = 500, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:operlog:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1042;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '登录查询', `parent_id` = 501, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:logininfor:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1043;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '登录删除', `parent_id` = 501, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:logininfor:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1044;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '日志导出', `parent_id` = 501, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:logininfor:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1045;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '在线查询', `parent_id` = 109, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:online:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1046;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '批量强退', `parent_id` = 109, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:online:batchLogout', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1047;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '单条强退', `parent_id` = 109, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:online:forceLogout', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1048;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '任务查询', `parent_id` = 110, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1049;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '任务新增', `parent_id` = 110, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1050;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '任务修改', `parent_id` = 110, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1051;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '任务删除', `parent_id` = 110, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1052;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '状态修改', `parent_id` = 110, `order_num` = 5, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:changeStatus', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1053;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '任务导出', `parent_id` = 110, `order_num` = 7, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'monitor:job:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1054;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '生成查询', `parent_id` = 115, `order_num` = 1, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1055;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '生成修改', `parent_id` = 115, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1056;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '生成删除', `parent_id` = 115, `order_num` = 3, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1057;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '导入代码', `parent_id` = 115, `order_num` = 2, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:import', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1058;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '预览代码', `parent_id` = 115, `order_num` = 4, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:preview', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1059;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '生成代码', `parent_id` = 115, `order_num` = 5, `path` = '#', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'tool:gen:code', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 1060;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通信管理', `parent_id` = 0, `order_num` = 21, `path` = 'card', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'excel', `create_by` = 'admin', `create_time` = '2021-06-05 10:59:36', `update_by` = 'admin', `update_time` = '2021-10-30 10:51:37', `remark` = '' WHERE `menu_id` = 2000;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡管理', `parent_id` = 2000, `order_num` = 0, `path` = 'card', `component` = 'yunze/flowcard/card/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:card:list', `icon` = 'date', `create_by` = 'admin', `create_time` = '2021-06-05 11:00:26', `update_by` = 'admin', `update_time` = '2021-10-30 10:55:32', `remark` = '' WHERE `menu_id` = 2001;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '详情查询', `parent_id` = 2001, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:find', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-09 13:48:19', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2003;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询套餐信息', `parent_id` = 2001, `order_num` = 99, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:queryflow', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-09 13:51:13', `update_by` = 'admin', `update_time` = '2021-06-11 14:20:22', `remark` = '' WHERE `menu_id` = 2004;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '在线信息查询', `parent_id` = 2003, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:queryOnlineStatus', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-11 09:21:29', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2005;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '套餐简要信息查询', `parent_id` = 2003, `order_num` = 0, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardFlow:queryflowSimple', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-11 09:23:33', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2006;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询简要套餐名称', `parent_id` = 2001, `order_num` = 3, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardFlow:queryPackageSimple', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-11 14:20:13', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2008;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '导出', `parent_id` = 2001, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:exportData', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-15 12:34:30', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2009;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询API通道名称', `parent_id` = 2001, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:findSp', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-15 17:10:14', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2010;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询参数API通道', `parent_id` = 2001, `order_num` = 6, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:queryParamsChannelId', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-16 09:13:34', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2011;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡通道', `parent_id` = 2000, `order_num` = 22, `path` = 'channel', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'tree', `create_by` = 'admin', `create_time` = '2021-06-19 11:22:42', `update_by` = 'admin', `update_time` = '2022-01-15 15:27:33', `remark` = '' WHERE `menu_id` = 2012;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通道管理', `parent_id` = 2012, `order_num` = 0, `path` = 'cardRoute', `component` = 'yunze/API/cardRoute/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:list', `icon` = 'cascader', `create_by` = 'admin', `create_time` = '2021-06-19 12:27:16', `update_by` = 'admin', `update_time` = '2022-01-15 15:29:48', `remark` = '' WHERE `menu_id` = 2013;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通道详情', `parent_id` = 2013, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:find', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-21 09:04:27', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2014;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通道编辑', `parent_id` = 2013, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-21 09:04:43', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2015;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通道删除', `parent_id` = 2013, `order_num` = 3, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-21 09:04:59', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2016;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询公司所属', `parent_id` = 0, `order_num` = 0, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:listAgent', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-21 11:18:33', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2017;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '执行日志', `parent_id` = 108, `order_num` = 0, `path` = 'ExecutionTask', `component` = 'yunze/flowcard/executionTask', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:ExecutionTask:list', `icon` = 'server', `create_by` = 'admin', `create_time` = '2021-06-21 13:39:44', `update_by` = 'admin', `update_time` = '2022-01-15 15:32:06', `remark` = '' WHERE `menu_id` = 2018;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '执行任务下载', `parent_id` = 2018, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:executionTask:download', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-21 14:32:39', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2019;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费', `parent_id` = 2109, `order_num` = 1, `path` = 'tariffGroup', `component` = 'yunze/flowcard/tariffGroup/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:list', `icon` = 'validCode', `create_by` = 'admin', `create_time` = '2021-06-22 10:44:50', `update_by` = 'admin', `update_time` = '2021-10-30 10:58:51', `remark` = '' WHERE `menu_id` = 2020;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '客户资费', `parent_id` = 2109, `order_num` = 2, `path` = 'agentTariffGroup', `component` = 'yunze/flowcard/tariffGroup/agent', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:agentTariffGroup:list', `icon` = 'validCode', `create_by` = 'admin', `create_time` = '2021-06-22 11:58:20', `update_by` = 'admin', `update_time` = '2022-03-03 15:38:56', `remark` = '' WHERE `menu_id` = 2021;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费组新增', `parent_id` = 2020, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-23 16:00:39', `update_by` = 'admin', `update_time` = '2021-06-23 16:17:58', `remark` = '' WHERE `menu_id` = 2022;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费组编辑', `parent_id` = 2020, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-23 16:14:55', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2023;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费计划新增', `parent_id` = 2020, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffPlan:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-23 16:16:22', `update_by` = 'admin', `update_time` = '2022-04-28 14:08:03', `remark` = '' WHERE `menu_id` = 2024;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费计划详情', `parent_id` = 2020, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffPlan:find', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-23 16:17:05', `update_by` = 'admin', `update_time` = '2022-04-28 14:08:10', `remark` = '' WHERE `menu_id` = 2025;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台资费计划编辑', `parent_id` = 2020, `order_num` = 6, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffPlan:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-23 16:17:43', `update_by` = 'admin', `update_time` = '2022-04-28 14:08:15', `remark` = '' WHERE `menu_id` = 2026;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '账号管理', `parent_id` = 2125, `order_num` = 0, `path` = 'agent', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'peoples', `create_by` = 'admin', `create_time` = '2021-06-25 09:29:24', `update_by` = 'admin', `update_time` = '2022-01-15 15:09:04', `remark` = '' WHERE `menu_id` = 2027;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '企业列表', `parent_id` = 2027, `order_num` = 98, `path` = 'agent', `component` = 'yunze/user/agent/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '1', `status` = '1', `perms` = 'yunze:agent:list', `icon` = 'excel', `create_by` = 'admin', `create_time` = '2021-06-25 09:32:10', `update_by` = 'admin', `update_time` = '2022-03-30 15:45:01', `remark` = '' WHERE `menu_id` = 2028;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户查询', `parent_id` = 2028, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2029;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户新增', `parent_id` = 2028, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2030;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户修改', `parent_id` = 2028, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2031;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户删除', `parent_id` = 2028, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2032;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户导出', `parent_id` = 2028, `order_num` = 5, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:export', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2033;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户导入', `parent_id` = 2028, `order_num` = 6, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:import', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2034;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '重置密码', `parent_id` = 2028, `order_num` = 7, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:resetPwd', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2035;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分资费查看', `parent_id` = 2028, `order_num` = 0, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:DividePlan', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:03:36', `update_by` = 'admin', `update_time` = '2021-06-28 14:14:43', `remark` = '' WHERE `menu_id` = 2037;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分保存', `parent_id` = 2037, `order_num` = 10, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:tariffDivision', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:15:33', `update_by` = 'admin', `update_time` = '2021-06-28 14:39:09', `remark` = '' WHERE `menu_id` = 2038;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费组查询', `parent_id` = 2037, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:findPackage', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:17:37', `update_by` = 'admin', `update_time` = '2021-06-28 14:18:03', `remark` = '' WHERE `menu_id` = 2039;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费计划查询', `parent_id` = 2037, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffPlan:findPacket', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:39:01', `update_by` = 'admin', `update_time` = '2021-06-28 14:40:33', `remark` = '' WHERE `menu_id` = 2040;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户信息', `parent_id` = 2027, `order_num` = 2, `path` = 'agentUser', `component` = 'yunze/user/agentUser/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:list', `icon` = 'user', `create_by` = 'admin', `create_time` = '2021-06-25 09:32:10', `update_by` = 'admin', `update_time` = '2022-04-21 16:43:03', `remark` = '' WHERE `menu_id` = 2041;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户查询', `parent_id` = 2041, `order_num` = 1, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:query', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2042;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户新增', `parent_id` = 2041, `order_num` = 2, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:add', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2043;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户修改', `parent_id` = 2041, `order_num` = 3, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:edit', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2044;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用户删除', `parent_id` = 2041, `order_num` = 4, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:remove', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2045;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '重置密码', `parent_id` = 2041, `order_num` = 7, `path` = '', `component` = '', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:resetPwd', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-05 09:12:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2048;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分资费查看', `parent_id` = 2041, `order_num` = 0, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:agent:DividePlan', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:03:36', `update_by` = 'admin', `update_time` = '2021-06-28 14:14:43', `remark` = '' WHERE `menu_id` = 2050;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分保存', `parent_id` = 2050, `order_num` = 10, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:agentTariffDivision', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:15:33', `update_by` = 'admin', `update_time` = '2021-06-29 13:33:58', `remark` = '' WHERE `menu_id` = 2051;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费组查询', `parent_id` = 2050, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffGroup:findPackage', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:17:37', `update_by` = 'admin', `update_time` = '2021-06-28 14:18:03', `remark` = '' WHERE `menu_id` = 2052;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费计划查询', `parent_id` = 2050, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:tariffPlan:findPacket', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-06-28 14:39:01', `update_by` = 'admin', `update_time` = '2021-06-28 14:40:33', `remark` = '' WHERE `menu_id` = 2053;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '卡板划分', `parent_id` = 2001, `order_num` = 7, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:divide', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-07-02 10:00:00', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2058;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '部门所属人员查询', `parent_id` = 2058, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:findDeptUser', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-07-02 10:01:49', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2059;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '同步用量', `parent_id` = 2001, `order_num` = 8, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:SynFlow', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-07-21 18:04:29', `update_by` = 'admin', `update_time` = '2021-07-21 18:05:02', `remark` = '' WHERE `menu_id` = 2060;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '同步状态', `parent_id` = 2001, `order_num` = 9, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:SynStatus', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-07-21 18:04:46', `update_by` = 'admin', `update_time` = '2021-07-21 18:05:08', `remark` = '' WHERE `menu_id` = 2061;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '机卡解绑', `parent_id` = 2001, `order_num` = 10, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:CardBinding', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-07-26 13:09:59', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2062;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '订单管理', `parent_id` = 0, `order_num` = 23, `path` = 'order', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'chart', `create_by` = 'admin', `create_time` = '2021-08-06 12:28:49', `update_by` = 'admin', `update_time` = '2021-09-27 11:17:56', `remark` = '' WHERE `menu_id` = 2063;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统订单', `parent_id` = 2063, `order_num` = 10, `path` = 'OrderAll', `component` = 'yunze/order/ordeAll', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:order:list', `icon` = 'chart', `create_by` = 'admin', `create_time` = '2021-08-06 12:32:11', `update_by` = 'admin', `update_time` = '2022-04-11 15:32:49', `remark` = '' WHERE `menu_id` = 2064;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '订单列表查询', `parent_id` = 2063, `order_num` = 0, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:list', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-06 12:32:56', `update_by` = 'admin', `update_time` = '2021-08-06 12:33:03', `remark` = '' WHERE `menu_id` = 2065;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '可查询删除订单', `parent_id` = 2063, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:dellist', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-09 11:04:05', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2066;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '手动执行加包', `parent_id` = 2063, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:manualaddPackage', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-09 11:13:19', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2067;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '金额订单', `parent_id` = 2063, `order_num` = 11, `path` = 'OrderMoney', `component` = 'yunze/order/orderMoney', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:order:list', `icon` = 'money', `create_by` = 'admin', `create_time` = '2021-08-09 11:51:56', `update_by` = 'admin', `update_time` = '2021-08-09 11:52:37', `remark` = '' WHERE `menu_id` = 2068;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费订单', `parent_id` = 2063, `order_num` = 12, `path` = 'OrderTariff', `component` = 'yunze/order/orderTariff', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:order:list', `icon` = 'size', `create_by` = 'admin', `create_time` = '2021-08-09 12:03:34', `update_by` = 'admin', `update_time` = '2021-09-27 10:17:37', `remark` = '' WHERE `menu_id` = 2069;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '订单详情', `parent_id` = 2063, `order_num` = 3, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:findOrder', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-10 17:08:32', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2070;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '资费订购', `parent_id` = 2109, `order_num` = 3, `path` = 'rechargeTariff', `component` = 'yunze/flowcard/rechargeTariff/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:order:addPackage', `icon` = 'money', `create_by` = 'admin', `create_time` = '2021-08-11 11:47:00', `update_by` = 'admin', `update_time` = '2022-03-03 15:38:35', `remark` = '' WHERE `menu_id` = 2071;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询单条 资费计划 简要', `parent_id` = 2071, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardFlow:FindPacket', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-12 11:04:20', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2072;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡设置', `parent_id` = 2000, `order_num` = 1, `path` = 'cardSetting', `component` = 'yunze/flowcard/cardSetting/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:card:Setting', `icon` = 'system', `create_by` = 'admin', `create_time` = '2021-08-17 08:23:21', `update_by` = 'admin', `update_time` = '2021-10-30 11:06:55', `remark` = '' WHERE `menu_id` = 2073;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分通道获取通道名称', `parent_id` = 2073, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cardRoute:findCr', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-17 12:16:00', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2074;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '平台导入充值', `parent_id` = 2071, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:importRecharge', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-18 11:33:57', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2075;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '连接管理导入设置', `parent_id` = 2073, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:importSet', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-18 11:35:15', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2076;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '特殊操作', `parent_id` = 3, `order_num` = 4, `path` = 'specialOperation', `component` = 'yunze/specialOperation/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:card:importSelImei', `icon` = 'system', `create_by` = 'admin', `create_time` = '2021-08-20 15:09:10', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2079;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '导入', `parent_id` = 2001, `order_num` = 11, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:import', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-08-23 15:47:34', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2080;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '是否内部人员', `parent_id` = 0, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:sys:internal', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-03 14:24:54', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2081;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用量详情', `parent_id` = 2109, `order_num` = 7, `path` = 'flowhis', `component` = 'yunze/flowcard/card/cardFlowHis', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '1', `status` = '0', `perms` = 'yunze:flowhis:list', `icon` = 'monitor', `create_by` = 'admin', `create_time` = '2021-08-25 10:55:35', `update_by` = 'admin', `update_time` = '2022-04-22 13:28:11', `remark` = '' WHERE `menu_id` = 2082;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '通道轮询', `parent_id` = 2012, `order_num` = 2, `path` = 'polling', `component` = 'yunze/API/polling/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:polling:list', `icon` = 'online', `create_by` = 'admin', `create_time` = '2021-08-26 11:19:57', `update_by` = 'admin', `update_time` = '2022-01-15 15:29:41', `remark` = '' WHERE `menu_id` = 2084;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '订购历史', `parent_id` = 2109, `order_num` = 6, `path` = 'flow', `component` = 'yunze/flowcard/card/cardFlow', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:flow:list', `icon` = 'cardActivation', `create_by` = 'admin', `create_time` = '2021-09-02 08:48:44', `update_by` = 'admin', `update_time` = '2022-04-21 16:39:05', `remark` = '' WHERE `menu_id` = 2085;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统日志', `parent_id` = 108, `order_num` = 3, `path` = 'sysLog', `component` = 'yunze/system/sysLog/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:sysLog:list', `icon` = 'skill', `create_by` = 'admin', `create_time` = '2021-08-23 14:53:03', `update_by` = 'admin', `update_time` = '2022-01-15 15:31:59', `remark` = '' WHERE `menu_id` = 2086;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '订购资费查询', `parent_id` = 2001, `order_num` = 12, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:flow:list', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-18 09:31:28', `update_by` = 'admin', `update_time` = '2021-09-30 14:47:33', `remark` = '' WHERE `menu_id` = 2087;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '导入查询', `parent_id` = 2001, `order_num` = 13, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:ImportQuery', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-23 09:22:31', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2088;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '购物订单', `parent_id` = 2063, `order_num` = 13, `path` = 'OrderShopping', `component` = 'yunze/order/OrderShopping', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:order:list', `icon` = 'shopping', `create_by` = 'admin', `create_time` = '2021-09-27 10:16:46', `update_by` = 'admin', `update_time` = '2021-09-27 10:17:13', `remark` = '' WHERE `menu_id` = 2089;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '卡信息变更查询', `parent_id` = 2001, `order_num` = 14, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:change:list', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-27 13:31:00', `update_by` = 'admin', `update_time` = '2021-09-30 15:00:20', `remark` = '' WHERE `menu_id` = 2093;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '查询发货订单', `parent_id` = 2089, `order_num` = 21, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:findShip', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-30 11:28:54', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2102;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用量详情', `parent_id` = 2001, `order_num` = 16, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:flowhis:list', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-09-30 15:00:11', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2104;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '变更卡分组、备注', `parent_id` = 2001, `order_num` = 17, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:importSetCardInfo', `icon` = 'system', `create_by` = 'admin', `create_time` = '2021-10-14 09:45:45', `update_by` = 'admin', `update_time` = '2021-10-14 17:30:18', `remark` = '' WHERE `menu_id` = 2106;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '设备管理', `parent_id` = 2000, `order_num` = 8, `path` = 'card', `component` = 'yunze/flowcard/card/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '1', `perms` = 'yunze:card:list', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-10-30 10:50:56', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2108;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡资费', `parent_id` = 2000, `order_num` = 21, `path` = 'TariffGroup', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'button', `create_by` = 'admin', `create_time` = '2021-10-30 10:58:35', `update_by` = 'admin', `update_time` = '2022-02-18 10:03:45', `remark` = '' WHERE `menu_id` = 2109;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '批量停复机、断开网', `parent_id` = 2001, `order_num` = 18, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:ApiUpdBatch', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-11-02 13:15:53', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2110;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '规则管理', `parent_id` = 2114, `order_num` = 1, `path` = 'cc', `component` = 'yunze/automation/cc/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:cc:list', `icon` = 'email', `create_by` = 'admin', `create_time` = '2021-10-13 13:46:33', `update_by` = 'admin', `update_time` = '2022-01-15 15:37:15', `remark` = '' WHERE `menu_id` = 2111;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '推送记录', `parent_id` = 2114, `order_num` = 3, `path` = 'cchis', `component` = 'yunze/automation/cchis/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:cchis:list', `icon` = 'form', `create_by` = 'admin', `create_time` = '2021-10-19 15:27:32', `update_by` = 'admin', `update_time` = '2022-01-15 15:34:05', `remark` = '' WHERE `menu_id` = 2112;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '推送配置', `parent_id` = 2114, `order_num` = 2, `path` = 'ccurl', `component` = 'yunze/automation/ccurl/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:ccurl:list', `icon` = 'upload', `create_by` = 'admin', `create_time` = '2021-10-19 16:59:20', `update_by` = 'admin', `update_time` = '2022-01-15 15:33:57', `remark` = '' WHERE `menu_id` = 2113;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '自动化规则', `parent_id` = 0, `order_num` = 26, `path` = 'loglog', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'guide', `create_by` = 'admin', `create_time` = '2021-10-13 13:39:34', `update_by` = 'admin', `update_time` = '2022-01-15 15:11:17', `remark` = '' WHERE `menu_id` = 2114;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '客户管理', `parent_id` = 0, `order_num` = 20, `path` = 'market', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = '', `icon` = 'server', `create_by` = 'admin', `create_time` = '2021-12-07 12:14:02', `update_by` = 'admin', `update_time` = '2022-01-15 15:08:20', `remark` = '' WHERE `menu_id` = 2125;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '导出订单', `parent_id` = 2063, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:order:outOrder', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-12-08 16:39:06', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2137;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式停机', `parent_id` = 2001, `order_num` = 20, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:Stopped', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-12-28 09:04:24', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2153;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式复机', `parent_id` = 2001, `order_num` = 21, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:MachineArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-12-28 09:04:52', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2154;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式断网', `parent_id` = 2001, `order_num` = 22, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:DisconnectNetworkArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-12-28 09:05:18', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2155;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式开网', `parent_id` = 2001, `order_num` = 23, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:OpenNetworkArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2021-12-28 09:05:38', `update_by` = 'admin', `update_time` = '2021-12-28 09:06:00', `remark` = '' WHERE `menu_id` = 2156;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式批量同步用量', `parent_id` = 2001, `order_num` = 24, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:ConsumptionArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-10 10:24:57', `update_by` = 'admin', `update_time` = '2022-01-10 10:26:46', `remark` = '' WHERE `menu_id` = 2167;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式同步状态', `parent_id` = 2001, `order_num` = 25, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:PublicMethodArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-10 10:25:15', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2168;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '勾选式同步状态和用量', `parent_id` = 2001, `order_num` = 26, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:ConsumptionAndStateArr', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-10 10:25:39', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2169;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '获取自动化管理抄送名字', `parent_id` = 2114, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:cc:nameadd', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-12 10:41:45', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2170;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '首页加载', `parent_id` = 0, `order_num` = 27, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:findToDay', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:15:09', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2172;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '已停机数量', `parent_id` = 2172, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:downCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2173;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '超用量数量', `parent_id` = 2172, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:overdoseCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2175;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '快到期数量', `parent_id` = 2172, `order_num` = 3, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:expiringSoonCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2176;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '已达阈值数量', `parent_id` = 2172, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:thresholdReachedCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2177;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = 'Sim卡总数', `parent_id` = 2172, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:simCardCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2178;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = 'Sim卡本月新增数量', `parent_id` = 2172, `order_num` = 6, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:simCardNewCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2179;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '本月数据用量GB', `parent_id` = 2172, `order_num` = 7, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:currentMonth', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2180;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = 'SIm卡活跃度', `parent_id` = 2172, `order_num` = 8, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:simActivity', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2181;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '生命周期分布', `parent_id` = 2172, `order_num` = 9, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:lifeCycleDistribution', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2182;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '业务使用情况-数据', `parent_id` = 2172, `order_num` = 10, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:businessVolumeFlow', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2183;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '业务使用情况-语音', `parent_id` = 2172, `order_num` = 11, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:businessVolumeVoice', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2184;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '业务使用情况-短信', `parent_id` = 2172, `order_num` = 12, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:businessVolumeMessage', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2185;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '微信订单收款', `parent_id` = 2172, `order_num` = 17, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:weChatOrderCollection', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2190;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '本月订单总金额', `parent_id` = 2172, `order_num` = 18, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:orderAmount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2191;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统企业总数', `parent_id` = 2172, `order_num` = 19, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:systemCliqueCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2192;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '系统用户总数', `parent_id` = 2172, `order_num` = 20, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:systemUserCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2193;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '本月激活卡数', `parent_id` = 2172, `order_num` = 21, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:activationCardCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2194;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '本月发货卡数', `parent_id` = 2172, `order_num` = 22, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:shipCard', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2195;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '本月登录ip总数', `parent_id` = 2172, `order_num` = 23, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:logInIp', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 10:16:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2196;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '在线用户', `parent_id` = 2172, `order_num` = 24, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:index:onlineCount', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-01-26 16:37:47', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2197;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '入款管理', `parent_id` = 2139, `order_num` = 2, `path` = 'remittance', `component` = 'yunze/XSGL/remittance/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:remittance:list', `icon` = 'zip', `create_by` = 'admin', `create_time` = '2022-01-13 10:21:21', `update_by` = 'admin', `update_time` = '2022-03-03 10:18:52', `remark` = '' WHERE `menu_id` = 2198;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡诊断', `parent_id` = 2000, `order_num` = 19, `path` = 'diagnosis', `component` = 'yunze/flowcard/diagnosis/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'yunze:card:diagnosis', `icon` = 'druid', `create_by` = 'admin', `create_time` = '2022-02-15 10:20:29', `update_by` = 'admin', `update_time` = '2022-02-18 10:04:40', `remark` = '' WHERE `menu_id` = 2202;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡匹对', `parent_id` = 2202, `order_num` = 6, `path` = 'cardMatch', `component` = 'yunze/flowcard/cardMatch/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:cardMatch', `icon` = 'search', `create_by` = 'admin', `create_time` = '2022-02-18 10:01:46', `update_by` = 'admin', `update_time` = '2022-03-24 15:35:54', `remark` = '' WHERE `menu_id` = 2203;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '授信', `parent_id` = 103, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:dept:credit', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-02-25 15:15:12', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2204;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '企业预存', `parent_id` = 103, `order_num` = 6, `path` = 'deptPrestore', `component` = 'yunze/system/deptPrestore/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'system:dept:prestore', `icon` = 'money', `create_by` = 'admin', `create_time` = '2022-03-01 11:37:00', `update_by` = 'admin', `update_time` = '2022-03-01 16:07:10', `remark` = '' WHERE `menu_id` = 2205;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '企业预存-微信支付', `parent_id` = 103, `order_num` = 7, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:dept:initiatePreSave', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-01 16:07:03', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2206;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = 'API使用', `parent_id` = 2209, `order_num` = 5, `path` = 'apifile', `component` = 'tool/apifile/index', `is_frame` = 1, `is_cache` = 0, `menu_type` = 'C', `visible` = '0', `status` = '0', `perms` = 'tool:apifile:list', `icon` = 'slider', `create_by` = 'admin', `create_time` = '2022-02-17 13:31:29', `update_by` = 'admin', `update_time` = '2022-03-02 17:59:51', `remark` = '' WHERE `menu_id` = 2208;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = 'API集成', `parent_id` = 1, `order_num` = 54, `path` = 'AapIntegrated', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'M', `visible` = '0', `status` = '0', `perms` = NULL, `icon` = 'Ip', `create_by` = 'admin', `create_time` = '2022-03-02 17:35:48', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2209;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '批量取消实名', `parent_id` = 2001, `order_num` = 27, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:cancelrealname', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-03 09:48:48', `update_by` = 'admin', `update_time` = '2022-03-03 09:48:58', `remark` = '' WHERE `menu_id` = 2214;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '用量详情导出', `parent_id` = 2082, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:flowhis:exportflowhis', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-03 10:01:41', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2219;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '单卡停机原因查询', `parent_id` = 2202, `order_num` = 1, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:simStopReason', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-04 09:09:11', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2238;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '单卡开关机状态实时查询', `parent_id` = 2202, `order_num` = 2, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:onOffStatus', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-04 09:09:29', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2239;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '单卡已开通APN信息查询', `parent_id` = 2202, `order_num` = 3, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:apnInfo', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-04 09:09:43', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2240;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '物联卡机卡分离状态查询', `parent_id` = 2202, `order_num` = 4, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:cardBindStatus', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-04 09:10:00', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2241;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '单卡状态变更历史查询', `parent_id` = 2202, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:simChangeHistory', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-04 09:10:14', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2242;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '卡信息更新', `parent_id` = 2001, `order_num` = 28, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:card:replace', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-14 14:52:58', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2252;
|
||||
UPDATE `iotdb`.`sys_menu` SET `menu_name` = '划分资费系统内部使用', `parent_id` = 2041, `order_num` = 5, `path` = '', `component` = NULL, `is_frame` = 1, `is_cache` = 0, `menu_type` = 'F', `visible` = '0', `status` = '0', `perms` = 'yunze:sys:DividePlan', `icon` = '#', `create_by` = 'admin', `create_time` = '2022-03-29 14:22:06', `update_by` = '', `update_time` = NULL, `remark` = '' WHERE `menu_id` = 2253;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 新增字段
|
||||
#套餐表 增加卡总数
|
||||
alter table yz_agent_package add agent_count varchar(50) default null comment '卡总数';
|
||||
alter table yz_card_package add card_count varchar(50) default null comment '卡总数';
|
||||
|
||||
|
||||
# 卡信息主表增加 是否轮询
|
||||
alter table yz_card_info add is_polling smallint(5)NOT NULL DEFAULT '1' comment '是否轮询 0 否 1 是';
|
||||
|
||||
# 通道表增加 登录账号 地址 密码 是否正常
|
||||
alter table yz_card_route add cd_state char(5) DEFAULT NULL COMMENT '是否正常:0否,1是';
|
||||
alter table yz_card_route add cd_count varchar(50) default null comment '卡总数';
|
||||
alter table yz_card_route add cd_useraccount varchar(255) default null comment '登录账号';
|
||||
alter table yz_card_route add cd_password varchar(255) default null comment '登录密码';
|
||||
alter table yz_card_route add cd_addressurl varchar(255) default null comment '登录地址';
|
||||
|
||||
alter table yz_card_route add success_rate varchar(50) DEFAULT NULL COMMENT '前一天同步成功率';
|
||||
alter table yz_card_route add cd_total varchar(50) DEFAULT NULL COMMENT '前一天同步总数';
|
||||
alter table yz_card_route add success_total varchar(50) DEFAULT NULL COMMENT '前一天同步成功总数';
|
||||
alter table yz_card_route add fail_total varchar(50) DEFAULT NULL COMMENT '前一天同步失败总数';
|
||||
alter table yz_card_route add cd_Interface char(11) DEFAULT NULL COMMENT '对接是否已完成/1.接口信息不全 2. 接口申请中3. 不需要对接4. 已对接';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#新增表 通道与资费组关联表
|
||||
CREATE TABLE `yz_ruepke` (
|
||||
`cd_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '通道ID',
|
||||
`package_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '资费组ID'
|
||||
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '通道与资费组关联表' ROW_FORMAT = Dynamic;
|
||||
|
||||
|
||||
# 字典表表新增
|
||||
INSERT INTO `iotdb`.`sys_dict_type`(`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (266, '通用是否带空选项', 'yz_cm_whether', '0', 'admin', '2022-04-25 10:25:20', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_type`(`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (267, '通道表是否正常', 'yz_cd_state', '0', 'admin', '2022-04-19 09:00:47', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_type`(`dict_id`, `dict_name`, `dict_type`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (268, '通道表对接信息', 'yz_cd_Interface', '0', 'admin', '2022-04-19 09:04:54', '', NULL, NULL);
|
||||
|
||||
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (783, 0, '否', '0', 'yz_cm_whether', NULL, NULL, 'N', '0', 'admin', '2022-04-25 10:25:33', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (784, 1, '是', '1', 'yz_cm_whether', NULL, NULL, 'N', '0', 'admin', '2022-04-25 10:25:39', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (785, 3, '不选择', '99', 'yz_cm_whether', NULL, NULL, 'N', '0', 'admin', '2022-04-25 10:27:01', 'admin', '2022-04-25 11:26:41', NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (786, 0, '否', '0', 'yz_cd_state', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:01:39', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (787, 1, '是', '1', 'yz_cd_state', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:03:16', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (788, 1, '接口信息不全', '1', 'yz_cd_Interface', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:05:26', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (789, 2, '接口申请中', '2', 'yz_cd_Interface', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:05:39', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (790, 3, '不需要对接', '3', 'yz_cd_Interface', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:05:49', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (791, 4, '已对接', '4', 'yz_cd_Interface', NULL, NULL, 'N', '0', 'admin', '2022-04-19 09:05:59', '', NULL, NULL);
|
||||
INSERT INTO `iotdb`.`sys_dict_data`(`dict_code`, `dict_sort`, `dict_label`, `dict_value`, `dict_type`, `css_class`, `list_class`, `is_default`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (808, 5, '未申请', '5', 'yz_cd_Interface', NULL, NULL, 'N', '0', 'admin', '2022-04-27 16:56:23', '', NULL, NULL);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# 新增系统任务
|
||||
INSERT INTO `iotdb`.`sys_job`(`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (52, '激活时间-补偿', 'POLLING', 'cardActivateDateAiTask.pollingActivateDateCompensate(60)', '0 0 0/1 * * ?', '1', '1', '0', 'admin', '2022-04-08 10:20:55', 'admin', '2022-04-08 13:05:09', '');
|
||||
INSERT INTO `iotdb`.`sys_job`(`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (57, '卡通道表[同步更改字段数据]', 'DEFAULT', 'cardCount.synchronization', '0 0 0/2 * * ?', '1', '1', '0', 'admin', '2022-04-13 08:37:47', 'admin', '2022-04-18 13:43:04', '');
|
||||
INSERT INTO `iotdb`.`sys_job`(`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (58, '资费组【同步卡总数】', 'DEFAULT', 'cardPostageCount.synchronization', '0 0 0/2 * * ?', '1', '1', '0', 'admin', '2022-04-13 13:36:57', 'admin', '2022-04-18 13:43:06', '');
|
||||
INSERT INTO `iotdb`.`sys_job`(`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (61, '激活时间-智能-未激活-有用量', 'DEFAULT', 'cardActivateDateAiTask.pollingActivateDateIntelligent(120,\'14\',\'notNull\',\'\')', '0 0 3/8 * * ? *', '1', '1', '0', 'admin', '2022-03-09 16:50:32', '', '2022-03-09 18:05:37', '');
|
||||
INSERT INTO `iotdb`.`sys_job`(`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (62, '记录为负数卡号再次同步用量', 'Automation', 'cardFlowLessThanZeroTask.pollingCardFlowLessThanZero(60)', '0 0 0/1 * * ?', '1', '1', '0', 'admin', '2022-04-21 13:16:42', 'admin', '2022-04-21 14:11:09', '');
|
||||
|
||||
|
||||
|
||||
# 菜单表新增
|
||||
|
||||
INSERT INTO `iotdb`.`sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2261, '获取agent_id下appId', 2257, 3, '', NULL, 1, 0, 'F', '0', '0', 'yunze:apiAccount:find', '#', 'admin', '2022-04-22 16:30:48', 'admin', '2022-04-22 16:31:23', '');
|
||||
INSERT INTO `iotdb`.`sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2269, '通道查询资费组', 2013, 10, '', NULL, 1, 0, 'F', '0', '0', 'yunze:cardRoute:packageRoute', '#', 'admin', '2022-04-28 13:52:01', '', NULL, '');
|
||||
INSERT INTO `iotdb`.`sys_menu`(`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2270, '平台资费组详情', 2020, 3, '', NULL, 1, 0, 'F', '0', '0', 'yunze:tariffGroup:find', '#', 'admin', '2022-04-28 14:07:53', '', NULL, '');
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
package com.yunze.web.controller.yunze.card;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yunze.common.annotation.Log;
|
||||
import com.yunze.common.core.domain.model.LoginUser;
|
||||
import com.yunze.common.enums.BusinessType;
|
||||
import com.yunze.common.utils.ServletUtils;
|
||||
import com.yunze.common.utils.ip.IpUtils;
|
||||
import com.yunze.common.utils.spring.SpringUtils;
|
||||
import com.yunze.common.utils.yunze.AesEncryptUtil;
|
||||
import com.yunze.framework.web.service.TokenService;
|
||||
import com.yunze.system.service.yunze.card.IYzAgentAccountService;
|
||||
import com.yunze.web.core.config.MyBaseController;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* API账号 管理
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/yunze/ApiAccount")
|
||||
public class YzAgentAccountController extends MyBaseController {
|
||||
|
||||
@Resource
|
||||
private IYzAgentAccountService iYzAgentAccountService;
|
||||
|
||||
/**
|
||||
* 执行API账号查询
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('yunze:apiAccount:list')")
|
||||
@PostMapping(value = "/list", produces = {"application/json;charset=UTF-8"})
|
||||
public String selList(@RequestBody String Pstr) {
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if (Pstr != null) {
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
List<Integer> agent_idArr = new ArrayList<>();
|
||||
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
|
||||
String deptId = loginUser.getUser().getDeptId().toString();
|
||||
if(!deptId.equals("100")){
|
||||
if(Parammap.get("agent_id")!=null){
|
||||
List<Integer> P_agent_id = (List<Integer>) Parammap.get("agent_id");
|
||||
agent_idArr.addAll(P_agent_id);
|
||||
}else{
|
||||
agent_idArr.add(Integer.parseInt(deptId));
|
||||
Parammap.put("agent_id",agent_idArr);
|
||||
}
|
||||
}
|
||||
return MyRetunSuccess(iYzAgentAccountService.getList(Parammap), null);
|
||||
} catch (Exception e) {
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> system:polling:list <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ", e.getCause().toString());
|
||||
}
|
||||
return Myerr("查询 API账号 操作失败!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
@Log(title = "API账号新增", businessType = BusinessType.INSERT)
|
||||
@PreAuthorize("@ss.hasPermi('yunze:apiAccount:save')")
|
||||
@PostMapping(value = "/save", produces = {"application/json;charset=UTF-8"})
|
||||
public String save(@RequestBody String Pstr) {
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if (Pstr != null) {
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
return MyRetunSuccess(iYzAgentAccountService.save(Parammap), null);
|
||||
} catch (Exception e) {
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> system:polling:list <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ", e.getCause().toString());
|
||||
}
|
||||
return Myerr("新增 API账号 操作失败!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@Log(title = "API账号修改", businessType = BusinessType.UPDATE)
|
||||
@PreAuthorize("@ss.hasPermi('yunze:apiAccount:upd')")
|
||||
@PostMapping(value = "/upd", produces = {"application/json;charset=UTF-8"})
|
||||
public String upd(@RequestBody String Pstr) {
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if (Pstr != null) {
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
|
||||
String deptId = loginUser.getUser().getDeptId().toString();
|
||||
if(!deptId.equals("100")){
|
||||
String P_agent_id = Parammap.get("agent_id").toString();
|
||||
if(!P_agent_id.equals(deptId)){
|
||||
return Myerr("不允许修改非本企业数据信息!");
|
||||
}
|
||||
}
|
||||
return MyRetunSuccess(iYzAgentAccountService.upd(Parammap), null);
|
||||
} catch (Exception e) {
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> system:polling:list <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ", e.getCause().toString());
|
||||
}
|
||||
return Myerr("修改 API账号 操作失败!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取 agent_id 下 appId
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('yunze:apiAccount:find')")
|
||||
@PostMapping(value = "/IsExaAgentId", produces = {"application/json;charset=UTF-8"})
|
||||
public String IsExaAgentId(@RequestBody String Pstr) {
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if (Pstr != null) {
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
return MyRetunSuccess(iYzAgentAccountService.is_exaAgentId(Parammap), null);
|
||||
} catch (Exception e) {
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> yunze:apiAccount:find <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ", e.getCause().toString());
|
||||
}
|
||||
return Myerr("获取 agent_id 下 appId 操作失败!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@Log(title = "API账号删除", businessType = BusinessType.DELETE)
|
||||
@PreAuthorize("@ss.hasPermi('yunze:apiAccount:del')")
|
||||
@PostMapping(value = "/del", produces = {"application/json;charset=UTF-8"})
|
||||
public String Del(@RequestBody String Pstr) {
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if (Pstr != null) {
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
LoginUser loginUser = SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
|
||||
String deptId = loginUser.getUser().getDeptId().toString();
|
||||
if(!deptId.equals("100")){
|
||||
return Myerr("非总企业下用户不开放该功能!");
|
||||
}
|
||||
boolean bool = iYzAgentAccountService.del(Parammap);
|
||||
if(bool){
|
||||
return MyRetunSuccess("操作成功!", null);
|
||||
}else{
|
||||
return Myerr("删除 操作失败!");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> yunze:apiAccount:del <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ", e.getCause().toString());
|
||||
}
|
||||
return Myerr("删除 API账号 操作失败!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package com.yunze.web.controller.yunze.sysgl.Dictionaries;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yunze.common.core.controller.BaseController;
|
||||
import com.yunze.common.utils.ServletUtils;
|
||||
import com.yunze.common.utils.ip.IpUtils;
|
||||
import com.yunze.common.utils.yunze.AesEncryptUtil;
|
||||
import com.yunze.system.service.yunze.sysgl.Dictionaries.ISysDictionaryDetailsService;
|
||||
import com.yunze.web.core.config.MyBaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* 出库入库管理
|
||||
*
|
||||
*/
|
||||
|
||||
@Api("出库入库")
|
||||
@RestController
|
||||
@RequestMapping("yunze/Administration")
|
||||
public class SysDictionaryDetailsController extends MyBaseController {
|
||||
|
||||
@Autowired
|
||||
private ISysDictionaryDetailsService ISysDictionaryDetailsService;
|
||||
|
||||
/**查询一级分类*/
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('yunze:Administration:type')")
|
||||
@PostMapping(value = "/type", produces = { "application/json;charset=UTF-8" })
|
||||
public String getType(@RequestBody String Pstr){
|
||||
HashMap<String, Object> Parammap = new HashMap<String, Object>();
|
||||
if(Pstr!=null){
|
||||
Pstr = Pstr.replace("%2F", "/");//转义 /
|
||||
}
|
||||
try {
|
||||
Pstr = AesEncryptUtil.desEncrypt(Pstr);
|
||||
Parammap.putAll(JSON.parseObject(Pstr));
|
||||
return MyRetunSuccess(ISysDictionaryDetailsService.classification(Parammap),null);
|
||||
}catch (Exception e){
|
||||
String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
|
||||
logger.error("<br/> system:Administration:type <br/> Pstr = " + Pstr + " <br/> ip = " + ip + " <br/> ",e.getCause().toString());
|
||||
}
|
||||
return Myerr("大分类 操作失败!");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.yunze.common.mapper.yunze.backup;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface BackupMapper {
|
||||
public List<Map<String, Object>> GenTableList();
|
||||
|
||||
public List<Map<String, Object>> GenTableColumnList();
|
||||
|
||||
public List<Map<String, Object>> QrtzBlobTriggersList();
|
||||
|
||||
public List<Map<String, Object>> QrtzCalendarsList();
|
||||
|
||||
public List<Map<String, Object>> QrtzCronTriggersList();
|
||||
|
||||
public List<Map<String, Object>> QrtrootiredTriggersList();
|
||||
|
||||
public List<Map<String, Object>> QrtzJobDetailsList();
|
||||
|
||||
public List<Map<String, Object>> QrtzLocksList();
|
||||
|
||||
public List<Map<String, Object>> QrtzPausedTriggerGrpsList();
|
||||
|
||||
public List<Map<String, Object>> QrtzSchedulerStateList();
|
||||
|
||||
public List<Map<String, Object>> QrtzSimpleTriggersList();
|
||||
|
||||
public List<Map<String, Object>> QrtzSimpropTriggersList();
|
||||
|
||||
public List<Map<String, Object>> QrtzTriggersList();
|
||||
|
||||
public List<Map<String, Object>> SysConfigList();
|
||||
|
||||
public List<Map<String, Object>> SysDeptList();
|
||||
|
||||
public List<Map<String, Object>> SysDictDataList();
|
||||
|
||||
public List<Map<String, Object>> SysDictTypeList();
|
||||
|
||||
public List<Map<String, Object>> SysJobList();
|
||||
|
||||
public List<Map<String, Object>> SysJobLogList();
|
||||
|
||||
public List<Map<String, Object>> SysLogininforList();
|
||||
|
||||
public List<Map<String, Object>> SysMenuList();
|
||||
|
||||
public List<Map<String, Object>> SysNoticeList();
|
||||
|
||||
public List<Map<String, Object>> SysOperLogList();
|
||||
|
||||
public List<Map<String, Object>> SysPostList();
|
||||
|
||||
public List<Map<String, Object>> SysRoleList();
|
||||
|
||||
public List<Map<String, Object>> SysRoleDeptList();
|
||||
|
||||
public List<Map<String, Object>> SysRoleMenuList();
|
||||
|
||||
public List<Map<String, Object>> SysUserList();
|
||||
|
||||
public List<Map<String, Object>> SysUserPostList();
|
||||
|
||||
public List<Map<String, Object>> SysUserRoleList();
|
||||
|
||||
public List<Map<String, Object>> YzAgentAccountList();
|
||||
|
||||
public List<Map<String, Object>> YzAgentPackageList();
|
||||
|
||||
public List<Map<String, Object>> YzAgentPacketList();
|
||||
|
||||
public List<Map<String, Object>> YzCardFlowList();
|
||||
|
||||
public List<Map<String, Object>> YzCardFlowHisList();
|
||||
|
||||
public List<Map<String, Object>> YzCardInfoList();
|
||||
|
||||
public List<Map<String, Object>> YzCardOperatingList();
|
||||
|
||||
public List<Map<String, Object>> YzCardPackageList();
|
||||
|
||||
public List<Map<String, Object>> YzCardPacketList();
|
||||
|
||||
public List<Map<String, Object>> YzCardRouteList();
|
||||
|
||||
public List<Map<String, Object>> YzExecutionTaskList();
|
||||
|
||||
public List<Map<String, Object>> YzOrderList();
|
||||
|
||||
public List<Map<String, Object>> YzPassagewayPollingList();
|
||||
|
||||
public List<Map<String, Object>> YzWechatUserList();
|
||||
|
||||
public List<Map<String, Object>> YzWxAutoreplyList();
|
||||
|
||||
public List<Map<String, Object>> YzWxConfigList();
|
||||
|
||||
public List<Map<String, Object>> YzWxMenuList();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package com.yunze.common.mapper.yunze.card;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzAgentAccountMapper {
|
||||
|
||||
/**
|
||||
* 查询总数
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Integer selMapCount(Map map);
|
||||
|
||||
/**
|
||||
*查询
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<Map <String,Object>> getList(Map map);
|
||||
|
||||
|
||||
public Integer save(Map map);
|
||||
|
||||
public Integer upd(Map map);
|
||||
|
||||
/**
|
||||
* 是否存在 appId
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Integer is_exAppId(Map map);
|
||||
|
||||
|
||||
/**
|
||||
* agent_id 下是否存在 appId
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<String> is_exaAgentId(Map map);
|
||||
|
||||
|
||||
public Integer del(Map map);
|
||||
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
package com.yunze.common.mapper.yunze.card;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardApiOfferinginfoMapper {
|
||||
|
||||
/**
|
||||
* 查询总数
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Integer MapCount(Map map);
|
||||
|
||||
/**
|
||||
*查询
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<Map <String,Object>> getList(Map map);
|
||||
|
||||
|
||||
public Integer save(Map map);
|
||||
|
||||
public Integer upd(Map map);
|
||||
|
||||
/**
|
||||
* 是否存在
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Map <String,Object> is_ex(Map map);
|
||||
|
||||
|
||||
public Integer deleteInfo(Map map);
|
||||
|
||||
|
||||
public Integer updateInfo(Map map);
|
||||
|
||||
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package com.yunze.common.mapper.yunze.card;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardApiOfferinginfolistMapper {
|
||||
|
||||
/**
|
||||
* 查询总数
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Integer MapCount(Map map);
|
||||
|
||||
/**
|
||||
*查询
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<Map <String,Object>> getList(Map map);
|
||||
|
||||
|
||||
public Integer save(Map map);
|
||||
|
||||
public Integer upd(Map map);
|
||||
|
||||
/**
|
||||
* 是否存在
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Map <String,Object> is_ex(Map map);
|
||||
|
||||
|
||||
/**
|
||||
* 获取上游资费分组
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<Map <String,Object>> groupOfferingId(Map map);
|
||||
/**
|
||||
* 获取 上游单卡订购套餐列表
|
||||
*/
|
||||
public List<Map<String,Object>> apiIdList(Map map);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.yunze.common.mapper.yunze.card;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardUsageReminderMapper {
|
||||
|
||||
/**
|
||||
* 查询总数
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Integer MapCount(Map map);
|
||||
|
||||
/**
|
||||
*查询
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public List<Map <String,Object>> getList(Map map);
|
||||
|
||||
|
||||
public Integer save(Map map);
|
||||
|
||||
public Integer upd(Map map);
|
||||
|
||||
/**
|
||||
* 是否存在
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Map <String,Object> is_ex(Map map);
|
||||
|
||||
|
||||
/**
|
||||
* 查询 邮件抄送 百分比超过 80
|
||||
*/
|
||||
public List<Map<String,Object>> mailId(Map map);
|
||||
|
||||
/**
|
||||
* 查询 上游套餐记录列表
|
||||
*/
|
||||
public List<Map<String,Object>> reminderId(Map map);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yunze.common.mapper.yunze.backup.BackupMapper">
|
||||
<select id="GenTableList" resultType="java.util.HashMap">
|
||||
select table_id,table_name,table_comment,sub_table_name,sub_table_fk_name,class_name,
|
||||
tpl_category,package_name,module_name,business_name,function_name,function_author,
|
||||
gen_type,gen_path,options,create_by,create_time,update_by,update_time,remark from gen_table
|
||||
|
||||
</select>
|
||||
|
||||
<select id="GenTableColumnList" resultType="java.util.HashMap">
|
||||
select column_id,table_id,column_name,column_comment,column_type,java_type,java_field,
|
||||
is_pk,is_increment,is_required,is_insert,is_edit,is_list,is_query,query_type,
|
||||
html_type,dict_type,sort,create_by,create_time,update_by,update_time from gen_table_column
|
||||
</select>
|
||||
|
||||
<select id="QrtzBlobTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_name,trigger_group,blob_data from qrtz_blob_triggers
|
||||
</select>
|
||||
|
||||
<select id="QrtzCalendarsList" resultType="java.util.HashMap">
|
||||
select sched_name,calendar_name,calendar from qrtz_calendars
|
||||
</select>
|
||||
|
||||
<select id="QrtzCronTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_name,trigger_group,cron_expression,time_zone_id from qrtz_cron_triggers
|
||||
</select>
|
||||
|
||||
<select id="QrtrootiredTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,entry_id,trigger_name,trigger_group,instance_name,fired_time,sched_time,priority,
|
||||
state,job_name,job_group,is_nonconcurrent,requests_recovery from qrtz_fired_triggers
|
||||
</select>
|
||||
|
||||
<select id="QrtzJobDetailsList" resultType="java.util.HashMap">
|
||||
select sched_name,job_name,job_group,description,job_class_name,is_durable,is_nonconcurrent,
|
||||
is_update_data,requests_recovery,job_data from qrtz_job_details
|
||||
</select>
|
||||
|
||||
<select id="QrtzLocksList" resultType="java.util.HashMap">
|
||||
select sched_name,lock_name from qrtz_locks
|
||||
</select>
|
||||
|
||||
<select id="QrtzPausedTriggerGrpsList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_group from qrtz_paused_trigger_grps
|
||||
</select>
|
||||
|
||||
<select id="QrtzSchedulerStateList" resultType="java.util.HashMap">
|
||||
select sched_name,instance_name,last_checkin_time,checkin_interval from qrtz_scheduler_state
|
||||
</select>
|
||||
|
||||
<select id="QrtzSimpleTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_name,trigger_group,repeat_count,repeat_interval,times_triggered from qrtz_simple_triggers
|
||||
</select>
|
||||
|
||||
<select id="QrtzSimpropTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_name,trigger_group,str_prop_1,str_prop_2,str_prop_3,int_prop_1,int_prop_2,
|
||||
long_prop_1,long_prop_2,dec_prop_1,dec_prop_2,bool_prop_1,bool_prop_1 from qrtz_simprop_triggers
|
||||
</select>
|
||||
|
||||
<select id="QrtzTriggersList" resultType="java.util.HashMap">
|
||||
select sched_name,trigger_name,trigger_group,job_name,job_group,description,next_fire_time,
|
||||
prev_fire_time,priority,trigger_state,trigger_type,start_time,end_time,calendar_name,
|
||||
misfire_instr,job_data from qrtz_triggers
|
||||
</select>
|
||||
<!--SysConfig-->
|
||||
<select id="SysConfigList" resultType="java.util.HashMap">
|
||||
select config_id,config_name,config_key,config_value,config_type,create_by,create_time,update_by,
|
||||
update_time,remark from sys_config
|
||||
</select>
|
||||
|
||||
<select id="SysDeptList" resultType="java.util.HashMap">
|
||||
select dept_id,parent_id,ancestors,dept_name,order_num,leader,phone,email,status,del_flag,create_by,
|
||||
create_time,update_by,update_time from sys_dept
|
||||
</select>
|
||||
|
||||
<select id="SysDictDataList" resultType="java.util.HashMap">
|
||||
select dict_code,dict_sort,dict_label,dict_value,dict_type,css_class,list_class,is_default,status,
|
||||
create_by,create_time,update_by,update_time,remark from sys_dict_data
|
||||
</select>
|
||||
|
||||
<select id="SysDictTypeList" resultType="java.util.HashMap">
|
||||
select dict_id,dict_name,dict_type,status,create_by,create_time,update_by,update_time,remark from sys_dict_type
|
||||
</select>
|
||||
|
||||
<select id="SysJobList" resultType="java.util.HashMap">
|
||||
select job_id,job_name,job_group,invoke_target,cron_expression,misfire_policy,concurrent,
|
||||
status,create_by,create_time,update_by,update_time,remark from sys_job
|
||||
</select>
|
||||
|
||||
<select id="SysJobLogList" resultType="java.util.HashMap">
|
||||
select job_log_id,job_name,job_group,invoke_target,job_message,status,exception_info,create_time from sys_job_log
|
||||
</select>
|
||||
|
||||
<select id="SysLogininforList" resultType="java.util.HashMap">
|
||||
select info_id,user_name,ipaddr,login_location,browser,os,status,msg,login_time from sys_logininfor
|
||||
</select>
|
||||
|
||||
<select id="SysMenuList" resultType="java.util.HashMap">
|
||||
select menu_id,menu_name,parent_id,order_num,path,component,is_frame,is_cache,menu_type,visible,
|
||||
status,perms,icon,create_by,create_time,update_by,update_time,remark from sys_menu
|
||||
</select>
|
||||
|
||||
<select id="SysNoticeList" resultType="java.util.HashMap">
|
||||
select notice_id,notice_title,notice_type,notice_content,status,create_by,create_time,update_by,
|
||||
update_time,remark from sys_notice
|
||||
</select>
|
||||
|
||||
<select id="SysOperLogList" resultType="java.util.HashMap">
|
||||
select oper_id,title,business_type,method,request_method,operator_type,oper_name,dept_name,oper_url,
|
||||
oper_ip,oper_location,oper_param,json_result,status,error_msg,oper_time from sys_oper_log
|
||||
</select>
|
||||
|
||||
<select id="SysPostList" resultType="java.util.HashMap">
|
||||
select post_id,post_code,post_name,post_sort,status,create_by,create_time,update_by,update_time,remark from sys_post
|
||||
</select>
|
||||
|
||||
<select id="SysRoleList" resultType="java.util.HashMap">
|
||||
select role_id,role_name,role_key,role_sort,data_scope,menu_check_strictly,dept_check_strictly,status,
|
||||
del_flag,create_by,create_time,update_by,update_time,remark from sys_role
|
||||
</select>
|
||||
|
||||
<select id="SysRoleDeptList" resultType="java.util.HashMap">
|
||||
select role_id,dept_id from sys_role_dept
|
||||
</select>
|
||||
|
||||
<select id="SysRoleMenuList" resultType="java.util.HashMap">
|
||||
select role_id,menu_id from sys_role_menu
|
||||
</select>
|
||||
|
||||
<select id="SysUserList" resultType="java.util.HashMap">
|
||||
select user_id,dept_id,user_name,nick_name,user_type,email,phonenumber,sex,avatar,password,status,
|
||||
del_flag,login_ip,login_date,create_by,create_time,update_by,update_time,remark from sys_user
|
||||
</select>
|
||||
|
||||
<select id="SysUserPostList" resultType="java.util.HashMap">
|
||||
select user_id,post_id from sys_user_post
|
||||
</select>
|
||||
|
||||
<select id="SysUserRoleList" resultType="java.util.HashMap">
|
||||
select user_id,role_id from sys_user_role
|
||||
</select>
|
||||
|
||||
<select id="YzAgentAccountList" resultType="java.util.HashMap">
|
||||
select id,app_id,access_key,password,create_time,update_time,agent_name,agent_id,times,openurl,typesys from yz_agent_account
|
||||
</select>
|
||||
|
||||
<select id="YzAgentPackageList" resultType="java.util.HashMap">
|
||||
select id,package_id,package_agentname,package_name,create_time,error_so,dept_id,user_id from yz_agent_package
|
||||
</select>
|
||||
|
||||
<select id="YzAgentPacketList" resultType="java.util.HashMap">
|
||||
select id,package_id,packet_id,packet_name,packet_wx_name,packet_price,packet_flow,base_packet_type,
|
||||
packet_type,is_profit,show_profit,wechat_pay,balance_pay,create_time,error_flow,error_so,
|
||||
packet_valid_time,packet_cost,is_month,date_limit,deduction,in_stock,packet_valid_type,
|
||||
dept_id,user_id,packet_valid_name from yz_agent_packet
|
||||
</select>
|
||||
|
||||
<select id="YzCardFlowList" resultType="java.util.HashMap">
|
||||
select id,package_id,packet_id,ord_no,true_flow,error_flow,start_time,end_time,create_time,ord_type,
|
||||
status,packet_type,use_flow,iccid,error_time,validate_type,validate_time,use_true_flow,
|
||||
use_so_flow from yz_card_flow
|
||||
</select>
|
||||
|
||||
<select id="YzCardFlowHisList" resultType="java.util.HashMap">
|
||||
select id,total_flow,total_flow_now,month,year,day,iccid,create_time,update_time,total_show_flow,
|
||||
total_show_flow_now from yz_card_flow_his
|
||||
</select>
|
||||
|
||||
<select id="YzCardInfoList" resultType="java.util.HashMap">
|
||||
select id,vid,msisdn,iccid,imsi,open_date,activate_date,agent_id,channel_id,is_pool,pool_id,remind_ratio,
|
||||
virtual_ratio,batch_date,syn_Time,create_by,create_date,update_by,update_date,remarks,del_flag,
|
||||
status_id,package_id,used,remaining,imei,type,network_type,is_sms,sms_number,
|
||||
gprs,dept_id,user_id,out_of_stock from yz_card_info
|
||||
</select>
|
||||
|
||||
<select id="YzCardOperatingList" resultType="java.util.HashMap">
|
||||
select id,create_by,create_date,update_by,update_date,remarks,operating,operating_type from yz_card_operating
|
||||
</select>
|
||||
|
||||
<select id="YzCardPackageList" resultType="java.util.HashMap">
|
||||
select id,package_id,package_agentname,package_name,create_time,error_so,dept_id,user_id from yz_card_package
|
||||
</select>
|
||||
|
||||
<select id="YzCardPacketList" resultType="java.util.HashMap">
|
||||
select id,package_id,packet_id,packet_name,packet_wx_name,packet_price,packet_flow,base_packet_type,packet_type,
|
||||
is_profit,show_profit,wechat_pay,balance_pay,create_time,error_flow,error_so,packet_valid_time,packet_cost,
|
||||
is_month,date_limit,deduction,in_stock,packet_valid_type,dept_id,user_id,packet_valid_name from yz_card_packet
|
||||
</select>
|
||||
|
||||
<select id="YzCardRouteList" resultType="java.util.HashMap">
|
||||
select cd_id,cd_code,cd_name,cd_username,cd_pwd,cd_key,cd_url,cd_operator_type,cd_concurrency,cd_lunxun,cd_control_type,
|
||||
cd_max_use,createTime,updateTime,cd_delete,cd_agent_id,cd_status,cd_alias from yz_card_route
|
||||
</select>
|
||||
|
||||
<select id="YzExecutionTaskList" resultType="java.util.HashMap">
|
||||
select id,create_time,update_time,start_time,end_time,task_name,url,auth,agent_id,type from yz_execution_task
|
||||
</select>
|
||||
|
||||
<select id="YzOrderList" resultType="java.util.HashMap">
|
||||
select id,ord_no,ord_type,ord_name,iccid,wx_ord_no,status,price,account,packet_id,pay_type,cre_type,is_profit,
|
||||
add_package,show_status,open_id,agent_id,profit_type,create_time,validate_type,info,add_parameter,
|
||||
add_package_time,del_flag,is_profit_sharing,profit_sharing_time from yz_order
|
||||
</select>
|
||||
|
||||
<select id="YzPassagewayPollingList" resultType="java.util.HashMap">
|
||||
select id,cd_id,create_date,upd_date,cd_count,cd_current,polling_id,syn_date,polling_type from yz_passageway_polling
|
||||
</select>
|
||||
|
||||
<select id="YzWechatUserList" resultType="java.util.HashMap">
|
||||
select id,user_name,openid,head_image,iccid,sex,create_time,city,province,country,app_id,status,bind_status from yz_wechat_user
|
||||
</select>
|
||||
|
||||
<select id="YzWxAutoreplyList" resultType="java.util.HashMap">
|
||||
select id,auto_id,keywords,content,create_time,create_user,app_id from yz_wx_autoreply
|
||||
</select>
|
||||
|
||||
<select id="YzWxConfigList" resultType="java.util.HashMap">
|
||||
select id,app_id,app_secret,app_token,origin_id,mch_id,paterner_key,index_url,back_url,status,create_time,update_time,
|
||||
create_user,company_id,agent_id,native_url,auth_txt from yz_wx_config
|
||||
</select>
|
||||
|
||||
<select id="YzWxMenuList" resultType="java.util.HashMap">
|
||||
select id,menu_id,menu_name,menu_pid,menu_url,menu_status,create_time,update_time,create_user,app_id,menu_type,media_id from yz_wx_menu
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yunze.common.mapper.yunze.card.YzAgentAccountMapper">
|
||||
|
||||
<sql id="selwhere">
|
||||
<where>
|
||||
<if test="value!=null and value!='' ">
|
||||
<if test="type==0">
|
||||
and agent_name LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and app_id LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==2">
|
||||
and password LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==3">
|
||||
and access_key LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="timetype != null and timetype != '' and staTime!=null and endTime!=null">
|
||||
AND
|
||||
<if test="timetype == 0">
|
||||
DATE_FORMAT( create_time , '%Y-%m-%d' )
|
||||
</if>
|
||||
<if test="timetype == 1">
|
||||
DATE_FORMAT( update_time , '%Y-%m-%d' )
|
||||
</if>
|
||||
BETWEEN #{staTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="percentage != null and percentage != '' ">
|
||||
AND percentage >= #{percentage}
|
||||
</if>
|
||||
<if test="agent_id != null and agent_id != '' and agent_id.size>0">
|
||||
and agent_id in
|
||||
<foreach item="agent_id" collection="agent_id" index="agent_id" open="(" separator="," close=")">
|
||||
#{agent_id}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="getList" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
app_id,
|
||||
access_key,
|
||||
password,
|
||||
DATE_FORMAT(create_time,'%Y-%m-%d ') as create_time,
|
||||
DATE_FORMAT(update_time,'%Y-%m-%d ') as update_time,
|
||||
agent_name,
|
||||
agent_id,
|
||||
times,
|
||||
openurl,
|
||||
typesys
|
||||
from yz_agent_account
|
||||
<include refid="selwhere"/>
|
||||
order by create_time desc
|
||||
LIMIT #{StarRow},#{PageSize}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="selMapCount" parameterType="java.util.HashMap" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
yz_agent_account
|
||||
<include refid="selwhere"/>
|
||||
</select>
|
||||
|
||||
<insert id="save" parameterType="java.util.HashMap" >
|
||||
insert into
|
||||
yz_agent_account
|
||||
(
|
||||
id,
|
||||
app_id,
|
||||
access_key,
|
||||
password,
|
||||
create_time,
|
||||
update_time,
|
||||
agent_name,
|
||||
agent_id,
|
||||
times,
|
||||
openurl,
|
||||
typesys
|
||||
)values
|
||||
(
|
||||
#{id},
|
||||
#{app_id},
|
||||
#{access_key},
|
||||
#{password},
|
||||
now(),
|
||||
now(),
|
||||
#{agent_name},
|
||||
#{agent_id},
|
||||
#{times},
|
||||
#{openurl},
|
||||
0
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="upd" parameterType="java.util.HashMap" >
|
||||
update
|
||||
yz_agent_account
|
||||
<set>
|
||||
<if test="access_key!=null">
|
||||
access_key = #{access_key},
|
||||
</if>
|
||||
<if test="password!=null">
|
||||
password = #{password},
|
||||
</if>
|
||||
<if test="agent_name!=null">
|
||||
agent_name = #{agent_name},
|
||||
</if>
|
||||
<if test="agent_id!=null">
|
||||
agent_id = #{agent_id},
|
||||
</if>
|
||||
<if test="times!=null">
|
||||
times = #{times},
|
||||
</if>
|
||||
<if test="openurl!=null">
|
||||
openurl = <![CDATA[ #{openurl} ]]>,
|
||||
</if>
|
||||
<if test="typesys!=null">
|
||||
typesys = #{typesys},
|
||||
</if>
|
||||
update_time = now()
|
||||
</set>
|
||||
<where>
|
||||
id = #{id}
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<select id="is_exAppId" parameterType="java.util.HashMap" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
yz_agent_account
|
||||
<where>
|
||||
app_id = #{app_id}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="is_exaAgentId" parameterType="java.util.HashMap" resultType="java.lang.String">
|
||||
select
|
||||
app_id
|
||||
from
|
||||
yz_agent_account
|
||||
<where>
|
||||
agent_id = #{agent_id}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="del" parameterType="java.util.HashMap">
|
||||
delete from yz_agent_account
|
||||
<where>
|
||||
id = #{id}
|
||||
and app_id !='adminOption'
|
||||
</where>
|
||||
</delete>
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yunze.common.mapper.yunze.card.YzCardApiOfferinginfoMapper">
|
||||
|
||||
|
||||
<sql id="selwhere">
|
||||
<where>
|
||||
<if test="value!=null and value!='' ">
|
||||
<if test="type==0">
|
||||
and offeringId LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and offeringName LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==2">
|
||||
and apnName LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="timetype != null and timetype != '' and staTime!=null and endTime!=null">
|
||||
AND
|
||||
<if test="timetype == 0">
|
||||
DATE_FORMAT( create_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
<if test="timetype == 1">
|
||||
DATE_FORMAT( upd_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
BETWEEN #{staTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="cd_code != null and cd_code != ''">
|
||||
cd_code =#{cd_code}
|
||||
</if>
|
||||
<if test="typePackage != null and typePackage != ''">
|
||||
type =#{typePackage}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="getList" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
cd_code,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d') as create_date,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d') as upd_date,
|
||||
type
|
||||
from yz_card_api_offeringinfo
|
||||
<include refid="selwhere"/>
|
||||
ORDER BY
|
||||
<if test="ORDER_BY_type==null or ORDER_BY_type==1">
|
||||
create_date
|
||||
</if>
|
||||
<if test="ORDER_BY_type==2">
|
||||
offeringId
|
||||
</if>
|
||||
<if test="ORDER_BY_rule==null or ORDER_BY_rule==1">
|
||||
ASC
|
||||
</if>
|
||||
<if test="ORDER_BY_rule==2">
|
||||
DESC
|
||||
</if>
|
||||
LIMIT #{StarRow},#{PageSize}
|
||||
</select>
|
||||
|
||||
<select id="MapCount" parameterType="java.util.HashMap" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
yz_card_api_offeringinfo
|
||||
<include refid="selwhere"/>
|
||||
</select>
|
||||
|
||||
<insert id="save" parameterType="java.util.HashMap" >
|
||||
insert into
|
||||
yz_card_api_offeringinfo
|
||||
(
|
||||
cd_code,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
create_date,
|
||||
upd_date
|
||||
)values
|
||||
<foreach item="card_arrs" collection="card_arrs" index="index" separator="," >
|
||||
(
|
||||
#{card_arrs.cd_code},
|
||||
#{card_arrs.offeringId},
|
||||
#{card_arrs.offeringName},
|
||||
#{card_arrs.apnName},
|
||||
now(),now()
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="upd" parameterType="java.util.HashMap" >
|
||||
update
|
||||
yz_card_api_offeringinfo
|
||||
<set>
|
||||
<if test="offeringName!=null">
|
||||
offeringName = #{offeringName},
|
||||
</if>
|
||||
<if test="apnName!=null">
|
||||
apnName = #{apnName},
|
||||
</if>
|
||||
<if test="expiriedDate!=null">
|
||||
expiriedDate = #{expiriedDate},
|
||||
</if>
|
||||
|
||||
upd_date = now()
|
||||
</set>
|
||||
<where>
|
||||
cd_code = #{cd_code}
|
||||
and offeringId =#{offeringId}
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<select id="is_ex" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
cd_code,
|
||||
offeringId
|
||||
from
|
||||
yz_card_api_offeringinfo
|
||||
<where>
|
||||
cd_code = #{cd_code}
|
||||
and offeringId = #{offeringId}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<delete id="deleteInfo" parameterType="java.util.HashMap">
|
||||
DELETE FROM yz_card_api_offeringinfo <where>id =#{id}</where>
|
||||
</delete>
|
||||
|
||||
<update id="updateInfo" parameterType="java.util.HashMap">
|
||||
UPDATE
|
||||
yz_card_api_offeringinfo
|
||||
<set>
|
||||
type =#{type}
|
||||
</set>
|
||||
<where>
|
||||
id =#{id}
|
||||
</where>
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+221
@@ -0,0 +1,221 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yunze.common.mapper.yunze.card.YzCardApiOfferinginfolistMapper">
|
||||
|
||||
<sql id="selwhere">
|
||||
<where>
|
||||
<if test="value!=null and value!='' ">
|
||||
<if test="type==0">
|
||||
and iccid LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and offeringName LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==2">
|
||||
and offeringId LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
<if test="type==3">
|
||||
and apnName LIKE CONCAT('%',#{value},'%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="timetype != null and timetype != '' and staTime!=null and endTime!=null">
|
||||
AND
|
||||
<if test="timetype == 0">
|
||||
DATE_FORMAT( create_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
<if test="timetype == 1">
|
||||
DATE_FORMAT( effectiveDate , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
<if test="timetype == 2">
|
||||
DATE_FORMAT( expiriedDate , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
<if test="timetype == 3">
|
||||
DATE_FORMAT( upd_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
BETWEEN #{staTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="cd_code != null and cd_code != '' ">
|
||||
cd_code =#{cd_code}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="getList" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
effectiveDate,
|
||||
expiriedDate,
|
||||
apnName,
|
||||
cd_code,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d') as upd_date,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d') as create_date
|
||||
from yz_card_api_offeringinfolist
|
||||
<include refid="selwhere"/>
|
||||
ORDER BY
|
||||
<if test="ORDER_BY_type==null or ORDER_BY_type==1">
|
||||
create_date
|
||||
</if>
|
||||
<if test="ORDER_BY_type==2">
|
||||
offeringId
|
||||
</if>
|
||||
<if test="ORDER_BY_rule==null or ORDER_BY_rule==1">
|
||||
ASC
|
||||
</if>
|
||||
<if test="ORDER_BY_rule==2">
|
||||
DESC
|
||||
</if>
|
||||
LIMIT #{StarRow},#{PageSize}
|
||||
</select>
|
||||
|
||||
<select id="MapCount" parameterType="java.util.HashMap" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
yz_card_api_offeringinfolist
|
||||
<include refid="selwhere"/>
|
||||
</select>
|
||||
|
||||
<insert id="save" parameterType="java.util.HashMap" >
|
||||
insert into
|
||||
yz_card_api_offeringinfolist
|
||||
(
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
effectiveDate,
|
||||
expiriedDate,
|
||||
apnName,
|
||||
cd_code,
|
||||
create_date,
|
||||
upd_date
|
||||
|
||||
)values
|
||||
<foreach item="card_arrs" collection="card_arrs" index="index" separator="," >
|
||||
(
|
||||
#{iccid},
|
||||
#{card_arrs.offeringId},
|
||||
#{card_arrs.offeringName},
|
||||
#{card_arrs.effectiveDate},
|
||||
#{card_arrs.expiriedDate},
|
||||
#{card_arrs.apnName},
|
||||
#{cd_code},
|
||||
now(),now()
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="upd" parameterType="java.util.HashMap" >
|
||||
update
|
||||
yz_card_api_offeringinfolist
|
||||
<set>
|
||||
<if test="offeringName!=null">
|
||||
offeringName = #{offeringName},
|
||||
</if>
|
||||
<if test="apnName!=null">
|
||||
apnName = #{apnName},
|
||||
</if>
|
||||
<if test="effectiveDate!=null">
|
||||
effectiveDate = #{effectiveDate},
|
||||
</if>
|
||||
<if test="expiriedDate!=null">
|
||||
expiriedDate = #{expiriedDate},
|
||||
</if>
|
||||
<if test="cd_code!=null">
|
||||
cd_code = #{cd_code},
|
||||
</if>
|
||||
upd_date = now()
|
||||
</set>
|
||||
<where>
|
||||
iccid = #{iccid}
|
||||
and offeringId =#{offeringId}
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<select id="is_ex" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
iccid,
|
||||
offeringId
|
||||
from
|
||||
yz_card_api_offeringinfolist
|
||||
<where>
|
||||
iccid = #{iccid}
|
||||
and offeringId = #{offeringId}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<!--互联网卡详情查询-->
|
||||
<select id="apiIdList" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT
|
||||
id,
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
effectiveDate,
|
||||
expiriedDate,
|
||||
apnName,
|
||||
cd_code,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d') as upd_date,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d') as create_date
|
||||
FROM
|
||||
yz_card_api_offeringinfolist
|
||||
<where>
|
||||
iccid =#{iccid}
|
||||
</where>
|
||||
order by offeringId asc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="groupOfferingId" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT
|
||||
cd_code,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName
|
||||
FROM
|
||||
yz_card_api_offeringinfolist
|
||||
GROUP BY
|
||||
offeringId
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+244
@@ -0,0 +1,244 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yunze.common.mapper.yunze.card.YzCardUsageReminderMapper">
|
||||
|
||||
<sql id="selwhere">
|
||||
<where>
|
||||
<if test="value!=null and value!='' ">
|
||||
<if test="type==0">
|
||||
and iccid LIKE CONCAT(#{value},'%')
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and offeringId LIKE CONCAT(#{value},'%')
|
||||
</if>
|
||||
<if test="type==2">
|
||||
and offeringName LIKE CONCAT(#{value},'%')
|
||||
</if>
|
||||
<if test="type==3">
|
||||
and apnName LIKE CONCAT(#{value},'%')
|
||||
</if>
|
||||
</if>
|
||||
<if test="timetype != null and timetype != '' and staTime!=null and endTime!=null">
|
||||
AND
|
||||
<if test="timetype == 0">
|
||||
DATE_FORMAT( create_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
<if test="timetype == 1">
|
||||
DATE_FORMAT( upd_date , '%Y-%m-%d %H:%i:%S' )
|
||||
</if>
|
||||
BETWEEN #{staTime} AND #{endTime}
|
||||
</if>
|
||||
<if test="percentage != null and percentage != '' ">
|
||||
AND percentage >= #{percentage}
|
||||
</if>
|
||||
<if test="dimensionField != null and dimensionField != '' and dimensionType != null and dimensionType != '' and dimensionValue != null and dimensionValue != '' ">
|
||||
and
|
||||
<if test="dimensionField == 1">
|
||||
totalAmount
|
||||
</if>
|
||||
<if test="dimensionField == 2">
|
||||
useAmount
|
||||
</if>
|
||||
<if test="dimensionField == 3">
|
||||
remainAmount
|
||||
</if>
|
||||
<if test="dimensionField == 4">
|
||||
percentage
|
||||
</if>
|
||||
<if test="dimensionType == 1">
|
||||
<![CDATA[ >= ]]>
|
||||
</if>
|
||||
<if test="dimensionType == 2">
|
||||
<![CDATA[ > ]]>
|
||||
</if>
|
||||
<if test="dimensionType == 3">
|
||||
<![CDATA[ = ]]>
|
||||
</if>
|
||||
<if test="dimensionType == 4">
|
||||
<![CDATA[ < ]]>
|
||||
</if>
|
||||
<if test="dimensionType == 5">
|
||||
<![CDATA[ <= ]]>
|
||||
</if>
|
||||
<if test="dimensionType == 6">
|
||||
<![CDATA[ != ]]>
|
||||
</if>
|
||||
#{dimensionValue}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="getList" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
totalAmount,
|
||||
useAmount,
|
||||
remainAmount,
|
||||
percentage,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d ') as create_date,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d ') as upd_date
|
||||
from yz_card_usage_reminder
|
||||
<include refid="selwhere"/>
|
||||
LIMIT #{StarRow},#{PageSize}
|
||||
</select>
|
||||
|
||||
<!--查询 邮件抄送 百分比超过 80-->
|
||||
<select id="mailId" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
totalAmount,
|
||||
useAmount,
|
||||
remainAmount,
|
||||
percentage,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d %H:%i:%S') as create_date,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d ') as upd_date
|
||||
from yz_card_usage_reminder
|
||||
<include refid="selwhere"/>
|
||||
</select>
|
||||
|
||||
<select id="MapCount" parameterType="java.util.HashMap" resultType="java.lang.Integer">
|
||||
select
|
||||
count(1)
|
||||
from
|
||||
yz_card_usage_reminder
|
||||
<include refid="selwhere"/>
|
||||
</select>
|
||||
|
||||
<insert id="save" parameterType="java.util.HashMap" >
|
||||
insert into
|
||||
yz_card_usage_reminder
|
||||
(
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
totalAmount,
|
||||
useAmount,
|
||||
remainAmount,
|
||||
percentage,
|
||||
create_date,
|
||||
upd_date
|
||||
)values
|
||||
<foreach item="card_arrs" collection="card_arrs" index="index" separator="," >
|
||||
(
|
||||
#{iccid},
|
||||
#{card_arrs.offeringId},
|
||||
#{card_arrs.offeringName},
|
||||
#{card_arrs.apnName},
|
||||
#{card_arrs.totalAmount},
|
||||
#{card_arrs.useAmount},
|
||||
#{card_arrs.remainAmount},
|
||||
#{card_arrs.percentage},
|
||||
now(),now()
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="upd" parameterType="java.util.HashMap" >
|
||||
update
|
||||
yz_card_usage_reminder
|
||||
<set>
|
||||
<if test="offeringName!=null">
|
||||
offeringName = #{offeringName},
|
||||
</if>
|
||||
<if test="apnName!=null">
|
||||
apnName = #{apnName},
|
||||
</if>
|
||||
<if test="totalAmount!=null">
|
||||
totalAmount = #{totalAmount},
|
||||
</if>
|
||||
<if test="useAmount!=null">
|
||||
useAmount = #{useAmount},
|
||||
</if>
|
||||
<if test="remainAmount!=null">
|
||||
remainAmount = #{remainAmount},
|
||||
</if>
|
||||
<if test="percentage!=null">
|
||||
percentage = #{percentage},
|
||||
</if>
|
||||
upd_date = now()
|
||||
</set>
|
||||
<where>
|
||||
iccid = #{iccid}
|
||||
and offeringId =#{offeringId}
|
||||
</where>
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<select id="is_ex" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
id,
|
||||
iccid,
|
||||
offeringId
|
||||
from
|
||||
yz_card_usage_reminder
|
||||
<where>
|
||||
iccid = #{iccid}
|
||||
and offeringId = #{offeringId}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="reminderId" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT
|
||||
id,
|
||||
iccid,
|
||||
offeringId,
|
||||
offeringName,
|
||||
apnName,
|
||||
totalAmount,
|
||||
useAmount,
|
||||
remainAmount,
|
||||
percentage,
|
||||
DATE_FORMAT(create_date,'%Y-%m-%d ') as create_date,
|
||||
DATE_FORMAT(upd_date,'%Y-%m-%d ') as upd_date
|
||||
FROM
|
||||
yz_card_usage_reminder
|
||||
<where>
|
||||
iccid =#{iccid}
|
||||
</where>
|
||||
order by offeringId asc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,365 @@
|
||||
package com.yunze.system.card;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yunze.apiCommon.mapper.YzCardRouteMapper;
|
||||
import com.yunze.apiCommon.utils.InternalApiRequest;
|
||||
import com.yunze.common.core.redis.RedisCache;
|
||||
import com.yunze.common.mapper.yunze.YzCardInfoChangeMapper;
|
||||
import com.yunze.common.mapper.yunze.YzCardMapper;
|
||||
import com.yunze.common.mapper.yunze.YzExecutionTaskMapper;
|
||||
import com.yunze.common.utils.yunze.Different;
|
||||
import com.yunze.common.utils.yunze.GetShowStatIdArr;
|
||||
import com.yunze.common.utils.yunze.WriteCSV;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.catalina.User;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.Console;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 灵活变更状态
|
||||
**/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class CardFleState {
|
||||
|
||||
@Resource
|
||||
private YzCardMapper yzCardMapper;
|
||||
@Resource
|
||||
private RedisCache redisCache;
|
||||
@Resource
|
||||
private YzCardInfoChangeMapper yzCardInfoChangeMapper;
|
||||
@Resource
|
||||
private WriteCSV writeCSV;
|
||||
@Resource
|
||||
private YzExecutionTaskMapper yzExecutionTaskMapper;
|
||||
@Resource
|
||||
private InternalApiRequest internalApiRequest;
|
||||
@Resource
|
||||
private YzCardRouteMapper yzCardRouteMapper;
|
||||
@Resource
|
||||
private GetShowStatIdArr getShowStatIdArr;
|
||||
|
||||
private String Outcolumns[] = {"iccid", "返回消息", "执行描述", "执行人", "执行结果"};
|
||||
private String keys[] = {"iccid", "Message", "describe", "agentName", "result"};
|
||||
private int OutSize = 50;//每 50条数据输出一次
|
||||
|
||||
/**
|
||||
* 灵活变更状态
|
||||
*
|
||||
* @param msg
|
||||
* @throws IOException
|
||||
*/
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = "admin_fileFlexible_queue")
|
||||
private void SetCardInfo(String msg ) throws IOException {
|
||||
try {
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return;
|
||||
}
|
||||
Map<String, Object> map = JSON.parseObject(msg);
|
||||
Map<String, Object> Rmap = (Map<String, Object>) map.get("map");//参数
|
||||
Map<String,Object> User = ( Map<String,Object>)map.get("User");//登录用户信息
|
||||
|
||||
executionel(Rmap,User);//灵活变更状态"map" -> {JSONObject@11031} size = 8
|
||||
} catch (Exception e) {
|
||||
log.error(">>错误 - 特殊操作 灵活变更状态 :{}<<", e.getMessage().toString());
|
||||
}
|
||||
}
|
||||
|
||||
private void executionel(Map<String, Object> Rmap,Map<String, Object> User) {
|
||||
String Message = "";
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
|
||||
List<String> list = (List<String>) Rmap.get("iccids");
|
||||
|
||||
List<Map<String,Object>> mapList = new ArrayList<>();
|
||||
|
||||
// 把List<String> 转换成 List<Map<String,Object>>
|
||||
for (int i = 0; i <list.size() ; i++) {
|
||||
HashMap<String, Object> HaAap = new HashMap<>();
|
||||
HaAap.put("iccid", list.get(i));
|
||||
mapList.add(HaAap);
|
||||
}
|
||||
|
||||
Map<String, String> Dept = (Map<String, String>)User.get("dept");
|
||||
String create_by = " [ "+Dept.get("deptName")+" ] - "+" [ "+User.get("userName")+" ] ";
|
||||
|
||||
String newName = UUID.randomUUID().toString().replace("-", "") + "_FleStat";////对应 执行任务导出类别 CSV 前缀
|
||||
String failAdd = UUID.randomUUID().toString().replace("-","")+"_failAdd";
|
||||
|
||||
String task_name = "勾选 操作 [" + "灵活变更状态" + "] ";
|
||||
String SaveUrl = "/getcsv/" + newName + ".csv";
|
||||
String Url = "";
|
||||
SaveUrl = "/getcsv/" + newName + ".csv";
|
||||
Url += SaveUrl + ",/getcsv/"+failAdd+".csv"; // 进行追加
|
||||
Map<String, Object> task_map = new HashMap<String, Object>();
|
||||
task_map.put("auth", create_by);
|
||||
task_map.put("task_name", task_name);
|
||||
task_map.put("url", SaveUrl);
|
||||
task_map.put("agent_id", Dept.get("deptId"));
|
||||
task_map.put("type", "30"); //对应 字典表的 任务类别
|
||||
|
||||
yzExecutionTaskMapper.add(task_map);//添加执行 任务表
|
||||
|
||||
map.put("card_arrs", mapList);//更新 list
|
||||
map.put("type", "3"); //获取 iccid
|
||||
|
||||
if (mapList != null && mapList.size() > 0) {
|
||||
//筛选出未划分通道的
|
||||
map.put("channel_idType", "notNull");
|
||||
List<String> Channel_iccidarr = yzCardMapper.isExistence(map); //查询单卡信息
|
||||
if (Channel_iccidarr != null && Channel_iccidarr.size() > 0) {
|
||||
if (!(Channel_iccidarr.size() == mapList.size())) {
|
||||
// 获取 数组去重数据 和 重复值
|
||||
Map<String, Object> getNotRepeatingMap_DB = Different.getNotRepeating(mapList, Channel_iccidarr, "iccid");//获取 筛选不重复的某列值 和 重复的
|
||||
mapList = (List<Map<String, Object>>) getNotRepeatingMap_DB.get("Rlist");//更新 查询数据
|
||||
List<Map<String, Object>> Out_list_Different = (List<Map<String, Object>>) getNotRepeatingMap_DB.get("Repeatlist");//更新 查询数据
|
||||
//找出与数据库已存在 相同 ICCID 去除 重复 iccid
|
||||
if (Out_list_Different.size() > 0) {
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
defOutcolumns.put("Statedescribe", "未划分通道,取消操作!");
|
||||
defOutcolumns.put("agentName", create_by);
|
||||
defOutcolumns.put("result", "查询失败");
|
||||
writeCSV.OutCSVObj(Out_list_Different, newName, Outcolumns, keys, defOutcolumns, OutSize);
|
||||
}
|
||||
}
|
||||
map.put("card_arrs", mapList);//更新 list
|
||||
List<Map<String, Object>> find_crArr = yzCardRouteMapper.find_cr();//查询 通道简要信息 状态为 正常
|
||||
List<Object> channel_idArr = new ArrayList<>();
|
||||
if (find_crArr != null && find_crArr.size() > 0) {//查询 通道简要信息 状态为 正常
|
||||
for (int i = 0; i < find_crArr.size(); i++) {
|
||||
channel_idArr.add(find_crArr.get(i).get("dictValue"));
|
||||
}
|
||||
} else {
|
||||
channel_idArr.add("0");
|
||||
}
|
||||
//筛选出通道正常的进行 查询
|
||||
map.put("channel_idArr", channel_idArr);
|
||||
List<String> normalChannel_iccidarr = yzCardMapper.isExistence(map);
|
||||
if (normalChannel_iccidarr != null && normalChannel_iccidarr.size() > 0) {
|
||||
if (normalChannel_iccidarr != null && normalChannel_iccidarr.size() > 0) {
|
||||
if (!(normalChannel_iccidarr.size() == mapList.size())) {
|
||||
//上传数据>数据库查询 赛选出
|
||||
List<String> list1 = new ArrayList<>();
|
||||
for (int i = 0; i < mapList.size(); i++) {
|
||||
list1.add(mapList.get(i).get("iccid").toString());
|
||||
}
|
||||
// 获取 数组去重数据 和 重复值
|
||||
Map<String, Object> getNotRepeatingMap_DB = Different.getNotRepeating(mapList, normalChannel_iccidarr, "iccid");//获取 筛选不重复的某列值 和 重复的
|
||||
mapList = (List<Map<String, Object>>) getNotRepeatingMap_DB.get("Rlist");//更新 查询数据
|
||||
List<Map<String, Object>> Out_list_Different = (List<Map<String, Object>>) getNotRepeatingMap_DB.get("Repeatlist");//更新 查询数据
|
||||
//找出与数据库已存在 相同 ICCID 去除 重复 iccid
|
||||
if (Out_list_Different.size() > 0) {
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
|
||||
defOutcolumns.put("Statedescribe", "通道状态 为停用或已删除 取消操作");
|
||||
defOutcolumns.put("agentName", create_by);
|
||||
defOutcolumns.put("result", "查询失败");
|
||||
writeCSV.OutCSVObj(Out_list_Different, newName, Outcolumns, keys, defOutcolumns, OutSize);
|
||||
}
|
||||
}
|
||||
map.put("card_arrs", mapList);//更新 list
|
||||
|
||||
|
||||
List<Map<String, Object>> SuccessArr = new ArrayList<>();
|
||||
List<Map<String, Object>> failArr = new ArrayList<>();
|
||||
|
||||
List<Map<String, Object>> findRouteArr = yzCardMapper.findRouteArr(map);//查询 卡号 分配 通道
|
||||
for (int i = 0; i < findRouteArr.size(); i++) {
|
||||
Map<String, Object> Route = findRouteArr.get(i);
|
||||
String iccid = Route.get("iccid").toString();//获取
|
||||
|
||||
Map<String, Object> Obj = new HashMap<>();// 定义 Obj
|
||||
Obj.put("iccid", iccid);
|
||||
Obj.put("card_arrs", iccid);
|
||||
Object ShowId = Rmap.get("status_ShowId");
|
||||
Obj.put("operType",ShowId);//API 状态
|
||||
|
||||
|
||||
Map<String, Object> CsFble = internalApiRequest.changeCardStatusFlexible(Obj, findRouteArr.get(i));//获取接口
|
||||
String code = CsFble.get("code") != null ? CsFble.get("code").toString() : "500";
|
||||
if (code.equals("200")) {
|
||||
Object status = Rmap.get("status_ShowId");
|
||||
if (status != null && status != "" && status.toString().trim().length() > 0) {
|
||||
Message = Rmap.get("Message") != null ? Rmap.get("Message").toString() : "操作成功!";
|
||||
Obj.put("status", status);
|
||||
Obj.put("Message", Message);
|
||||
Obj.put("agentName", create_by);
|
||||
Obj.put("describe", "成功");
|
||||
Obj.put("result", "操作成功");
|
||||
SuccessArr.add(Obj);
|
||||
}
|
||||
} else {
|
||||
Obj.put("result", "操作失败");
|
||||
Obj.put("describe", "失败");
|
||||
Message = CsFble.get("Message") != null ? CsFble.get("Message").toString() : "失败!";
|
||||
Obj.put("Message", Message);
|
||||
failArr.add(Obj);
|
||||
}
|
||||
|
||||
|
||||
// 成功
|
||||
if (SuccessArr.size() > 0) {
|
||||
writeCSV.OutCSVObj(SuccessArr, newName, Outcolumns, keys, null, OutSize);
|
||||
// 变更主表信息
|
||||
try {
|
||||
String State ="";
|
||||
String status_ShowId = Rmap.get("status_ShowId").toString();
|
||||
if(status_ShowId.equals("0")){ // 已激活转已停机
|
||||
State = "2";//卡状态 停机
|
||||
}
|
||||
// 1:已停机转已激活 2:库存转已激活 5:可测试转已激活 6:待激活转已激活
|
||||
if(status_ShowId.equals("1") || status_ShowId.equals("2") || status_ShowId.equals("5") || status_ShowId.equals("6")){
|
||||
State = "1";//卡状态 正常
|
||||
}
|
||||
if(status_ShowId.equals("3")){// 可测试转库存
|
||||
State = "19";//卡状态 库存
|
||||
}
|
||||
if(status_ShowId.equals("4")){// 可测试转待激活
|
||||
State = "7";//卡状态 待激活
|
||||
}
|
||||
updStatus(SuccessArr, State);//下发变更 卡状态 队列
|
||||
|
||||
}catch (Exception e){
|
||||
log.info(">>错误 - 变更主表信息 :{} | {}<<", e.getMessage());
|
||||
}
|
||||
|
||||
List<Map<String, Object>> AddArr = new ArrayList<>();
|
||||
for (int j = 0; j < SuccessArr.size(); j++) {
|
||||
Map<String, Object> Add_Map = SuccessArr.get(j);
|
||||
String cbefore =""; //变更前 状态
|
||||
String cafterward = ""; //变更后状态
|
||||
Add_Map.put("ctype", "1"); //变更类型
|
||||
Object ShowIds = Rmap.get("status_ShowId");
|
||||
if(ShowIds.equals("0")){
|
||||
cbefore="1";
|
||||
cafterward="2";
|
||||
}
|
||||
if(ShowIds.equals("1")){
|
||||
cbefore="2";
|
||||
cafterward="1";
|
||||
}
|
||||
if(ShowIds.equals("2")){
|
||||
cbefore="19";
|
||||
cafterward="1";
|
||||
}
|
||||
if(ShowIds.equals("3")){
|
||||
cbefore="17";
|
||||
cafterward="19";
|
||||
}
|
||||
if(ShowIds.equals("4")){
|
||||
cbefore="17";
|
||||
cafterward="7";
|
||||
}
|
||||
if(ShowIds.equals("5")){
|
||||
cbefore="17";
|
||||
cafterward="1";
|
||||
}
|
||||
if(ShowIds.equals("6")){
|
||||
cbefore="7";
|
||||
cafterward="1";
|
||||
}
|
||||
Add_Map.put("cbefore", cbefore);
|
||||
Add_Map.put("cafterward", cafterward);
|
||||
Add_Map.put("remark", "执行成功!");
|
||||
Add_Map.put("source_type", "9");// 卡变更类型来源
|
||||
Add_Map.put("execution_status", "1");//执行状态
|
||||
AddArr.add(Add_Map);
|
||||
}
|
||||
Map<String, Object> map2 = new HashMap<>();
|
||||
map2.put("CardInfoMapList", AddArr);
|
||||
Integer addBool = yzCardInfoChangeMapper.addinfo(map2);
|
||||
log.info("Dlx - " + map.get("iccid") + " 卡信息变更表 插入 : " + SuccessArr + " 新增卡信息变更记录 addBool :" + addBool);
|
||||
}
|
||||
|
||||
|
||||
// 失败 newName
|
||||
if (failArr.size() > 0) {
|
||||
writeCSV.OutCSVObj(failArr, newName, Outcolumns, keys, null, OutSize);
|
||||
|
||||
task_map.put("url",Url);
|
||||
task_map.get("id");
|
||||
yzExecutionTaskMapper.upd(task_map);//修改 任务表
|
||||
writeCSV.OutCSVObj(failArr, failAdd, Outcolumns, keys, null, OutSize); //拼接
|
||||
|
||||
List<Map<String, Object>> AddArr = new ArrayList<>();
|
||||
for (int j = 0; j < failArr.size(); j++) {
|
||||
Map<String, Object> Add_Map = failArr.get(j);
|
||||
Add_Map.put("ctype", "1");
|
||||
Object ShowIds = Rmap.get("status_ShowId");
|
||||
Add_Map.put("cbefore", ShowIds);
|
||||
Add_Map.put("cafterward", ShowIds);
|
||||
Add_Map.put("remark", "执行失败!");
|
||||
Add_Map.put("source_type", "9");// 卡变更类型来源
|
||||
Add_Map.put("execution_status", "2");
|
||||
AddArr.add(Add_Map);
|
||||
}
|
||||
Map<String, Object> map3 = new HashMap<>();
|
||||
map3.put("CardInfoMapList", AddArr);
|
||||
Integer addBool = yzCardInfoChangeMapper.addinfo(map3);
|
||||
log.info("Dlx - " + map.get("iccid") + " 卡信息变更表 插入 : " + failArr + " 新增卡信息变更记录 addBool :" + addBool);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
defOutcolumns.put("describe", "通道状态 为停用或已删除 取消操作!");
|
||||
defOutcolumns.put("agentName", create_by);
|
||||
defOutcolumns.put("result", "查询失败");
|
||||
writeCSV.OutCSVObj(mapList, newName, Outcolumns, keys, defOutcolumns, OutSize);
|
||||
}
|
||||
} else {
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
defOutcolumns.put("describe", "未划分通道,取消操作!");
|
||||
defOutcolumns.put("agentName", create_by);
|
||||
defOutcolumns.put("result", "查询失败");
|
||||
writeCSV.OutCSVObj(mapList, newName, Outcolumns, keys, defOutcolumns, OutSize);
|
||||
}
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//需改任务 结束 时间
|
||||
}
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//需改任务 结束 时间
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改卡状态
|
||||
*
|
||||
* @param SuccessArr
|
||||
*/
|
||||
public void updStatus(List<Map<String, Object>> SuccessArr, String statusCode) {
|
||||
//1. 修改卡状态 || 修改停复机状态
|
||||
List<String> iccidArr = new ArrayList<String>();
|
||||
Map<String, Object> Upd_Map = new HashMap<>();
|
||||
for (int i = 0; i < SuccessArr.size(); i++) {
|
||||
iccidArr.add(SuccessArr.get(i).get("iccid").toString());
|
||||
}
|
||||
Upd_Map.put("iccidArr", iccidArr);
|
||||
Upd_Map.put("status_id", statusCode);
|
||||
Upd_Map.put("status_ShowId", getShowStatIdArr.GetShowStatId(statusCode));
|
||||
|
||||
yzCardMapper.updStatusIdArr(Upd_Map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
package com.yunze.system.card;
|
||||
import com.yunze.apiCommon.utils.InternalApiRequest;
|
||||
import com.yunze.common.config.MyDictionary;
|
||||
import com.yunze.common.mapper.yunze.YzCardInfoChangeMapper;
|
||||
import com.yunze.common.mapper.yunze.YzCardMapper;
|
||||
import com.yunze.common.mapper.yunze.YzExecutionTaskMapper;
|
||||
import com.yunze.apiCommon.utils.InternalApiRequest;
|
||||
import com.yunze.common.utils.yunze.GetShowStatIdArr;
|
||||
import com.yunze.common.utils.yunze.WriteCSV;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.dao.DuplicateKeyException;
|
||||
import org.springframework.stereotype.Component;
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.*;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class MonthFirstday {
|
||||
@Resource
|
||||
private YzCardMapper yzCardMapper;
|
||||
@Resource
|
||||
private YzExecutionTaskMapper yzExecutionTaskMapper;
|
||||
@Resource
|
||||
private WriteCSV writeCSV;
|
||||
@Resource
|
||||
private InternalApiRequest internalApiRequest;
|
||||
@Resource
|
||||
private YzCardInfoChangeMapper yzCardInfoChangeMapper;
|
||||
@Resource
|
||||
private MyDictionary myDictionary;
|
||||
@Resource
|
||||
private GetShowStatIdArr getShowStatIdArr;
|
||||
|
||||
private String Outcolumns[] = {"iccid","返回消息","执行描述","执行人","执行结果"};
|
||||
private String keys[] = {"iccid","Message","describe","agentName","result"};
|
||||
private int OutSize = 50;//每 50条数据输出一次
|
||||
|
||||
/**
|
||||
月初有订购期内流量卡 进行 复机
|
||||
*/
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = "admin_MonthFirstday_queue")
|
||||
public void CardMonth(String msg) throws IOException {
|
||||
try {
|
||||
execution();//月初有订购期内流量卡 进行 复机
|
||||
} catch (Exception e) {
|
||||
log.error(">>错误 - 月初有订购期内流量卡 进行 复机 消费者:{}<<", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private void execution() {
|
||||
String Message = "";
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
List<Map<String, Object>> list = yzCardMapper.StatusChange(map);//数据库 查询
|
||||
String create_by = " [总平台] - " + " [管理员] ";
|
||||
//1.读取 上传文件
|
||||
String newName = UUID.randomUUID().toString().replace("-", "") + "_CardInfo";//这里 _CardInfo
|
||||
String task_name = "-月初复机 [月初 复机] ";
|
||||
String SaveUrl = "/getcsv/" + newName + ".csv";
|
||||
SaveUrl = "/getcsv/" + newName + ".csv";
|
||||
Map<String, Object> task_map = new HashMap<String, Object>();
|
||||
task_map.put("auth", create_by);
|
||||
task_map.put("task_name", task_name);
|
||||
task_map.put("url", SaveUrl);
|
||||
task_map.put("agent_id", "100");
|
||||
task_map.put("type", "9"); //对应的任务类别
|
||||
|
||||
yzExecutionTaskMapper.add(task_map);//添加执行 任务表
|
||||
|
||||
|
||||
map.put("card_arrs", list);//更新 list
|
||||
|
||||
try {
|
||||
|
||||
List<Map<String, Object>> SuccessArr = new ArrayList<>();
|
||||
String describe = "";
|
||||
List<Map<String, Object>> failArr = new ArrayList<>();
|
||||
String cafterward = "正常";//变更后状太
|
||||
String OPtionType = "";//操作类型
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
|
||||
Map<String, Object> Obj = new HashMap<>();
|
||||
String iccid = list.get(i).get("iccid").toString();
|
||||
Obj.put("iccid", iccid);
|
||||
Obj.put("Is_Stop", "on");
|
||||
|
||||
|
||||
|
||||
Map<String, Object> Rmap = internalApiRequest.changeCardStatus(Obj, list.get(i));
|
||||
String code = Rmap.get("code") != null ? Rmap.get("code").toString() : "500";
|
||||
if (code.equals("200")) {
|
||||
//复机操作
|
||||
Object status = Rmap.get("status");
|
||||
if (status != null && status != "" && status.toString().trim().length() > 0) {
|
||||
Obj.put("status", status.toString().trim());
|
||||
String RMessage = Rmap.get("Message") != null ? Rmap.get("Message").toString() : "操作成功!";
|
||||
Obj.put("Message", RMessage);
|
||||
Obj.put("describe", describe);
|
||||
Obj.put("agentName", create_by);
|
||||
Obj.put("result", "操作成功");
|
||||
SuccessArr.add(Obj);
|
||||
log.info(">>API - 变更操作 成功 = 0 :{} | {}<<", iccid, Rmap);
|
||||
}
|
||||
} else {
|
||||
Obj.put("result", "操作失败");
|
||||
Message = Rmap.get("Message") != null ? Rmap.get("Message").toString() : "API异常!";
|
||||
Obj.put("Message", Message);
|
||||
failArr.add(Obj);
|
||||
}
|
||||
}
|
||||
String ctype = "";
|
||||
String dict_type = "";
|
||||
String key = "";
|
||||
key = "status_id";
|
||||
dict_type = "yunze_card_status_ShowId";
|
||||
ctype = "1";
|
||||
|
||||
List<Map<String, Object>> lmArr = yzCardMapper.addsel(map);//这里是 查询 出 数据库 操作 前 卡状态
|
||||
|
||||
List<Map<String, Object>> AddArr = new ArrayList<>();
|
||||
|
||||
//2. 卡信息 变更表 插入数据
|
||||
if (SuccessArr.size() > 0) {
|
||||
writeCSV.OutCSVObj(SuccessArr, newName, Outcolumns, keys, null, OutSize);
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//任务结束
|
||||
SuccessArr = new ArrayList<>();
|
||||
//变更主表信息
|
||||
try {
|
||||
updStatus(SuccessArr, "1");//下发变更 卡状态 队列
|
||||
} catch (Exception e) {
|
||||
log.info(">>错误 - 变更主表信息 :{} | {}<<", e.getMessage());
|
||||
}
|
||||
|
||||
for (int j = 0; j < lmArr.size(); j++) {
|
||||
Map<String, Object> ObjMap = lmArr.get(j);
|
||||
Map<String, Object> Add_Map = new HashMap<>();
|
||||
String value = ObjMap.get(key) != null && ObjMap.get(key).toString().length() > 0 ? ObjMap.get(key).toString() : "未知";
|
||||
String cbefore = "";//变更后
|
||||
if (!value.equals("未知")) {
|
||||
cbefore = myDictionary.getdictLabel(dict_type, value);
|
||||
} else {
|
||||
cbefore = value;
|
||||
}
|
||||
Add_Map.put("iccid", ObjMap.get("iccid"));
|
||||
Add_Map.put("ctype", ctype);//生命周期
|
||||
Add_Map.put("cbefore", cbefore);
|
||||
Add_Map.put("cafterward", cafterward);
|
||||
Add_Map.put("remark", "执行成功!");
|
||||
Add_Map.put("source_type", "6");// 来源 类型 :6 月初已订购复机
|
||||
Add_Map.put("execution_status", "1");
|
||||
AddArr.add(Add_Map);
|
||||
}
|
||||
Map<String, Object> map1 = new HashMap<>();
|
||||
map1.put("CardInfoMapList", AddArr);
|
||||
map1.put("ctype", lmArr);
|
||||
int addBool = yzCardInfoChangeMapper.addinfo(map1);
|
||||
log.info("插入成功");
|
||||
log.info("Dlx - " + map.get("iccid") + " 卡信息变更表 插入 : " + OPtionType + " 新增卡信息变更记录 addBool :" + addBool);
|
||||
|
||||
}
|
||||
if (failArr.size() > 0) {
|
||||
|
||||
writeCSV.OutCSVObj(failArr, newName, Outcolumns, keys, null, OutSize);
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//任务结束
|
||||
failArr = new ArrayList<>();
|
||||
for (int j = 0; j < lmArr.size(); j++) {
|
||||
Map<String, Object> ObjMap = lmArr.get(j);
|
||||
Map<String, Object> Add_Map = new HashMap<>();
|
||||
String value = ObjMap.get(key) != null && ObjMap.get(key).toString().length() > 0 ? ObjMap.get(key).toString() : "未知";
|
||||
String cbefore = "";//变更后
|
||||
if (!value.equals("未知")) {
|
||||
cbefore = myDictionary.getdictLabel(dict_type, value);
|
||||
} else {
|
||||
cbefore = value;
|
||||
}
|
||||
Add_Map.put("iccid", ObjMap.get("iccid"));
|
||||
Add_Map.put("ctype", ctype);//生命周期
|
||||
Add_Map.put("cbefore", cbefore);
|
||||
Add_Map.put("cafterward", cafterward);
|
||||
Add_Map.put("describe", describe);
|
||||
Add_Map.put("agentName", create_by);
|
||||
Add_Map.put("remark", "执行失败!");
|
||||
Add_Map.put("source_type", "6");// 来源 类型 :6 月初已订购复机
|
||||
Add_Map.put("execution_status", "2");
|
||||
AddArr.add(Add_Map);
|
||||
}
|
||||
Map<String, Object> map2 = new HashMap<>();
|
||||
map2.put("CardInfoMapList", AddArr);
|
||||
int addBool = yzCardInfoChangeMapper.addinfo(map2);
|
||||
log.info("Dlx - " + map.get("iccid") + " 卡信息变更表 插入 : " + SuccessArr + " 新增卡信息变更记录 addBool :" + addBool);
|
||||
|
||||
}
|
||||
|
||||
}catch (DuplicateKeyException e) {
|
||||
String[] solit = e.getCause().toString().split("'");
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
defOutcolumns.put("describe",e.getCause().toString());
|
||||
defOutcolumns.put("agentName",create_by);
|
||||
defOutcolumns.put("result","查询失败");
|
||||
writeCSV.OutCSVObj(list, newName,Outcolumns, keys,defOutcolumns,OutSize);
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//任务结束
|
||||
log.error(">> cardSet-消费者- 上传excel异常 [插入数据 DuplicateKeyException ] :{}<<", e.getMessage().toString());
|
||||
} catch (Exception e) {
|
||||
Map<String, Object> defOutcolumns = new HashMap<>();
|
||||
defOutcolumns.put("describe",e.getCause().toString());
|
||||
defOutcolumns.put("agentName",create_by);
|
||||
defOutcolumns.put("result","查询失败");
|
||||
writeCSV.OutCSVObj(list, newName,Outcolumns, keys,defOutcolumns,OutSize);
|
||||
yzExecutionTaskMapper.set_end_time(task_map);//任务结束
|
||||
log.error(">>cardSet-消费者- 批量查询消费者:{}<<", e.getMessage());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 修改卡状态
|
||||
* @param SuccessArr
|
||||
*/
|
||||
public void updStatus(List<Map<String, Object>> SuccessArr, String statusCode) {
|
||||
//1. 修改卡状态 || 修改复机状态
|
||||
List<String> iccidArr = new ArrayList<String>();
|
||||
Map<String, Object> Upd_Map = new HashMap<>();
|
||||
for (int i = 0; i < SuccessArr.size(); i++) {
|
||||
iccidArr.add(SuccessArr.get(i).get("iccid").toString());
|
||||
}
|
||||
Upd_Map.put("iccidArr", iccidArr);
|
||||
Upd_Map.put("status_id", statusCode);
|
||||
Upd_Map.put("status_ShowId",getShowStatIdArr.GetShowStatId(statusCode));
|
||||
yzCardMapper.updStatusIdArr(Upd_Map);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>yunze</artifactId>
|
||||
<groupId>com.yunze</groupId>
|
||||
<version>0.8.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>backup</artifactId>
|
||||
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
<!-- springboot-web组件 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<!-- 添加springboot对amqp的支持 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
</dependency>
|
||||
<!--fastjson -->
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>1.2.49</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.yunze</groupId>
|
||||
<artifactId>yunze-common</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.2.6</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql驱动包 -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
|
||||
<build>
|
||||
<!-- 这样也可以把所有的xml文件,打包到相应位置。-->
|
||||
<finalName>backup</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
<include>**/*.yml</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.tld</include>
|
||||
</includes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.properties</include>
|
||||
<include>**/*.yml</include>
|
||||
<include>**/*.xml</include>
|
||||
<include>**/*.tld</include>
|
||||
</includes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<!-- 这里是保证主类不会找不到。-->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.yunze;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
|
||||
@SpringBootApplication
|
||||
@MapperScan("com.yunze.common.mapper")
|
||||
class BackupApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BackupApplication.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.yunze.config;
|
||||
|
||||
import com.yunze.common.core.redis.RedisCache;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Auther: zhang feng
|
||||
* @Date: 2021/07/10/14:24
|
||||
* @Description:
|
||||
*/
|
||||
@Component
|
||||
public class DisposableBean {
|
||||
|
||||
|
||||
|
||||
@Resource
|
||||
private RedisCache redisCache;
|
||||
|
||||
|
||||
|
||||
@PreDestroy
|
||||
public void exit(){
|
||||
/*//防止程序意外终止后 redis 还有记录正在监听 记录 下次程序启动不在创建 消费者
|
||||
System.out.println("cardStop 程序结束 执行删除redis Listener 记录key ");
|
||||
//获取现在数据库中 开启轮询 状态正常的通道进行监听
|
||||
List<String> IDArr = yzCardRouteMapper.findIDArr();
|
||||
if(IDArr!=null && IDArr.size()>0) {
|
||||
//获取redis 中 记录的 已经在监听中的通道名称 避免重复监听
|
||||
for (int i = 0; i < IDArr.size(); i++) {
|
||||
String cd_id = IDArr.get(i);
|
||||
redisCache.redisTemplate.delete("polling_cardCardStop_queue_"+cd_id);
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.yunze.system.card;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.rabbitmq.client.Channel;
|
||||
import com.yunze.common.core.redis.RedisCache;
|
||||
import com.yunze.common.mapper.yunze.YzSysLogsMapper;
|
||||
import com.yunze.common.utils.yunze.VeDate;
|
||||
import com.yunze.common.utils.yunze.WriteCSV;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* 导出 消费 者
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class BackupyzSysLogs {
|
||||
|
||||
@Resource
|
||||
private RedisCache redisCache;
|
||||
@Resource
|
||||
private WriteCSV writeCSV;
|
||||
@Resource
|
||||
private YzSysLogsMapper yzSysLogsMapper;
|
||||
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = "admin_BackupsyzSysLogs_queue")
|
||||
public void BkSysLogs(String msg, Channel channel) throws IOException {
|
||||
try {
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return;
|
||||
}
|
||||
Map<String, Object> Bmap = JSON.parseObject(msg);
|
||||
//System.out.println(Bmap);
|
||||
String create_by = Bmap.get("Masage").toString();//上传新文件名
|
||||
String prefix = "admin_BackupsyzSysLogs_queue";
|
||||
//执行前判断 redis 是否存在 执行数据 存在时 不执行
|
||||
Object isExecute = redisCache.getCacheObject(prefix + ":" + create_by);
|
||||
if (isExecute == null) {
|
||||
redisCache.setCacheObject(prefix + ":" + create_by, msg, 3, TimeUnit.SECONDS);//3 秒缓存 避免 重复消费
|
||||
backups();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error(">>错误 - 连接管理导出 消费者:{}<<", e.getMessage().toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 备份 SysLogsTask
|
||||
*/
|
||||
public void backups() {
|
||||
|
||||
//1.查询出 yz_sys_logs
|
||||
List<Map<String, Object>> channelArr = yzSysLogsMapper.Listwhole(); //查询所有
|
||||
System.out.println("备份 SysLogsTask ======" + channelArr);
|
||||
//2 运用 WriteCSV 类 导出 csv 文件
|
||||
//VeDate获取时间类 getNo表示随机数类
|
||||
String fileName = VeDate.getNo(6) + "_SysLogsTask";
|
||||
String fileUrl[] = VeDate.getYyyyAndMm();
|
||||
String Outcolumns[] = {"id", "请求url", "创建时间", "执行的类方法", "ip", "请求参数", "响应参数", "操作人", "模块", "操作名称"};//数据库的注释名
|
||||
String keys[] = {"id", "res_url", "create_time", "class_method", "ip", "request_args", "response_args", "user_name", "project", "action_name"};//对应的数据库字段名字
|
||||
String Flieurl = fileUrl[0]+"/"+fileUrl[1]+"/"+fileUrl[2]+"/";
|
||||
writeCSV.Write(fileName, channelArr, Outcolumns, null, keys,Flieurl);//导出
|
||||
Map<String, Object> PMap = new HashMap<>();
|
||||
PMap.put("idAll", channelArr);
|
||||
//3.根据导出的 yz_sys_logs id 去删除表数据 delete from yz_sys_logs where iccid in (1,2,3,4)
|
||||
int deleteById = yzSysLogsMapper.deleteById(PMap);
|
||||
// System.out.println("备份数据已删除======" + deleteById);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,75 @@
|
||||
spring:
|
||||
rabbitmq:
|
||||
####连接地址
|
||||
host: 127.0.0.1
|
||||
####端口号
|
||||
port: 5672
|
||||
####账号
|
||||
username: YunZeIotRabbitMq
|
||||
####密码
|
||||
password: 20220107@yzIot
|
||||
## 心跳 请求的心跳超时,以秒为单位; 零表示没有
|
||||
requested-heartbeat: 40
|
||||
### 地址
|
||||
virtual-host: /VirtualHosts
|
||||
listener:
|
||||
simple:
|
||||
retry:
|
||||
####开启消费者(程序出现异常的情况下会)进行重试
|
||||
enabled: true
|
||||
####最大重试次数
|
||||
max-attempts: 1
|
||||
####重试间隔时间
|
||||
initial-interval: 3000
|
||||
#### 手动应答 manual 自动应答 auto
|
||||
acknowledge-mode: auto
|
||||
|
||||
application:
|
||||
name: backup
|
||||
datasource:
|
||||
|
||||
url: jdbc:mysql://127.0.0.1/iotdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: iotdb
|
||||
password: www.5iot.com
|
||||
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: 127.0.0.1
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# 密码
|
||||
password: Rdis20220107
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
# 连接池中的最大空闲连接
|
||||
max-idle: 8
|
||||
# 连接池的最大数据库连接数
|
||||
max-active: 8
|
||||
# #连接池最大阻塞等待时间(使用负值表示没有限制)
|
||||
max-wait: -1ms
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
logging:
|
||||
level:
|
||||
com:
|
||||
iot:
|
||||
business:
|
||||
dao: trace
|
||||
root: info
|
||||
pattern:
|
||||
console: "'%p%m%n'"
|
||||
|
||||
server:
|
||||
port: 8062
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志文件名 -->
|
||||
<property name="LOG_FILE" value="backup" />
|
||||
<!-- 日志文件路径 -->
|
||||
<property name="LOG_PATH" value="mnt/yunze/logs/backup" />
|
||||
<!-- 控制台日志输出格式 -->
|
||||
<property name="LOG_PATTERN_CONSOLE" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{50} --> %msg%n" />
|
||||
<!-- 文件日志输出格式 -->
|
||||
<property name="LOG_PATTERN_FILE" value="%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{50} --> %msg%n" />
|
||||
<!--- 设置控制台日志 -->
|
||||
<appender name="consoleLog" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>DEBUG</level>
|
||||
</filter>
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN_CONSOLE}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
<!-- 设置日志文件 -->
|
||||
<appender name="fileLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>DEBUG</level>
|
||||
</filter>
|
||||
<encoder>
|
||||
<pattern>${LOG_PATTERN_FILE}</pattern>
|
||||
</encoder>
|
||||
<!-- 总文件日志 -->
|
||||
<file>${LOG_PATH}/${LOG_FILE}/${LOG_FILE}.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 每天的文件日志 -->
|
||||
<fileNamePattern>${LOG_PATH}/${LOG_FILE}/${LOG_FILE}-%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志文件保存7天,超过7天的自动删除 -->
|
||||
<maxHistory>7</maxHistory>
|
||||
</rollingPolicy>
|
||||
</appender>
|
||||
|
||||
<!-- 设置日志级别,及需要记录日志的类 -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="consoleLog" />
|
||||
<appender-ref ref="fileLog" />
|
||||
</root>
|
||||
</configuration>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration
|
||||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
|
||||
<settings>
|
||||
<setting name="cacheEnabled" value="true" /> <!-- 全局映射器启用缓存 -->
|
||||
<setting name="useGeneratedKeys" value="true" /> <!-- 允许 JDBC 支持自动生成主键 -->
|
||||
<setting name="defaultExecutorType" value="REUSE" /> <!-- 配置默认的执行器 -->
|
||||
<setting name="logImpl" value="SLF4J" /> <!-- 指定 MyBatis 所用日志的具体实现 -->
|
||||
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> 驼峰式命名 -->
|
||||
</settings>
|
||||
|
||||
</configuration>
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.yunze.config;
|
||||
|
||||
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory;
|
||||
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
|
||||
import org.springframework.boot.autoconfigure.amqp.SimpleRabbitListenerContainerFactoryConfigurer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @Auther: zhang feng
|
||||
* @Date: 2022/02/22/11:18
|
||||
* @Description:
|
||||
*/
|
||||
@Configuration
|
||||
public class RbMQConfig {
|
||||
//并发数量
|
||||
public static final int DEFAULT_CONCURRENT = 200;
|
||||
@Bean("customContainerFactory")
|
||||
public SimpleRabbitListenerContainerFactory containerFactory(SimpleRabbitListenerContainerFactoryConfigurer configurer,
|
||||
ConnectionFactory connectionFactory) {
|
||||
SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory();
|
||||
factory.setConcurrentConsumers(DEFAULT_CONCURRENT);
|
||||
factory.setMaxConcurrentConsumers(DEFAULT_CONCURRENT);
|
||||
configurer.configure(factory, connectionFactory);
|
||||
return factory;
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
package com.yunze.system.moneyChange;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.rabbitmq.client.Channel;
|
||||
import com.yunze.common.mapper.yunze.sysgl.YzMoneyChangeRecordMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 金额变更记录表
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class MoneyChangeRecord {
|
||||
|
||||
|
||||
@Resource
|
||||
private YzMoneyChangeRecordMapper yzMoneyChangeRecordMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 新增 金额变更记录表
|
||||
* @param msg
|
||||
* @param channel
|
||||
* @throws IOException
|
||||
*/
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = "admin_insertMoneyChangeRecord_queue", containerFactory = "customContainerFactory")
|
||||
public void CardUpd(String msg, Channel channel) {
|
||||
try {
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return;
|
||||
}
|
||||
Map<String, Object> Pmap = JSON.parseObject(msg);
|
||||
int saveCount = yzMoneyChangeRecordMapper.saveMoneyChange(Pmap);
|
||||
log.info(">> {} 执行结果 - saveCount:{}<<",Pmap,saveCount);
|
||||
} catch (Exception e) {
|
||||
log.error(">>Exception admin_insertMoneyChangeRecord_queue 消费者:{}<<", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增 金额变更记录表
|
||||
* @param msg
|
||||
* @param channel
|
||||
* @throws IOException
|
||||
*/
|
||||
@RabbitHandler
|
||||
@RabbitListener(queues = "dlx_admin_insertMoneyChangeRecord_queue", containerFactory = "customContainerFactory")
|
||||
public void dlx_CardUpd(String msg, Channel channel) {
|
||||
try {
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return;
|
||||
}
|
||||
Map<String, Object> Pmap = JSON.parseObject(msg);
|
||||
int saveCount = yzMoneyChangeRecordMapper.saveMoneyChange(Pmap);
|
||||
log.info(">> {} 执行结果 - saveCount:{}<<",Pmap,saveCount);
|
||||
} catch (Exception e) {
|
||||
log.error(">>Exception dlx_admin_insertMoneyChangeRecord_queue 消费者:{}<<", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.yunze.quartz.task.yunze.cardflow;
|
||||
|
||||
import com.yunze.apiCommon.mapper.YzCardRouteMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 卡通道表 卡总数 定时任务【同步更改字段数据】
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("cardCount")
|
||||
public class CardCount {
|
||||
|
||||
@Resource
|
||||
private YzCardRouteMapper yzCardRouteMapper;
|
||||
|
||||
public void synchronization() {
|
||||
|
||||
Map<String, Object> Rmap = new HashMap<>();
|
||||
|
||||
List<Map<String, Object>> list = yzCardRouteMapper.countId(Rmap);//查询 通道卡总数
|
||||
if (list != null) {
|
||||
try {
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
Map<String, Object> obj = list.get(i);
|
||||
if (obj.get("channel_id") != null) {
|
||||
Integer integer = yzCardRouteMapper.upCount(obj); //进行修改 通道表 卡总数
|
||||
log.info(integer +"数据操作成功");
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println("操作异常" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.yunze.quartz.task.yunze.cardflow;
|
||||
|
||||
import com.yunze.common.mapper.yunze.YzAgentPackageMapper;
|
||||
import com.yunze.common.mapper.yunze.YzCardPackageMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 定时任务 同步改字段数据【表1:yz_card_package 2:yz_agent_package】 卡总数
|
||||
*/
|
||||
@Slf4j
|
||||
@Component("cardPostageCount")
|
||||
public class CardPostageCount {
|
||||
|
||||
@Resource
|
||||
private YzCardPackageMapper yzCardPackageMapper;
|
||||
@Resource
|
||||
private YzAgentPackageMapper yzAgentPackageMapper;
|
||||
|
||||
|
||||
public void synchronization() {
|
||||
Map<String, Object> Rmap = new HashMap<>();
|
||||
|
||||
List<Map<String, Object>> Cardlist = yzCardPackageMapper.cardCount(Rmap);//平台资费组
|
||||
List<Map<String, Object>> AgentList = yzAgentPackageMapper.agentCount(Rmap);//代理资费组
|
||||
|
||||
if (Cardlist != null && AgentList != null) {
|
||||
try {
|
||||
for (int i = 0; i < Cardlist.size(); i++) {
|
||||
Map<String, Object> obj = Cardlist.get(i);
|
||||
if (obj.get("package_id") != null) {
|
||||
Integer integer = yzCardPackageMapper.upCountC(obj); //进行修改 平台资费组 卡总数
|
||||
log.info(integer + "平台资费组--->数据操作成功");
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < AgentList.size(); i++) {
|
||||
Map<String, Object> obj = AgentList.get(i);
|
||||
if (obj.get("package_id") != null) {
|
||||
Integer integer = yzAgentPackageMapper.upCountA(obj); //进行修改 代理资费组 卡总数
|
||||
log.info(integer + "代理资费组--->数据操作成功");
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
System.out.println("操作异常" + e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
package com.yunze.quartz.task.yunze.polling;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.yunze.apiCommon.mapper.YzCardRouteMapper;
|
||||
import com.yunze.common.mapper.yunze.YrootlowHisMapper;
|
||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 日用量记录为 负数 卡号 再次同步用量
|
||||
* @Auther: zhang feng
|
||||
* @Date: 2022/04/21/12:22
|
||||
* @Description:
|
||||
*/
|
||||
@Component("cardFlowLessThanZeroTask")
|
||||
public class CardFlowLessThanZeroTask {
|
||||
|
||||
|
||||
@Resource
|
||||
private YzCardRouteMapper yzCardRouteMapper;
|
||||
@Resource
|
||||
private RabbitTemplate rabbitTemplate;
|
||||
@Resource
|
||||
private YrootlowHisMapper yrootlowHisMapper;
|
||||
|
||||
|
||||
public void pollingCardFlowLessThanZero(Integer time) {
|
||||
//1.状态 正常 轮询开启 时 获取 每个 通道下卡号 加入队列
|
||||
Map<String, Object> findRouteID_Map = new HashMap<>();
|
||||
List<String> lArr = yrootlowHisMapper.lessThanZeroChannelId(null);
|
||||
if(lArr!=null && lArr.size()>0){
|
||||
findRouteID_Map.put("Cd_idArr", lArr);
|
||||
List<Map<String, Object>> channelArr = yzCardRouteMapper.findRouteID(findRouteID_Map);
|
||||
if (channelArr != null && channelArr.size() > 0) {
|
||||
String CardFlow_routingKey = "polling.cardCardFlowLessThanZero.routingKey";
|
||||
//2.获取 通道下卡号
|
||||
for (int i = 0; i < channelArr.size(); i++) {
|
||||
Map<String, Object> channel_obj = channelArr.get(i);
|
||||
Map<String, Object> findMap = new HashMap<>();
|
||||
String cd_id = channel_obj.get("cd_id").toString();
|
||||
findMap.put("channel_id", cd_id);
|
||||
|
||||
List<Map<String, Object>> cardArr = yrootlowHisMapper.findChannelIdLessThanZero(findMap);
|
||||
if (cardArr != null && cardArr.size() > 0) {
|
||||
pollingExecute(cardArr,channel_obj,CardFlow_routingKey,time);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 公共执行
|
||||
* @param cardArr
|
||||
* @param channel_obj
|
||||
* @param CardFlow_routingKey
|
||||
* @param time
|
||||
*/
|
||||
public void pollingExecute(List<Map<String, Object>> cardArr,Map<String, Object> channel_obj,String CardFlow_routingKey,Integer time){
|
||||
//卡号放入路由
|
||||
for (int j = 0; j < cardArr.size(); j++) {
|
||||
Map<String, Object> card = cardArr.get(j);
|
||||
Map<String, Object> Card = new HashMap<>();
|
||||
Card.putAll(channel_obj);
|
||||
Card.put("iccid", card.get("iccid"));
|
||||
Card.put("card_no", card.get("card_no"));
|
||||
Card.put("network_type", card.get("network_type"));
|
||||
String msg = JSON.toJSONString(Card);
|
||||
//生产任务
|
||||
try {
|
||||
rabbitTemplate.convertAndSend("polling_cardCardFlow_exchange", CardFlow_routingKey, msg, message -> {
|
||||
// 设置消息过期时间 time 分钟 过期
|
||||
message.getMessageProperties().setExpiration("" + (time * 1000 * 60));
|
||||
return message;
|
||||
});
|
||||
} catch (Exception e) {
|
||||
System.out.println(e.getMessage().toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.yunze.system.service.impl.yunze;
|
||||
|
||||
import com.yunze.common.mapper.yunze.card.YzCardApiOfferinginfoMapper;
|
||||
import com.yunze.common.utils.yunze.PageUtil;
|
||||
import com.yunze.system.service.yunze.YzCardApiOfferinginfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
public class YzCardApiOfferinginfoServiceImpl implements YzCardApiOfferinginfoService {
|
||||
|
||||
@Resource
|
||||
private YzCardApiOfferinginfoMapper yzCardApiOfferinginfoMapper;
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getList(Map map) {
|
||||
//System.out.println("CardRouteServiceImpl > sel_Map = ");
|
||||
Map<String, Object> omp = new HashMap<String, Object>();
|
||||
Integer currenPage = map.get("pageNum") != null ? Integer.parseInt(map.get("pageNum").toString()) : 0;
|
||||
Integer pageSize = map.get("pageSize") != null ? Integer.parseInt(map.get("pageSize").toString()) : 10;
|
||||
Integer rowCount = yzCardApiOfferinginfoMapper.MapCount(map);
|
||||
rowCount = rowCount != null ? rowCount : 0;
|
||||
PageUtil pu = new PageUtil(rowCount, currenPage, pageSize);//初始化分页工具类
|
||||
//数据打包
|
||||
map.put("StarRow", pu.getStarRow());
|
||||
map.put("PageSize", pu.getPageSize());
|
||||
omp.put("Pu", pu);
|
||||
omp.put("Data", yzCardApiOfferinginfoMapper.getList(map));
|
||||
return omp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean deleteInfo(Map map) {
|
||||
return yzCardApiOfferinginfoMapper.deleteInfo(map)>0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateInfo(Map map) {
|
||||
return yzCardApiOfferinginfoMapper.updateInfo(map)>0;
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.yunze.system.service.impl.yunze;
|
||||
|
||||
import com.yunze.common.mapper.yunze.card.YzCardApiOfferinginfolistMapper;
|
||||
import com.yunze.common.utils.yunze.PageUtil;
|
||||
import com.yunze.system.service.yunze.YzCardApiOfferinginfolistService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@Service
|
||||
public class YzCardApiOfferinginfolistServiceImpl implements YzCardApiOfferinginfolistService {
|
||||
|
||||
@Resource
|
||||
private YzCardApiOfferinginfolistMapper yzCardApiOfferinginfolistMapper;
|
||||
|
||||
@Override
|
||||
public Map<String, Object> Listfolist(Map map) {
|
||||
//System.out.println("CardRouteServiceImpl > sel_Map = ");
|
||||
Map<String, Object> omp = new HashMap<String, Object>();
|
||||
Integer currenPage = map.get("pageNum") != null ? Integer.parseInt(map.get("pageNum").toString()) : 0;
|
||||
Integer pageSize = map.get("pageSize") != null ? Integer.parseInt(map.get("pageSize").toString()) : 10;
|
||||
Integer rowCount = yzCardApiOfferinginfolistMapper.MapCount(map);
|
||||
rowCount = rowCount != null ? rowCount : 0;
|
||||
PageUtil pu = new PageUtil(rowCount, currenPage, pageSize);//初始化分页工具类
|
||||
//数据打包
|
||||
map.put("StarRow", pu.getStarRow());
|
||||
map.put("PageSize", pu.getPageSize());
|
||||
omp.put("Pu", pu);
|
||||
omp.put("Data", yzCardApiOfferinginfolistMapper.getList(map));
|
||||
return omp;
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package com.yunze.system.service.impl.yunze;
|
||||
|
||||
import com.yunze.common.mapper.yunze.card.YzCardUsageReminderMapper;
|
||||
import com.yunze.common.utils.yunze.PageUtil;
|
||||
import com.yunze.system.service.yunze.YzCardUsageReminderService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@Service
|
||||
public class YzCardUsageReminderServiceImpl implements YzCardUsageReminderService {
|
||||
|
||||
@Resource
|
||||
private YzCardUsageReminderMapper yzCardUsageReminderMapper;
|
||||
|
||||
@Override
|
||||
public Map<String, Object> list(Map map) {
|
||||
//System.out.println("CardRouteServiceImpl > sel_Map = ");
|
||||
Map<String, Object> omp = new HashMap<String, Object>();
|
||||
Integer currenPage = map.get("pageNum") != null ? Integer.parseInt(map.get("pageNum").toString()) : 0;
|
||||
Integer pageSize = map.get("pageSize") != null ? Integer.parseInt(map.get("pageSize").toString()) : 10;
|
||||
Integer rowCount = yzCardUsageReminderMapper.MapCount(map);
|
||||
rowCount = rowCount != null ? rowCount : 0;
|
||||
PageUtil pu = new PageUtil(rowCount, currenPage, pageSize);//初始化分页工具类
|
||||
//数据打包
|
||||
map.put("StarRow", pu.getStarRow());
|
||||
map.put("PageSize", pu.getPageSize());
|
||||
omp.put("Pu", pu);
|
||||
omp.put("Data", yzCardUsageReminderMapper.getList(map));
|
||||
return omp;
|
||||
}
|
||||
}
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
package com.yunze.system.service.impl.yunze.card;
|
||||
|
||||
import com.yunze.common.mapper.yunze.card.YzAgentAccountMapper;
|
||||
import com.yunze.common.utils.yunze.PageUtil;
|
||||
import com.yunze.common.utils.yunze.VeDate;
|
||||
import com.yunze.system.service.yunze.card.IYzAgentAccountService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
public class YzAgentAccountServiceImpl implements IYzAgentAccountService {
|
||||
|
||||
@Resource
|
||||
private YzAgentAccountMapper yzAgentAccountMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getList(Map map) {
|
||||
Map<String, Object> omp = new HashMap<String, Object>();
|
||||
Integer currenPage = map.get("pageNum") != null ? Integer.parseInt(map.get("pageNum").toString()) : 0;
|
||||
Integer pageSize = map.get("pageSize") != null ? Integer.parseInt(map.get("pageSize").toString()) : 10;
|
||||
Integer rowCount = yzAgentAccountMapper.selMapCount(map);
|
||||
rowCount = rowCount != null ? rowCount : 0;
|
||||
PageUtil pu = new PageUtil(rowCount, currenPage, pageSize);//初始化分页工具类
|
||||
//数据打包
|
||||
map.put("StarRow", pu.getStarRow());
|
||||
map.put("PageSize", pu.getPageSize());
|
||||
omp.put("Pu", pu);
|
||||
omp.put("Data", yzAgentAccountMapper.getList(map));
|
||||
return omp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> save(Map map) {
|
||||
Map<String, Object> Rmap = new HashMap<String, Object>();
|
||||
String Message = "操作失败!";
|
||||
boolean bool = false;
|
||||
Integer exAppId = yzAgentAccountMapper.is_exAppId(map);
|
||||
exAppId = exAppId != null && exAppId.toString().length()>0? exAppId : 0;
|
||||
if(exAppId==0){
|
||||
map.put("id", VeDate.getNo(4));
|
||||
bool = yzAgentAccountMapper.save(map)>0;
|
||||
}else {
|
||||
Message = "以存在 app_id 【"+map.get("app_id")+"】!";
|
||||
}
|
||||
if(bool){
|
||||
Message = "操作成功!";
|
||||
}
|
||||
Rmap.put("bool",bool);
|
||||
Rmap.put("Message",Message);
|
||||
return Rmap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean upd(Map map) {
|
||||
boolean bool = yzAgentAccountMapper.upd(map)>0;
|
||||
return bool;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean del(Map map) {
|
||||
boolean bool = yzAgentAccountMapper.del(map)>0;
|
||||
return bool;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> is_exaAgentId(Map map) {
|
||||
return yzAgentAccountMapper.is_exaAgentId(map);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.yunze.system.service.yunze;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardApiOfferinginfoService {
|
||||
|
||||
public Map<String,Object> getList(Map map);
|
||||
|
||||
public boolean deleteInfo(Map map);
|
||||
|
||||
public boolean updateInfo(Map map);
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.yunze.system.service.yunze;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardApiOfferinginfolistService {
|
||||
|
||||
public Map<String,Object> Listfolist(Map map);
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package com.yunze.system.service.yunze;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface YzCardUsageReminderService {
|
||||
|
||||
public Map<String,Object> list (Map map);
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.yunze.system.service.yunze.card;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IYzAgentAccountService {
|
||||
|
||||
public Map<String,Object> getList(Map map);
|
||||
|
||||
public Map<String,Object> save(Map map);
|
||||
|
||||
public boolean upd(Map map);
|
||||
|
||||
public boolean del(Map map);
|
||||
|
||||
public List<String> is_exaAgentId(Map map);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
// 查询列表
|
||||
export function getListusage(query) {
|
||||
return request({
|
||||
url: '/yunze/usage/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import request from '@/utils/request'
|
||||
// 上游资费组管理 查询列表
|
||||
export function listInfo(query) {
|
||||
return request({
|
||||
url: '/yunze/info/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
// 删除ID
|
||||
export function DeleteInfo(query) {
|
||||
return request({
|
||||
url: '/yunze/info/delete',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
// 修改
|
||||
export function UpdateInfo(query) {
|
||||
return request({
|
||||
url: '/yunze/info/update',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 上游已订购套餐 查询列表
|
||||
export function listFolist(query) {
|
||||
return request({
|
||||
url: '/yunze/folist/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// API账号查询
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/yunze/ApiAccount/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 新增
|
||||
export function save(query) {
|
||||
return request({
|
||||
url: '/yunze/ApiAccount/save',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 修改
|
||||
export function upd(query) {
|
||||
return request({
|
||||
url: '/yunze/ApiAccount/upd',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取 agent_id 下 appId
|
||||
export function IsExaAgentId(query) {
|
||||
return request({
|
||||
url: '/yunze/ApiAccount/IsExaAgentId',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function del(query) {
|
||||
return request({
|
||||
url: '/yunze/ApiAccount/del',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z"/></svg>
|
||||
|
After Width: | Height: | Size: 906 B |
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,372 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-row :gutter="20">
|
||||
<!--用户数据-->
|
||||
<el-col :span="mainwidth" :xs="24">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
||||
|
||||
|
||||
<el-form-item label="多维度">
|
||||
<el-select
|
||||
v-model="queryParams.dimensionField"
|
||||
placeholder="维度字段"
|
||||
size="small"
|
||||
clearable
|
||||
style="width: 110px;"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in dimensionFieldOptions"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="queryParams.dimensionValue"
|
||||
placeholder="维度值"
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 350px;"
|
||||
@keyup.enter.native="handleQuery"
|
||||
>
|
||||
<el-select
|
||||
v-model="queryParams.dimensionType"
|
||||
placeholder="维度条件"
|
||||
clearable
|
||||
slot="prepend"
|
||||
style="width: 110px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in dimensionTypeOptions"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
/>
|
||||
</el-select>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 时间类型-->
|
||||
<el-form-item label="时间类型" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.timetype"
|
||||
placeholder="时间类型"
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 110px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in UpstreamTime"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-date-picker
|
||||
v-model="selTime"
|
||||
type="daterange"
|
||||
:picker-options="pickerOptions"
|
||||
range-separator="至"
|
||||
value-format="yyyy-MM-dd"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
style="width: 360px"
|
||||
align="right">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px" style="margin-bottom: 10px">
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-input
|
||||
v-model="queryParams.value"
|
||||
placeholder="查询值"
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 350px"
|
||||
@keyup.enter.native="handleQuery"
|
||||
>
|
||||
<el-select
|
||||
v-model="queryParams.type"
|
||||
placeholder="查询条件"
|
||||
clearable
|
||||
slot="prepend"
|
||||
@change="$forceUpdate()"
|
||||
style="width: 130px;background-color: transparent;color: black;"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in UpstreamCard"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
/>
|
||||
</el-select>
|
||||
</el-input>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
</el-form>
|
||||
|
||||
<el-table v-loading="loading" :data="cardList" @selection-change="handleSelectionChange">
|
||||
<el-table-column label="iccid" align="center" prop="iccid" v-if="columns[0].visible"/>
|
||||
<el-table-column label="资费id" align="center" prop="offeringId" v-if="columns[1].visible"/>
|
||||
<el-table-column label="资费激活名称" align="center" prop="offeringName" v-if="columns[2].visible"/>
|
||||
<el-table-column label="APN 名称" align="center" prop="apnName" v-if="columns[3].visible"/>
|
||||
<el-table-column label="总量(MB)" align="center" prop="totalAmount" v-if="columns[4].visible"/>
|
||||
<el-table-column label="使用量(MB)" align="center" prop="useAmount" v-if="columns[5].visible"/>
|
||||
<el-table-column label="剩余量(MB)" align="center" prop="remainAmount" v-if="columns[6].visible"/>
|
||||
<el-table-column label="已用百分比(%)" align="center" prop="percentage" v-if="columns[8].visible"/>
|
||||
<el-table-column label="创建时间" align="center" prop="create_date" v-if="columns[9].visible"/>
|
||||
<!-- <el-table-column label="最近修改时间" align="center" prop="upd_date" v-if="columns[10].visible"/>-->
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getListusage} from "@/api/yunze/flowcard/cardSetmeal";
|
||||
import tools from "@/utils/yunze/tools";
|
||||
|
||||
export default {
|
||||
name: "index.vue",
|
||||
data() {
|
||||
return {
|
||||
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近一个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近三个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}]
|
||||
},
|
||||
tools: tools,
|
||||
|
||||
selTime: '',//时间选择
|
||||
mainwidth: 24,//宽度
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 显示搜索条件
|
||||
showSearch: false,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 用户表格数据
|
||||
cardList: null,
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 时间数组
|
||||
UpstreamTime: [],
|
||||
// 查询条件
|
||||
UpstreamCard: [],
|
||||
//维度字段
|
||||
dimensionFieldOptions:[],
|
||||
//维度条件
|
||||
dimensionTypeOptions: [],
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
// 列信息
|
||||
columns: [
|
||||
{key: 1, label: `iccid`, visible: true},
|
||||
{key: 2, label: `资费id`, visible: true},
|
||||
{key: 3, label: `资费激活名称`, visible: true},
|
||||
{key: 4, label: `APN 名称`, visible: true},
|
||||
{key: 5, label: `总量`, visible: true},
|
||||
{key: 6, label: `使用量`, visible: true},
|
||||
{key: 7, label: `剩余量`, visible: true},
|
||||
{key: 8, label: `已用百分比`, visible: true},
|
||||
{key: 9, label: `创建时间`, visible: true},
|
||||
{key: 10, label: `最近一次修改时间`, visible: true},
|
||||
// {key: 11, label: `最近一次抄送时间`, visible: true},
|
||||
],
|
||||
// 表单校验
|
||||
rules: {}
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
|
||||
|
||||
//加载 查询条件
|
||||
if (window['UpstreamCard'] != undefined && window['UpstreamCard'] != null && window['UpstreamCard'] != '') {
|
||||
this.UpstreamCard = window['UpstreamCard'];
|
||||
} else {
|
||||
this.getDicts("yunze_Upstream_card").then(response => {
|
||||
window['UpstreamCard'] = response.data;
|
||||
this.UpstreamCard = window['UpstreamCard'];
|
||||
});
|
||||
}
|
||||
|
||||
//加载 时间赛选查询条件
|
||||
if (window['UpstreamTime'] != undefined && window['UpstreamTime'] != null && window['UpstreamTime'] != '') {
|
||||
this.UpstreamTime = window['UpstreamTime'];
|
||||
} else {
|
||||
this.getDicts("yunze_Upstream_time").then(response => {
|
||||
window['UpstreamTime'] = response.data;
|
||||
this.UpstreamTime = window['UpstreamTime'];
|
||||
});
|
||||
}
|
||||
|
||||
//加载 维度字段
|
||||
if (window['dimensionFieldOptions'] != undefined && window['dimensionFieldOptions'] != null && window['dimensionFieldOptions'] != '') {
|
||||
this.dimensionFieldOptions = window['dimensionFieldOptions'];
|
||||
} else {
|
||||
this.getDicts("yunze_dimensionField").then(response => {
|
||||
window['dimensionFieldOptions'] = response.data;
|
||||
this.dimensionFieldOptions = window['dimensionFieldOptions'];
|
||||
});
|
||||
}
|
||||
|
||||
//加载 维度条件
|
||||
if (window['dimensionTypeOptions'] != undefined && window['dimensionTypeOptions'] != null && window['dimensionTypeOptions'] != '') {
|
||||
this.dimensionTypeOptions = window['dimensionTypeOptions'];
|
||||
} else {
|
||||
this.getDicts("yunze_dimensionType").then(response => {
|
||||
window['dimensionTypeOptions'] = response.data;
|
||||
this.dimensionTypeOptions = window['dimensionTypeOptions'];
|
||||
});
|
||||
}
|
||||
|
||||
//条件查询 默认选择第一个
|
||||
this.queryParams.type = '0';
|
||||
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.jobId);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
|
||||
/*获取查询参数*/
|
||||
getParams() {
|
||||
|
||||
if (this.$refs.dept != undefined & this.$refs.dept != null & this.$refs.dept != 'undefined') {
|
||||
//console.log(this.$refs.dept.getCheckedKeys());
|
||||
if (this.$refs.dept.getCheckedKeys().length > 0) {
|
||||
this.queryParams.agent_id = this.$refs.dept.getCheckedKeys();
|
||||
}
|
||||
}
|
||||
if (tools.Is_null(this.queryParams.timetype) && this.selTime != null) {
|
||||
//console.log(this.selTime);
|
||||
this.queryParams.staTime = this.selTime[0];
|
||||
this.queryParams.endTime = this.selTime[1];
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
|
||||
/** 查询执行日志列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.getParams();
|
||||
this.queryParams.page = 1;
|
||||
//console.log(this.queryParams);
|
||||
let Pwd_Str = tools.encrypt(JSON.stringify(this.queryParams));
|
||||
//console.log(Pwd_Str);
|
||||
getListusage(Pwd_Str).then(response => {
|
||||
let jsonobj = JSON.parse(tools.Decrypt(response));
|
||||
// console.log(jsonobj);
|
||||
if (jsonobj.code == 200) {
|
||||
this.cardList = jsonobj.Data.Data;
|
||||
this.total = jsonobj.Data.Pu.rowCount;
|
||||
} else {
|
||||
this.msgError("获取数据异常,请联系管理员!");
|
||||
}
|
||||
this.loading = false;
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.page = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.queryParams = {};
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.pageSize = 10;
|
||||
this.selTime = null;
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.el-table .cell {
|
||||
line-height: 17px;
|
||||
padding-left: 10px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.my_checkbox__inner {
|
||||
border: 1px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div>
|
||||
<el-main style="padding-top: 2%;padding-left: 3%">
|
||||
<el-form ref="queryForm" label-width="60px">
|
||||
<el-row >
|
||||
<el-col :span="24">
|
||||
<el-divider content-position="center" style="width: 80%;">msisdn/iccid/imsi</el-divider>
|
||||
<el-input type="textarea" v-model="queryForm.cardNo" placeholder="多个号码查询,请换行"></el-input>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row >
|
||||
<el-col :span="24">
|
||||
<el-button type="primary" style="width: 100%;margin-top: 20px;" readonly="submitFileFormBtn" @click="submitFileForm">查 询</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row v-if="dListShow" >
|
||||
<el-col :span="24">
|
||||
<el-divider content-position="center">未找到匹对数据</el-divider>
|
||||
<el-input type="textarea" v-model="dListStr" placeholder=""></el-input>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row v-if="rFromShow" >
|
||||
<el-col :span="24">
|
||||
<el-button type="success" style="width: 100%;margin-top: 20px;" @click="cardCopy">复 制</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-divider v-if="rFromShow" content-position="center">已找到数据</el-divider>
|
||||
<el-row v-if="rFromShow" v-for="item in rFrom" >
|
||||
<el-col :span="24">
|
||||
<el-form-item style="line-height: 20px;" label="设备号:">
|
||||
<el-input :value="item.imei"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="iccid:">
|
||||
<el-input :value="item.iccid"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="msisdn:">
|
||||
<el-input :value="item.msisdn"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="imsi:">
|
||||
<el-input :value="item.imsi"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态:">
|
||||
<el-input :value="item.dict_label"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="激活时间:">
|
||||
<el-input :value="item.activate_date"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="到期时间:">
|
||||
<el-input :value="item.due_expire_time"/>
|
||||
</el-form-item>
|
||||
<el-divider/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</el-form>
|
||||
</el-main>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import tools from "@/utils/yunze/tools";
|
||||
import { selCardOpen} from "@/api/yunze/flowcard/card/card";
|
||||
|
||||
|
||||
export default {
|
||||
name: "cardInfoSel",
|
||||
data() {
|
||||
return {
|
||||
submitFileFormBtn:false,//确认按钮
|
||||
// 表单参数
|
||||
queryForm: {
|
||||
cardNo:'',
|
||||
},
|
||||
rFrom:[
|
||||
|
||||
],
|
||||
rFromShow:false,//返回正确 显示
|
||||
dListShow:false,//返回错误 显示
|
||||
dListStr:'',
|
||||
dList:[],//未找到卡号
|
||||
CopyText:'',//复制内容
|
||||
|
||||
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
console.log("LogOut");
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
//提交
|
||||
submitFileForm() {
|
||||
let _this = this;
|
||||
this.dListStr = '';
|
||||
this.rFrom = [];
|
||||
this.dList = [];
|
||||
this.rFromShow = false;
|
||||
this.dListShow = false;
|
||||
this.CopyText = '';
|
||||
if(tools.Is_null(_this.queryForm.cardNo)){
|
||||
let cardArr = tools.textareaGet(_this.queryForm.cardNo);
|
||||
const qc = [...new Set(cardArr)];
|
||||
let repeatCount = cardArr.length>qc.length?tools.NumberSub(cardArr.length,qc.length):0;
|
||||
if(repeatCount>0){
|
||||
this.msgError("已为您赛选出重复号码 [ "+repeatCount+" ] 条!");
|
||||
}
|
||||
if(qc!=null){
|
||||
this.submitFileFormBtn = true;
|
||||
let Pwd_Str = tools.encrypt(JSON.stringify({'cardArr':qc}));
|
||||
selCardOpen(Pwd_Str).then(response => {
|
||||
let jsonobj = JSON.parse(tools.Decrypt(response));
|
||||
if(jsonobj.code=='200'){
|
||||
//console.log(jsonobj);
|
||||
let bool = jsonobj.Data.bool;
|
||||
let Message = jsonobj.Data.Message;
|
||||
let rFrom = jsonobj.Data.rList;
|
||||
let dList = jsonobj.Data.dList;
|
||||
|
||||
if(bool){
|
||||
this.rFrom = rFrom;
|
||||
this.dList = dList;
|
||||
if(rFrom!=null && rFrom.length>0){
|
||||
this.rFromShow = true; //返回正确 显示
|
||||
for (let i = 0; i < rFrom.length; i++) {
|
||||
let obj = rFrom[i];
|
||||
// console.log(obj);
|
||||
let objText = '';
|
||||
let imei = tools.Is_null(obj.imei)?obj.imei:'';
|
||||
let iccid = tools.Is_null(obj.iccid)?obj.iccid:'';
|
||||
let msisdn = tools.Is_null(obj.msisdn)?obj.msisdn:'';
|
||||
let imsi = tools.Is_null(obj.imsi)?obj.imsi:'';
|
||||
let dict_label = tools.Is_null(obj.dict_label)?obj.dict_label:'';
|
||||
let activate_date = tools.Is_null(obj.activate_date)?obj.activate_date:'';
|
||||
let due_expire_time = tools.Is_null(obj.due_expire_time)?obj.due_expire_time:'';
|
||||
|
||||
objText +="设备号:"+imei+"\n";
|
||||
objText +="iccid:"+iccid+"\n";
|
||||
objText +="msisdn:"+msisdn+"\n";
|
||||
objText +="imsi:"+imsi+"\n";
|
||||
objText +="状态:"+dict_label+"\n";
|
||||
objText +="激活时间:"+activate_date+"\n";
|
||||
objText +="到期时间:"+due_expire_time+"\n";
|
||||
objText+="\n";
|
||||
//console.log(objText);
|
||||
this.CopyText+= objText;
|
||||
}
|
||||
}
|
||||
if(dList!=null && dList.length>0){
|
||||
for (let i = 0; i < dList.length; i++) {
|
||||
this.dListStr +=dList[i]+"\n";
|
||||
}
|
||||
this.dListShow = true; //返回错误 显示
|
||||
}
|
||||
}else{
|
||||
this.msgError(Message);
|
||||
}
|
||||
}else{
|
||||
this.msgError("查询失败!");
|
||||
}
|
||||
this.submitFileFormBtn = false;
|
||||
}
|
||||
);
|
||||
}else{
|
||||
this.msgError("请填写需要查询的卡号!");
|
||||
}
|
||||
}else{
|
||||
this.msgError("请填写需要查询的卡号!");
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
cardCopy(){
|
||||
let _this = this;
|
||||
tools.copyThat(_this.CopyText,_this);
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style >
|
||||
.el-divider--horizontal{
|
||||
margin: 10px 0;
|
||||
}
|
||||
.el-form-item {
|
||||
margin-bottom: 5px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.el-form-item__label{
|
||||
font-size: 12px!important;
|
||||
padding: 0 6px 0 0!important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user