常量

12079

常量总览

_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 = 12 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'

_constant 表数据

公司名称

constantKey constantType
companyName string
  1. 杭州闵尚信息技术有限公司

自定义工资项目

constantKey constantType
customSalarySubject object
  1. {
  2. "totalSalaryContent": [
  3. "工资",
  4. "津贴补助",
  5. "奖金",
  6. "其他所得"
  7. ],
  8. "totalDeductSalaryContent": [
  9. "考勤扣款",
  10. "其他扣款"
  11. ],
  12. "realPaySalaryAdjustmentContent": [
  13. "测试下",
  14. "测试 2"
  15. ]
  16. }

五险一金配比

constantKey constantType
defaultMemberInsuranceConfig object
  1. {
  2. "endowmentInsurance": {
  3. "name": "养老保险",
  4. "paymentBase": 5554,
  5. "personalRatio": 8,
  6. "companyRatio": 20,
  7. "personalPay": "444.32",
  8. "companyPay": "1110.80"
  9. },
  10. "medicalInsurance": {
  11. "name": "医疗保险",
  12. "paymentBase": 5554,
  13. "personalRatio": 22,
  14. "companyRatio": 8,
  15. "personalPay": "1221.88",
  16. "companyPay": "555.40"
  17. },
  18. "unemploymentInsurance": {
  19. "name": "失业保险",
  20. "paymentBase": 4443,
  21. "personalRatio": 0.2,
  22. "companyRatio": 1,
  23. "personalPay": "8.89",
  24. "companyPay": "44.43"
  25. },
  26. "injuryInsurance": {
  27. "name": "工伤保险",
  28. "paymentBase": 5554,
  29. "personalRatio": 50,
  30. "companyRatio": 0.5,
  31. "personalPay": "2777.00",
  32. "companyPay": "27.77"
  33. },
  34. "maternityInsurance": {
  35. "name": "生育保险",
  36. "paymentBase": 4444,
  37. "personalRatio": 0,
  38. "companyRatio": 0.8,
  39. "personalPay": "0.00",
  40. "companyPay": "35.55"
  41. },
  42. "housingFund": {
  43. "name": "住房公积金",
  44. "paymentBase": 5553,
  45. "personalRatio": 12,
  46. "companyRatio": 12,
  47. "personalPay": "666.36",
  48. "companyPay": "666.36"
  49. }
  50. }

辅助项列表

constantKey constantType
assistList array
  1. [
  2. {
  3. "value": "customer",
  4. "text": "客户"
  5. },
  6. {
  7. "value": "supplier",
  8. "text": "供应商"
  9. },
  10. {
  11. "value": "staff",
  12. "text": "职员"
  13. },
  14. {
  15. "value": "project",
  16. "text": "项目"
  17. },
  18. {
  19. "value": "depart",
  20. "text": "部门"
  21. },
  22. {
  23. "value": "cunhuo",
  24. "text": "存货"
  25. }
  26. ]

凭证模板类型

constantKey constantType
voucherTemplateType array
  1. [
  2. {
  3. "value": "日常支出",
  4. "text": "日常支出"
  5. },
  6. {
  7. "value": "采购",
  8. "text": "采购"
  9. },
  10. {
  11. "value": "销售",
  12. "text": "销售"
  13. },
  14. {
  15. "value": "工资",
  16. "text": "工资"
  17. },
  18. {
  19. "value": "税金",
  20. "text": "税金"
  21. },
  22. {
  23. "value": "折旧和摊销",
  24. "text": "折旧和摊销"
  25. }
  26. ]

凭证类型

constantKey constantType
voucherType array
  1. [
  2. {
  3. "value": "普通凭证",
  4. "text": "普通凭证"
  5. },
  6. {
  7. "value": "结账凭证",
  8. "text": "结账凭证"
  9. },
  10. {
  11. "value": "日记账凭证",
  12. "text": "日记账凭证"
  13. },
  14. {
  15. "value": "进项发票",
  16. "text": "进项发票"
  17. },
  18. {
  19. "value": "销项发票",
  20. "text": "销项发票"
  21. },
  22. {
  23. "value": "工资凭证",
  24. "text": "工资凭证"
  25. }
  26. ]

_constant语句

  1. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'companyName', 'string', '公司名称', '杭州闵尚信息技术有限公司', 'insert', NULL, NULL, NULL);
  2. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (7, 'customSalarySubject', 'object', '自定义工资项目', '{"totalSalaryContent":["工资","津贴补助","奖金","其他所得"],"totalDeductSalaryContent":["考勤扣款","其他扣款"],"realPaySalaryAdjustmentContent":["测试下","测试 2"]}', 'update', 'admin', '系统管理员', '2023-08-19T15:19:32+08:00');
  3. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'defaultMemberInsuranceConfig', 'object', '五险一金配比', '{"endowmentInsurance":{"name":"养老保险","paymentBase":5554,"personalRatio":8,"companyRatio":20,"personalPay":"444.32","companyPay":"1110.80"},"medicalInsurance":{"name":"医疗保险","paymentBase":5554,"personalRatio":22,"companyRatio":8,"personalPay":"1221.88","companyPay":"555.40"},"unemploymentInsurance":{"name":"失业保险","paymentBase":4443,"personalRatio":0.2,"companyRatio":1,"personalPay":"8.89","companyPay":"44.43"},"injuryInsurance":{"name":"工伤保险","paymentBase":5554,"personalRatio":50,"companyRatio":0.5,"personalPay":"2777.00","companyPay":"27.77"},"maternityInsurance":{"name":"生育保险","paymentBase":4444,"personalRatio":0,"companyRatio":0.8,"personalPay":"0.00","companyPay":"35.55"},"housingFund":{"name":"住房公积金","paymentBase":5553,"personalRatio":12,"companyRatio":12,"personalPay":"666.36","companyPay":"666.36"}}', 'jhUpdate', 'admin', '系统管理员', '2023-09-08T12:40:26+08:00');
  4. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'assistList', 'array', '辅助项列表', '[
  5. {
  6. "value": "customer",
  7. "text": "客户"
  8. },
  9. {
  10. "value": "supplier",
  11. "text": "供应商"
  12. },
  13. {
  14. "value": "staff",
  15. "text": "职员"
  16. },
  17. {
  18. "value": "project",
  19. "text": "项目"
  20. },
  21. {
  22. "value": "depart",
  23. "text": "部门"
  24. },
  25. {
  26. "value": "cunhuo",
  27. "text": "存货"
  28. }
  29. ]', 'insert', NULL, NULL, NULL);
  30. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (10, 'voucherTemplateType', 'array', '凭证模板类型', '[
  31. {
  32. "value": "日常支出",
  33. "text": "日常支出"
  34. },
  35. {
  36. "value": "采购",
  37. "text": "采购"
  38. },
  39. {
  40. "value": "销售",
  41. "text": "销售"
  42. },
  43. {
  44. "value": "工资",
  45. "text": "工资"
  46. },
  47. {
  48. "value": "税金",
  49. "text": "税金"
  50. },
  51. {
  52. "value": "折旧和摊销",
  53. "text": "折旧和摊销"
  54. }
  55. ]', 'insert', NULL, NULL, NULL);
  56. INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (11, 'voucherType', 'array', '凭证类型', '[
  57. {
  58. "value": "普通凭证",
  59. "text": "普通凭证"
  60. },
  61. {
  62. "value": "结账凭证",
  63. "text": "结账凭证"
  64. },
  65. {
  66. "value": "日记账凭证",
  67. "text": "日记账凭证"
  68. },
  69. {
  70. "value": "进项发票",
  71. "text": "进项发票"
  72. },
  73. {
  74. "value": "销项发票",
  75. "text": "销项发票"
  76. },
  77. {
  78. "value": "工资凭证",
  79. "text": "工资凭证"
  80. }
  81. ]', 'insert', NULL, NULL, NULL);