Blame view

doc/2023_update.sql 1.17 KB
eee77f4e   姜超   feature(*): 负数排名设置
1
2
  -- 202337
  ALTER TABLE `fw_morax`.`eval_group_reward_ladders`
7d59a85e   姜超   feature(*): redis...
3
4
5
6
      ADD COLUMN `rank_order_type` tinyint(4) NULL DEFAULT 1 COMMENT '排名顺序类型 1:正  2:负' AFTER `upper`;
  
  CREATE TABLE `eval_group_reward_rank_log` (
    `id` bigint(20) NOT NULL AUTO_INCREMENT,
9161579f   姜超   feature(*): 排名返回名称
7
    `name` varchar(512) NOT NULL COMMENT '名称',
7d59a85e   姜超   feature(*): redis...
8
9
10
11
12
13
14
    `pool_id` bigint(20) DEFAULT NULL COMMENT '人员id 、门店id',
    `scope_type` tinyint(4) NOT NULL COMMENT '考评范围; 1:门店考评 2:人员考评',
    `refer_id` bigint(20) DEFAULT NULL COMMENT '考评奖惩 前置条件 配置id',
    `target_type` tinyint(4) DEFAULT NULL COMMENT '1:参数 2:前置条件',
    `value` decimal(18,4) DEFAULT NULL COMMENT '原始值',
    `reach_value` decimal(18,4) DEFAULT NULL COMMENT '达成目标',
    `rank` int(10) DEFAULT NULL COMMENT '排名',
9161579f   姜超   feature(*): 排名返回名称
15
    `hit` tinyint(1) DEFAULT NULL COMMENT '是否命中',
7d59a85e   姜超   feature(*): redis...
16
17
18
19
20
21
22
    `data_date` date NOT NULL COMMENT '数据日期',
    `group_id` bigint(20) NOT NULL COMMENT '集团',
    `create_time` datetime DEFAULT NULL,
    `update_time` datetime DEFAULT NULL,
    `yn` tinyint(1) DEFAULT '1',
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='考评指标达成目标记录';