|
@@ -3900,7 +3900,7 @@ insertSysConfigSeed("gift_membership_pay_price", "198000", "送会员商品达
|
|
|
jdbcTemplate.execute("CREATE TABLE IF NOT EXISTS butler_performance ("
|
|
jdbcTemplate.execute("CREATE TABLE IF NOT EXISTS butler_performance ("
|
|
|
+ "id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '主键ID', "
|
|
+ "id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '主键ID', "
|
|
|
+ "butler_user_id BIGINT NOT NULL COMMENT '管家用户ID', "
|
|
+ "butler_user_id BIGINT NOT NULL COMMENT '管家用户ID', "
|
|
|
- + "year_month VARCHAR(7) NOT NULL COMMENT '绩效周期(yyyy-MM)', "
|
|
|
|
|
|
|
+ + "`year_month` VARCHAR(7) NOT NULL COMMENT '绩效周期(yyyy-MM)', "
|
|
|
+ "inspected_count INT DEFAULT 0 COMMENT '质检单数', "
|
|
+ "inspected_count INT DEFAULT 0 COMMENT '质检单数', "
|
|
|
+ "pass_rate DECIMAL(5,2) DEFAULT 0 COMMENT '质检通过率(%)', "
|
|
+ "pass_rate DECIMAL(5,2) DEFAULT 0 COMMENT '质检通过率(%)', "
|
|
|
+ "satisfaction_count INT DEFAULT 0 COMMENT '满意度评分单数', "
|
|
+ "satisfaction_count INT DEFAULT 0 COMMENT '满意度评分单数', "
|
|
@@ -3909,8 +3909,8 @@ insertSysConfigSeed("gift_membership_pay_price", "198000", "送会员商品达
|
|
|
+ "performance_score DECIMAL(5,2) DEFAULT 0 COMMENT '绩效综合分(0-100)', "
|
|
+ "performance_score DECIMAL(5,2) DEFAULT 0 COMMENT '绩效综合分(0-100)', "
|
|
|
+ "created_at DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', "
|
|
+ "created_at DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', "
|
|
|
+ "updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', "
|
|
+ "updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', "
|
|
|
- + "UNIQUE KEY uk_butler_month (butler_user_id, year_month), "
|
|
|
|
|
- + "INDEX idx_year_month (year_month)"
|
|
|
|
|
|
|
+ + "UNIQUE KEY uk_butler_month (butler_user_id, `year_month`), "
|
|
|
|
|
+ + "INDEX idx_year_month (`year_month`)"
|
|
|
+ ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='真人管家绩效看板(SC-H-07)'");
|
|
+ ") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='真人管家绩效看板(SC-H-07)'");
|
|
|
log.info("迁移480: butler_performance 表已就绪");
|
|
log.info("迁移480: butler_performance 表已就绪");
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|