常量

12144

常量总览

_constant结构

  1. CREATE TABLE `_constant` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `constantKey` varchar(255) DEFAULT NULL,
  4. `constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',
  5. `desc` varchar(255) DEFAULT NULL COMMENT '描述',
  6. `constantValue` text COMMENT '常量内容; object, array',
  7. `operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
  8. `operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
  9. `operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
  10. `operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
  11. PRIMARY KEY (`id`) USING BTREE
  12. ) ENGINE = InnoDB AUTO_INCREMENT = 23 DEFAULT CHARSET = utf8mb4 ROW_FORMAT = DYNAMIC COMMENT = '常量表; 软删除未启用;'

_constant 表数据

人员

  • constantKey:user

  • constantType:array

  1. [
  2. {
  3. "value": "王语嫣",
  4. "text": "王语嫣"
  5. },
  6. {
  7. "value": "张无忌",
  8. "text": "张无忌"
  9. }
  10. ]

线索来源

  • constantKey:leadSource

  • constantType:array

  1. [
  2. {
  3. "value": "促销",
  4. "text": "促销"
  5. },
  6. {
  7. "value": "搜索引擎",
  8. "text": "搜索引擎"
  9. },
  10. {
  11. "value": "广告",
  12. "text": "广告"
  13. }
  14. ]

客户行业

  • constantKey:customerIndustry

  • constantType:array

  1. [
  2. {
  3. "value": "金融",
  4. "text": "金融"
  5. },
  6. {
  7. "value": "商业",
  8. "text": "商业"
  9. }
  10. ]

客户级别

  • constantKey:customerLevel

  • constantType:array

  1. [
  2. {
  3. "value": "普通客户",
  4. "text": "普通客户"
  5. },
  6. {
  7. "value": "重要客户",
  8. "text": "重要客户"
  9. }
  10. ]

放入线索池的理由

  • constantKey:putIntoLeadSeaReason

  • constantType:array

  1. [
  2. {
  3. "value": "联系不上客户",
  4. "text": "联系不上客户"
  5. },
  6. {
  7. "value": "客户暂无需求",
  8. "text": "客户暂无需求"
  9. }
  10. ]

跟进方式

  • constantKey:followUpType

  • constantType:array

  1. [
  2. {
  3. "value": "打电话",
  4. "text": "打电话"
  5. },
  6. {
  7. "value": "见面拜访",
  8. "text": "见面拜访"
  9. }
  10. ]

客户来源

  • constantKey:customerSource

  • constantType:array

  1. [
  2. {
  3. "value": "促销",
  4. "text": "促销"
  5. },
  6. {
  7. "value": "搜索引擎",
  8. "text": "搜索引擎"
  9. },
  10. {
  11. "value": "广告",
  12. "text": "广告"
  13. }
  14. ]

放入客户公海的理由

  • constantKey:putIntoCustomerSeaReason

  • constantType:array

  1. [
  2. {
  3. "value": "联系不上客户",
  4. "text": "联系不上客户"
  5. },
  6. {
  7. "value": "客户暂无需求",
  8. "text": "客户暂无需求"
  9. }
  10. ]

性别

  • constantKey:gender

  • constantType:array

  1. [
  2. {
  3. "value": "女",
  4. "text": "女"
  5. },
  6. {
  7. "value": "男",
  8. "text": "男"
  9. }
  10. ]

客户

  • constantKey:customer

  • constantType:array

  1. [
  2. {
  3. "value": "先声药业",
  4. "text": "先声药业"
  5. },
  6. {
  7. "value": "辉瑞药业",
  8. "text": "辉瑞药业"
  9. }
  10. ]

商机状态组

  • constantKey:businessType

  • constantType:array

  1. [
  2. {
  3. "value": "默认状态组",
  4. "text": "默认状态组"
  5. }
  6. ]

合同类型

  • constantKey:contractType

  • constantType:array

  1. [
  2. {
  3. "value": "直销合同",
  4. "text": "直销合同"
  5. },
  6. {
  7. "value": "服务合同",
  8. "text": "服务合同"
  9. }
  10. ]

合同

  • constantKey:contract

  • constantType:array

  1. [
  2. {
  3. "value": "1月原料采购",
  4. "text": "1月原料采购"
  5. },
  6. {
  7. "value": "2月原料采购",
  8. "text": "2月原料采购"
  9. }
  10. ]

回款方式

  • constantKey:receivablesMethod

  • constantType:array

  1. [
  2. {
  3. "value": "支票",
  4. "text": "支票"
  5. },
  6. {
  7. "value": "现金",
  8. "text": "现金"
  9. }
  10. ]

开票类型

  • constantKey:invoiceType

  • constantType:array

  1. [
  2. {
  3. "value": "增值税专用发票",
  4. "text": "增值税专用发票"
  5. },
  6. {
  7. "value": "增值税普通发票",
  8. "text": "增值税普通发票"
  9. }
  10. ]

回访形式

  • constantKey:visitMethod

  • constantType:array

  1. [
  2. {
  3. "value": "打电话",
  4. "text": "打电话"
  5. },
  6. {
  7. "value": "见面拜访",
  8. "text": "见面拜访"
  9. }
  10. ]

客户满意度

  • constantKey:satisficing

  • constantType:array

  1. [
  2. {
  3. "value": "很满意",
  4. "text": "很满意"
  5. },
  6. {
  7. "value": "一般",
  8. "text": "一般"
  9. }
  10. ]

产品类型

  • constantKey:productType

  • constantType:array

  1. [
  2. {
  3. "value": "默认",
  4. "text": "默认"
  5. }
  6. ]

活动关联对象

  • constantKey:targetAudience

  • constantType:array

  1. [
  2. {
  3. "value": "客户",
  4. "text": "客户"
  5. },
  6. {
  7. "value": "线索",
  8. "text": "线索"
  9. }
  10. ]

活动类型

  • constantKey:marketingType

  • constantType:array

  1. [
  2. {
  3. "value": "广告",
  4. "text": "广告"
  5. },
  6. {
  7. "value": "营销",
  8. "text": "营销"
  9. }
  10. ]

是否

  • constantKey:yesOrNo

  • constantType:array

  1. [
  2. {
  3. "value": "是",
  4. "text": "是"
  5. },
  6. {
  7. "value": "否",
  8. "text": "否"
  9. }
  10. ]

线索池

  • constantKey:leadSea

  • constantType:array

  1. [
  2. {
  3. "value": "线索池A",
  4. "text": "线索池A"
  5. },
  6. {
  7. "value": "线索池B",
  8. "text": "线索池B"
  9. }
  10. ]

_constant语句

  1. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (1, 'user', 'array', '人员', '[{"value": "王语嫣", "text": "王语嫣"}, {"value": "张无忌", "text": "张无忌"}]', 'insert', NULL, NULL, NULL);
  2. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (2, 'leadSource', 'array', '线索来源', '[{"value": "促销", "text": "促销"}, {"value": "搜索引擎", "text": "搜索引擎"}, {"value": "广告", "text": "广告"}]', 'insert', NULL, NULL, NULL);
  3. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (3, 'customerIndustry', 'array', '客户行业', '[{"value": "金融", "text": "金融"}, {"value": "商业", "text": "商业"}]', 'insert', NULL, NULL, NULL);
  4. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (4, 'customerLevel', 'array', '客户级别', '[{"value": "普通客户", "text": "普通客户"}, {"value": "重要客户", "text": "重要客户"}]', 'insert', NULL, NULL, NULL);
  5. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (5, 'putIntoLeadSeaReason', 'array', '放入线索池的理由', '[{"value": "联系不上客户", "text": "联系不上客户"}, {"value": "客户暂无需求", "text": "客户暂无需求"}]', 'insert', NULL, NULL, NULL);
  6. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'followUpType', 'array', '跟进方式', '[{"value": "打电话", "text": "打电话"}, {"value": "见面拜访", "text": "见面拜访"}]', 'insert', NULL, NULL, NULL);
  7. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (7, 'customerSource', 'array', '客户来源', '[{"value": "促销", "text": "促销"}, {"value": "搜索引擎", "text": "搜索引擎"}, {"value": "广告", "text": "广告"}]', 'insert', NULL, NULL, NULL);
  8. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'putIntoCustomerSeaReason', 'array', '放入客户公海的理由', '[{"value": "联系不上客户", "text": "联系不上客户"}, {"value": "客户暂无需求", "text": "客户暂无需求"}]', 'insert', NULL, NULL, NULL);
  9. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'gender', 'array', '性别', '[{"value": "女", "text": "女"}, {"value": "男", "text": "男"}]', 'insert', NULL, NULL, NULL);
  10. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (10, 'customer', 'array', '客户', '[{"value": "先声药业", "text": "先声药业"}, {"value": "辉瑞药业", "text": "辉瑞药业"}]', 'insert', NULL, NULL, NULL);
  11. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (11, 'businessType', 'array', '商机状态组', '[{"value": "默认状态组", "text": "默认状态组"}]', 'insert', NULL, NULL, NULL);
  12. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (12, 'contractType', 'array', '合同类型', '[{"value": "直销合同", "text": "直销合同"}, {"value": "服务合同", "text": "服务合同"}]', 'insert', NULL, NULL, NULL);
  13. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (13, 'contract', 'array', '合同', '[{"value": "1月原料采购", "text": "1月原料采购"}, {"value": "2月原料采购", "text": "2月原料采购"}]', 'insert', NULL, NULL, NULL);
  14. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (14, 'receivablesMethod', 'array', '回款方式', '[{"value": "支票", "text": "支票"}, {"value": "现金", "text": "现金"}]', 'insert', NULL, NULL, NULL);
  15. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (15, 'invoiceType', 'array', '开票类型', '[{"value": "增值税专用发票", "text": "增值税专用发票"}, {"value": "增值税普通发票", "text": "增值税普通发票"}]', 'insert', NULL, NULL, NULL);
  16. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (16, 'visitMethod', 'array', '回访形式', '[{"value": "打电话", "text": "打电话"}, {"value": "见面拜访", "text": "见面拜访"}]', 'insert', NULL, NULL, NULL);
  17. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (17, 'satisficing', 'array', '客户满意度', '[{"value": "很满意", "text": "很满意"}, {"value": "一般", "text": "一般"}]', 'insert', NULL, NULL, NULL);
  18. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (18, 'productType', 'array', '产品类型', '[{"value": "默认", "text": "默认"}]', 'insert', NULL, NULL, NULL);
  19. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (19, 'targetAudience', 'array', '活动关联对象', '[{"value": "客户", "text": "客户"}, {"value": "线索", "text": "线索"}]', 'insert', NULL, NULL, NULL);
  20. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (20, 'marketingType', 'array', '活动类型', '[{"value": "广告", "text": "广告"}, {"value": "营销", "text": "营销"}]', 'insert', NULL, NULL, NULL);
  21. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (21, 'yesOrNo', 'array', '是否', '[{"value": "是", "text": "是"}, {"value": "否", "text": "否"}]', 'insert', NULL, NULL, NULL);
  22. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (22, 'leadSea', 'array', '线索池', '[{"value": "线索池A", "text": "线索池A"}, {"value": "线索池B", "text": "线索池B"}]', 'insert', NULL, NULL, NULL);