db.sql 2.4 KB

123456789101112131415161718192021222324252627282930
  1. CREATE TABLE `c_schedule_task` (
  2. `id` varchar(36) NOT NULL COMMENT '主键ID',
  3. `task_name` varchar(255) DEFAULT NULL COMMENT '任务名称',
  4. `cron` varchar(255) DEFAULT NULL COMMENT '任务参数',
  5. `class_name` varchar(255) DEFAULT NULL COMMENT '完整类名',
  6. `method_name` varchar(255) DEFAULT NULL COMMENT '方法名',
  7. `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  8. PRIMARY KEY (`id`)
  9. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='yideb-audit-statistic,定时任务动态配置表';
  10. CREATE TABLE `c_statistic_config` (
  11. `id` varchar(36) NOT NULL COMMENT '主键ID',
  12. `business_type` int(5) DEFAULT NULL COMMENT '业务类型Code',
  13. `value` int(5) DEFAULT NULL COMMENT '业务数据配置',
  14. `status` int(1) DEFAULT NULL COMMENT '是否生效',
  15. `remark` varchar(255) DEFAULT NULL COMMENT '备注',
  16. PRIMARY KEY (`id`)
  17. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='yideb-audit-statistic,业务配置表';
  18. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('1', 1001, 5, 1, '药店注册');
  19. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('10', 1010, 30, 1, '药店处方量Top数据量');
  20. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('11', 1011, 5, 1, '地图');
  21. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('2', 1002, 5, 1, '处方总量');
  22. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('3', 1003, 5, 1, '发生业务医生');
  23. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('4', 1004, 5, 1, '发生业务药师');
  24. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('5', 1005, 5, 1, '日新增药店趋势');
  25. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('6', 1006, 5, 1, '日处方趋势统计');
  26. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('7', 1007, 1, 1, '处方药销量Top');
  27. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('8', 1008, 5, 1, '药店处方量Top');
  28. INSERT INTO `c_statistic_config`(`id`, `business_type`, `value`, `status`, `remark`) VALUES ('9', 1009, 30, 1, '处方药销量Top数据量');