常量
12076常量总览
_constant结构
CREATE TABLE `_constant` (`id` int(11) NOT NULL AUTO_INCREMENT,`constantKey` varchar(255) DEFAULT NULL,`constantType` varchar(255) DEFAULT NULL COMMENT '常量类型; object, array',`desc` varchar(255) DEFAULT NULL COMMENT '描述',`constantValue` text COMMENT '常量内容; object, array',`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',PRIMARY KEY (`id`) USING BTREE) ENGINE = InnoDB AUTO_INCREMENT = 23 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_constant 表数据
资产科目列表
| constantKey | constantType |
|---|---|
| financeSubjectList | object |
[{"subjectId": "1601","subjectName": "固定资产"},{"subjectId": "1602","subjectName": "累计折旧"},{"subjectId": "1606","subjectName": "固定资产清理"},{"subjectId": "5602","subjectName": "管理费用"}]
折旧方法
| constantKey | constantType |
|---|---|
| depreciationMethodList | object |
[{"methodId": "不折旧","methodName": "不折旧"},{"methodId": "平均年限法","methodName": "平均年限法"}]
部门列表
| constantKey | constantType |
|---|---|
| deptList | array |
[{"deptId": "10001","deptName": "部门1"},{"deptId": "10002","deptName": "部门2"}]
companyTitle
| constantKey | constantType |
|---|---|
| companyTitle | null |
xxx公司销售单
companyName
| constantKey | constantType |
|---|---|
| companyName | null |
xxx公司
inventoryTitle
| constantKey | constantType |
|---|---|
| inventoryTitle | null |
xxx公司采购入库单
saleReturnTitle
| constantKey | constantType |
|---|---|
| saleReturnTitle | null |
xxx公司销售退货单
purchaseReturnTitle
| constantKey | constantType |
|---|---|
| purchaseReturnTitle | null |
xxx限公司采购退货单
warehouseInventoryInTitle
| constantKey | constantType |
|---|---|
| warehouseInventoryInTitle | null |
xxx公司入库单
仓库列表
| constantKey | constantType |
|---|---|
| warehouse | array |
[{"warehouseName": "仓库1","stockList": ["货架1","货架2"]},{"warehouseName": "冷库1","stockList": ["货架3","货架4"]}]
打印配置
| constantKey | constantType |
|---|---|
| printConfig | object |
{"inventoryIn": {"documentCreator": "小刘","shipper": "小张"},"inventoryOut": {"documentCreator": "小刘","shipper": "小张"}}
支付账户
| constantKey | constantType |
|---|---|
| paymentAccount | array |
[{"accountName": "公司账户1","accountNum": "44xxxxx","accountType": "银行账户","accountBankName": "中国银行","accountBranchBankName": "朝阳分行"},{"accountName": "公司账户2","accountNum": "44xxxxx","accountType": "银行账户","accountBankName": "中国银行","accountBranchBankName": "朝阳分行"},{"accountName": "微信账户","accountNum": "44xxxxx","accountType": "微信","accountBankName": "","accountBranchBankName": ""}]
_constant语句
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (1, 'financeSubjectList', 'object', '资产科目列表', '[{"subjectId": "1601", "subjectName": "固定资产"},{"subjectId": "1602", "subjectName": "累计折旧"},{"subjectId": "1606", "subjectName": "固定资产清理"},{"subjectId": "5602", "subjectName": "管理费用"}]', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (2, 'depreciationMethodList', 'object', '折旧方法', '[{"methodId": "不折旧", "methodName": "不折旧"},{"methodId": "平均年限法", "methodName": "平均年限法"}]', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (3, 'deptList', 'array', '部门列表', '[{"deptId": "10001", "deptName": "部门1"},{"deptId": "10002", "deptName": "部门2"}]', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (5, 'companyTitle', NULL, NULL, 'xxx公司销售单', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'companyName', NULL, NULL, 'xxx公司', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (7, 'inventoryTitle', NULL, NULL, 'xxx公司采购入库单', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'saleReturnTitle', NULL, NULL, 'xxx公司销售退货单', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'purchaseReturnTitle', NULL, NULL, 'xxx限公司采购退货单', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (11, 'warehouseInventoryInTitle', NULL, NULL, 'xxx公司入库单', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (20, 'warehouse', 'array', '仓库列表', '[{"warehouseName": "仓库1","stockList": ["货架1","货架2"]},{"warehouseName": "冷库1","stockList": ["货架3","货架4"]}]', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (21, 'printConfig', 'object', '打印配置', '{"inventoryIn": {"documentCreator": "小刘", "shipper": "小张"}, "inventoryOut": {"documentCreator": "小刘", "shipper": "小张"}}', 'insert', NULL, NULL, NULL);INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (22, 'paymentAccount', 'array', '支付账户', '[{"accountName": "公司账户1","accountNum": "44xxxxx","accountType": "银行账户","accountBankName": "中国银行","accountBranchBankName": "朝阳分行"},{"accountName": "公司账户2","accountNum": "44xxxxx","accountType": "银行账户","accountBankName": "中国银行","accountBranchBankName": "朝阳分行"},{"accountName": "微信账户","accountNum": "44xxxxx","accountType": "微信","accountBankName": "","accountBranchBankName": ""}]', 'insert', NULL, NULL, NULL);