常量
12114常量总览
_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 = 24 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '常量表; 软删除未启用;'
_constant 表数据
资产科目列表
constantKey:financeSubjectList
constantType:object
[
{
"subjectId": "1601",
"subjectName": "固定资产"
},
{
"subjectId": "1602",
"subjectName": "累计折旧"
},
{
"subjectId": "1606",
"subjectName": "固定资产清理"
},
{
"subjectId": "5602",
"subjectName": "管理费用"
}
]
折旧方法
constantKey:depreciationMethodList
constantType:object
[
{
"methodId": "不折旧",
"methodName": "不折旧"
},
{
"methodId": "平均年限法",
"methodName": "平均年限法"
}
]
null
constantKey:companyTitle
constantType:null
昆明航成经贸有限公司销售单
null
constantKey:companyName
constantType:null
昆明航成经贸有限公司
null
constantKey:inventoryTitle
constantType:null
昆明航成经贸有限公司采购入库单
null
constantKey:saleReturnTitle
constantType:null
昆明航成经贸有限公司销售退货单
null
constantKey:purchaseReturnTitle
constantType:null
昆明航成经贸有限公司采购退货单
null
constantKey:warehouseInventoryInTitle
constantType:null
昆明航成经贸有限公司入库单
仓库列表
constantKey:warehouse
constantType:array
[
{
"warehouseName": "仓库1",
"stockList": [
"货架1",
"货架2"
]
},
{
"warehouseName": "冷库1",
"stockList": [
"货架3",
"货架4"
]
}
]
打印配置
constantKey:printConfig
constantType:object
{
"inventoryIn": {
"documentCreator": "刘娜",
"shipper": "练郁琨"
},
"inventoryOut": {
"documentCreator": "雷继武",
"shipper": "李成"
}
}
支付账户
constantKey:paymentAccount
constantType:array
[
{
"accountName": "公司账户1",
"accountNum": "44xxxxx",
"accountType": "银行账户",
"accountBankName": "中国银行",
"accountBranchBankName": "朝阳分行"
},
{
"accountName": "公司账户2",
"accountNum": "44xxxxx",
"accountType": "银行账户",
"accountBankName": "中国银行",
"accountBranchBankName": "朝阳分行"
},
{
"accountName": "微信账户",
"accountNum": "44xxxxx",
"accountType": "微信",
"accountBankName": "",
"accountBranchBankName": ""
}
]
null
constantKey:purchaseReturnInventoryOutTitle
constantType:null
昆明航成经贸有限公司采购退货出库单
_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 (5, 'companyTitle', NULL, NULL, '昆明航成经贸有限公司销售单', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (6, 'companyName', NULL, NULL, '昆明航成经贸有限公司', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (7, 'inventoryTitle', NULL, NULL, '昆明航成经贸有限公司采购入库单', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (8, 'saleReturnTitle', NULL, NULL, '昆明航成经贸有限公司销售退货单', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (9, 'purchaseReturnTitle', NULL, NULL, '昆明航成经贸有限公司采购退货单', 'insert', NULL, NULL, NULL);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (11, 'warehouseInventoryInTitle', NULL, NULL, '昆明航成经贸有限公司入库单', '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);
INSERT INTO _constant (id, constantKey, constantType, desc, constantValue, operation, operationByUserId, operationByUser, operationAt) VALUES (23, 'purchaseReturnInventoryOutTitle', NULL, NULL, '昆明航成经贸有限公司采购退货出库单', 'insert', NULL, NULL, NULL);