-- MySQL dump 10.13  Distrib 8.0.46, for Linux (x86_64)
--
-- Host: localhost    Database: cma
-- ------------------------------------------------------
-- Server version	8.0.46-0ubuntu0.24.04.3

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `okr_templates`
--

DROP TABLE IF EXISTS `okr_templates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `okr_templates` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'O名称',
  `description` text COLLATE utf8mb4_unicode_ci COMMENT 'O描述',
  `dimension` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'finance/customer/process/learning',
  `layer` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'level1/level2/level3',
  `industry_tag` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '行业标签',
  `preset_krs` json NOT NULL COMMENT '预设关键结果列表',
  `source` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'system/user/industry_pack',
  `use_count` int DEFAULT NULL COMMENT '使用次数',
  `sort_order` int DEFAULT NULL,
  `is_active` int DEFAULT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `ix_okr_templates_id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `okr_templates`
--

LOCK TABLES `okr_templates` WRITE;
/*!40000 ALTER TABLE `okr_templates` DISABLE KEYS */;
INSERT INTO `okr_templates` VALUES (1,'扩大收入规模','通过新市场开拓、新产品线、新客户群实现收入增长','finance','level1','general','[{\"name\": \"营收增长率≥20%\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"≥20%\"}, {\"name\": \"新客户收入占比≥15%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"≥15%\"}, {\"name\": \"客单价提升≥10%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"≥10%\"}]','system',1,1,1,'2026-07-21 17:22:20','2026-08-17 09:53:26'),(2,'优化成本结构','通过成本降低和费用管控提升盈利能力','finance','level1','general','[{\"name\": \"毛利率提升≥3%\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"≥3%\"}, {\"name\": \"管理费用率≤15%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"≤15%\"}, {\"name\": \"销售费用率≤10%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"≤10%\"}]','system',0,2,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(3,'提升资产效率','提高资产周转速度，释放沉淀资金','finance','level1','general','[{\"name\": \"库存周转天数≤45天\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≤45天\"}, {\"name\": \"应收账款周转天数≤45天\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≤45天\"}, {\"name\": \"总资产周转率≥1.0\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥1.0\"}]','system',0,3,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(4,'保障现金流安全','确保经营现金流为正，防范流动性风险','finance','level1','general','[{\"name\": \"现金比率≥20%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥20%\"}, {\"name\": \"经营现金流为正\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"为正\"}, {\"name\": \"自由现金流≥0\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥0\"}]','system',0,4,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(5,'产品领先','提供行业最优的产品质量和功能','customer','level1','general','[{\"name\": \"产品合格率≥99%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥99%\"}, {\"name\": \"NPS净推荐值≥60\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥60\"}, {\"name\": \"市场份额提升≥2%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥2%\"}]','system',0,5,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(6,'客户亲密','建立深度客户关系，提升客户粘性','customer','level1','general','[{\"name\": \"客户满意度≥90%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥90%\"}, {\"name\": \"大客户留存率≥95%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥95%\"}, {\"name\": \"服务响应时间≤2小时\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≤2小时\"}]','system',0,6,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(7,'卓越运营','以最优的价格和最高的便利性服务客户','customer','level1','general','[{\"name\": \"价格竞争力行业TOP3\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"TOP3\"}, {\"name\": \"按时交付率≥98%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥98%\"}, {\"name\": \"客户投诉率≤1%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≤1%\"}]','system',0,7,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(8,'运营高效顺畅','优化供应链和交付流程，提升运营效率','process','level1','general','[{\"name\": \"交付及时率≥95%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥95%\"}, {\"name\": \"库存周转≤45天\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≤45天\"}, {\"name\": \"流程自动化率≥30%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥30%\"}]','system',0,8,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(9,'客户管理有序','建立标准化客户管理流程','process','level1','general','[{\"name\": \"新客获取成本下降≥10%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥10%\"}, {\"name\": \"客户流失率≤5%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≤5%\"}, {\"name\": \"客户线索转化率≥20%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥20%\"}]','system',0,9,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(10,'创新驱动增长','通过产品和服务创新驱动业务增长','process','level1','general','[{\"name\": \"新产品收入占比≥15%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥15%\"}, {\"name\": \"研发投入占比≥5%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥5%\"}, {\"name\": \"年度创新提案≥12项\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥12项\"}]','system',0,10,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(11,'合规稳健运营','确保合规运营，防范法律和税务风险','process','level1','general','[{\"name\": \"合规事件0起\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"0起\"}, {\"name\": \"审计通过率100%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"100%\"}, {\"name\": \"税务申报及时率100%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"100%\"}]','system',0,11,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(12,'团队能力升级','提升员工核心技能和关键岗位胜任度','learning','level1','general','[{\"name\": \"关键岗位培训完成率100%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"100%\"}, {\"name\": \"认证持有率≥80%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥80%\"}, {\"name\": \"人均培训时长≥40小时/年\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥40小时/年\"}]','system',0,12,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(13,'数字系统赋能','通过数字化系统提升工作效率','learning','level1','general','[{\"name\": \"系统覆盖率≥90%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥90%\"}, {\"name\": \"数据自动化率≥70%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥70%\"}, {\"name\": \"报表自动生成率≥80%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥80%\"}]','system',0,13,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(14,'组织协同对齐','建立高绩效文化和战略共识','learning','level1','general','[{\"name\": \"员工满意度≥85%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥85%\"}, {\"name\": \"战略认知度≥80%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥80%\"}, {\"name\": \"跨部门协作评分≥4分\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥4分\"}]','system',0,14,1,'2026-07-21 17:22:20','2026-07-21 17:22:20'),(15,'优化渠补结构','优化渠道补贴结构，提升渠道投入产出比','finance','level2','trading','[{\"name\": \"渠补率≤75%\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"≤75%\"}, {\"name\": \"渠补成本下降≥20%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"≥20%\"}, {\"name\": \"渠道综合利润率提升≥5%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"≥5%\"}]','industry_pack',0,101,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(16,'加速应收周转','加速应收账款周转，改善现金流健康度','finance','level2','trading','[{\"name\": \"应收账款周转天数≤30天\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"≤30天\"}, {\"name\": \"逾期账款占比≤5%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"≤5%\"}, {\"name\": \"回款及时率≥95%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"≥95%\"}]','industry_pack',0,102,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(17,'建立渠道分级体系','建立科学渠道分级管理体系，差异化赋能','customer','level2','trading','[{\"name\": \"渠道分级覆盖率100%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"100%\"}, {\"name\": \"A级渠道占比≥30%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥30%\"}, {\"name\": \"分级规则满意度≥85%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥85%\"}]','industry_pack',0,103,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(18,'提升核心渠道忠诚度','提升核心渠道伙伴忠诚度和合作粘性','customer','level2','trading','[{\"name\": \"核心渠道流失率≤3%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≤3%\"}, {\"name\": \"核心渠道续约率≥90%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥90%\"}, {\"name\": \"渠道满意度评分≥4.5分\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥4.5分\"}]','industry_pack',0,104,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(19,'建立渠补谈判SOP','建立标准化渠补谈判流程与SOP，减少灰色地带','process','level2','trading','[{\"name\": \"渠补谈判SOP覆盖率100%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"100%\"}, {\"name\": \"谈判周期缩短≥30%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥30%\"}, {\"name\": \"渠补争议事件≤3起/季\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≤3起/季\"}]','industry_pack',0,105,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(20,'进销存系统全覆盖','实现进销存系统全渠道覆盖，数据实时可视','process','level2','trading','[{\"name\": \"进销存系统覆盖率≥90%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥90%\"}, {\"name\": \"库存数据实时更新率100%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"100%\"}, {\"name\": \"进销存报表自动生成率≥80%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥80%\"}]','industry_pack',0,106,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(21,'渠道赋能培训','系统化渠道伙伴赋能培训，提升渠道综合能力','learning','level2','trading','[{\"name\": \"渠道培训覆盖率≥80%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥80%\"}, {\"name\": \"培训考核通过率≥85%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥85%\"}, {\"name\": \"培训后渠道业绩提升≥10%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥10%\"}]','industry_pack',0,107,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(22,'提升人均产值','提升技术团队人均产值和项目利润率','finance','level2','it_service','[{\"name\": \"人均产值≥30万/季\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"≥30万/季\"}, {\"name\": \"项目毛利率≥25%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"≥25%\"}, {\"name\": \"人效同比增长≥15%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"≥15%\"}]','industry_pack',0,201,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(23,'提高NPS净推荐值','提高客户NPS净推荐值，建立良好口碑','customer','level2','it_service','[{\"name\": \"NPS得分≥70\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥70\"}, {\"name\": \"客户满意度评分≥4.5分\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥4.5分\"}, {\"name\": \"客户推荐率≥40%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥40%\"}]','industry_pack',0,202,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(24,'交付标准化','实现项目交付流程标准化和可复制','process','level2','it_service','[{\"name\": \"交付SOP覆盖率100%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"100%\"}, {\"name\": \"项目按时交付率≥90%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥90%\"}, {\"name\": \"项目验收一次通过率≥85%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥85%\"}]','industry_pack',0,203,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(25,'知识管理体系化','建设体系化知识管理平台，沉淀项目经验','learning','level2','it_service','[{\"name\": \"知识库文章数量≥500篇\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥500篇\"}, {\"name\": \"知识复用率≥40%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥40%\"}, {\"name\": \"知识贡献覆盖率≥80%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥80%\"}]','industry_pack',0,204,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(26,'工程师认证体系','建立工程师技术认证与职业成长体系','learning','level2','it_service','[{\"name\": \"认证覆盖率≥60%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥60%\"}, {\"name\": \"高级工程师占比≥30%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥30%\"}, {\"name\": \"认证通过率≥80%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥80%\"}]','industry_pack',0,205,1,'2026-07-21 17:28:32','2026-07-21 17:28:32'),(27,'提升产能利用率','优化排产与设备管理，提升产能利用率','process','level2','manufacturing','[{\"name\": \"产能利用率≥85%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥85%\"}, {\"name\": \"设备停机时间下降≥20%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥20%\"}, {\"name\": \"OEE综合效率≥75%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥75%\"}]','industry_pack',0,301,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(28,'降低生产成本','通过精益生产与供应链优化降低制造成本','finance','level2','manufacturing','[{\"name\": \"单位制造成本下降≥10%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥10%\"}, {\"name\": \"原材料损耗率≤2%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≤2%\"}, {\"name\": \"采购成本下降≥5%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥5%\"}]','industry_pack',0,302,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(29,'提升产品一次合格率','强化质量管控，降低不良品率','process','level2','manufacturing','[{\"name\": \"一次合格率≥98%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥98%\"}, {\"name\": \"客户投诉率下降≥30%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥30%\"}, {\"name\": \"质量返工成本下降≥20%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥20%\"}]','industry_pack',0,303,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(30,'缩短交付周期','优化生产计划与供应链协同，缩短订单交付周期','customer','level2','manufacturing','[{\"name\": \"订单交付周期缩短≥15%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥15%\"}, {\"name\": \"准时交付率≥95%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥95%\"}, {\"name\": \"在制品库存下降≥20%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"≥20%\"}]','industry_pack',0,304,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(31,'设备智能化升级','推进设备数字化改造与智能制造','learning','level2','manufacturing','[{\"name\": \"核心设备联网率≥70%\", \"weight\": 34, \"sort_order\": 1, \"target_value\": \"≥70%\"}, {\"name\": \"自动化覆盖率≥50%\", \"weight\": 33, \"sort_order\": 2, \"target_value\": \"≥50%\"}, {\"name\": \"数据采集点覆盖关键工序100%\", \"weight\": 33, \"sort_order\": 3, \"target_value\": \"100%\"}]','industry_pack',0,305,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(32,'安全生产零事故','完善安全管理体系，实现安全生产零事故','learning','level2','manufacturing','[{\"name\": \"重大安全事故0起\", \"weight\": 40, \"sort_order\": 1, \"target_value\": \"0起\"}, {\"name\": \"安全隐患整改率100%\", \"weight\": 30, \"sort_order\": 2, \"target_value\": \"100%\"}, {\"name\": \"安全培训覆盖率100%\", \"weight\": 30, \"sort_order\": 3, \"target_value\": \"100%\"}]','industry_pack',0,306,1,'2026-08-11 00:11:04','2026-08-11 00:11:04'),(33,'扩大收入规模','通过新市场开拓、新产品线、新客户群实现收入增长','finance','level3','general','[{\"name\": \"营收增长率≥20%\", \"weight\": 40, \"target_value\": \"≥20%\"}, {\"name\": \"新客户收入占比≥15%\", \"weight\": 30, \"target_value\": \"≥15%\"}, {\"name\": \"客单价提升≥10%\", \"weight\": 30, \"target_value\": \"≥10%\"}]','user',0,0,1,'2026-08-21 16:22:29','2026-08-21 16:22:29');
/*!40000 ALTER TABLE `okr_templates` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2026-08-21 16:34:56
