2024-03-25 消息菜单位置修改.sql 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. USE yami_bbc;
  2. # 216为'客服', 217为'消息'
  3. UPDATE tz_shop_menu
  4. SET parent_id = 216
  5. WHERE
  6. menu_id = 217;
  7. # 新增确认收货30天自动好评定时任务
  8. insert into `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
  9. `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
  10. `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`,
  11. `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`,
  12. `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`)
  13. values
  14. (51,2, '确认收货30天自动好评', '2024-03-06 10:07:30', '2024-03-06 10:07:30', 'admin', '', 'CRON',
  15. '0 0 * * * ?', 'DO_NOTHING', 'FIRST', 'autoProdGoodComm', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
  16. '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 1, 0, 0);
  17. # 商品拓展信息新增字段
  18. ALTER TABLE `tz_prod_extension`
  19. ADD COLUMN `comm_num` int(0) NOT NULL DEFAULT 0 COMMENT '评论数',
  20. ADD COLUMN `actual_stock` int(0) NOT NULL DEFAULT 0 COMMENT '实际库存';
  21. # 新增同步商品库存和销量定时任务
  22. insert into `xxl_job_info`(`id`, `job_group`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`,
  23. `schedule_type`, `schedule_conf`, `misfire_strategy`, `executor_route_strategy`,
  24. `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`,
  25. `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`,
  26. `child_jobid`, `trigger_status`, `trigger_last_time`, `trigger_next_time`)
  27. values
  28. (52,2, '同步Es商品信息到数据库(es关闭后需执行一次)', '2024-03-15 10:07:30', '2024-03-15 10:07:30', 'admin', '', 'CRON',
  29. '0 0/30 * * * ?', 'DO_NOTHING', 'FIRST', 'syncEsProdInfoToDb', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN',
  30. '', 'GLUE代码初始化', '2023-12-25 10:07:30', '', 0, 0, 0);