去掉与资产相关的数据表

This commit is contained in:
季圣华
2019-06-26 19:28:45 +08:00
parent 323c62183b
commit 89890c0ead
15 changed files with 10 additions and 5793 deletions

View File

@@ -1646,4 +1646,13 @@ Value = '[245][13][12][16][243][14][15][234][236][22][23][220][240][25][217][218
where Type = 'RoleFunctions' and KeyId = '4';
update jsh_userbusiness SET
Value = '[245][13][243][14][15][234][22][23][220][240][25][217][218][26][194][195][31][59][207][208][209][226][227][228][229][235][237][244][210][211][241][33][199][242][41][200][201][202][40][232][233][197][203][204][205][206][212][246]'
where Type = 'RoleFunctions' and KeyId = '10';
where Type = 'RoleFunctions' and KeyId = '10';
-- ----------------------------
-- 时间2019年6月26日
-- 删除多余的资产相关表
-- ----------------------------
drop table jsh_asset;
drop table jsh_assetcategory;
drop table jsh_assetname;

View File

@@ -227,112 +227,6 @@ INSERT INTO `jsh_app` VALUES ('26', '07', '财务管理', 'app', 'money.png', ''
INSERT INTO `jsh_app` VALUES ('27', '08', '仓库管理', 'app', 'depot.png', '', '1350', '630', '', '\0', '', 'desk', '029', '', '', '0');
INSERT INTO `jsh_app` VALUES ('28', '09', '新手引导', 'app', 'userHelp.png', '../user/userHelp.html', '1000', '500', '\0', '\0', '\0', 'dock', '210', '', '', '0');
-- ----------------------------
-- Table structure for jsh_asset
-- ----------------------------
DROP TABLE IF EXISTS `jsh_asset`;
CREATE TABLE `jsh_asset` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`assetnameID` bigint(20) NOT NULL COMMENT '资产名称id',
`location` varchar(255) DEFAULT NULL COMMENT '位置',
`labels` varchar(255) DEFAULT NULL COMMENT '标签:以空格为分隔符',
`status` smallint(6) DEFAULT NULL COMMENT '资产的状态0==在库1==在用2==消费',
`userID` bigint(20) DEFAULT NULL COMMENT '用户ID',
`price` decimal(24,6) DEFAULT NULL COMMENT '购买价格',
`purchasedate` datetime DEFAULT NULL COMMENT '购买日期',
`periodofvalidity` datetime DEFAULT NULL COMMENT '有效日期',
`warrantydate` datetime DEFAULT NULL COMMENT '保修日期',
`assetnum` varchar(255) DEFAULT NULL COMMENT '资产编号',
`serialnum` varchar(255) DEFAULT NULL COMMENT '资产序列号',
`supplier` bigint(20) NOT NULL COMMENT '供应商',
`description` longtext COMMENT '描述信息',
`addMonth` longtext COMMENT '资产添加时间,统计报表使用',
`createtime` datetime DEFAULT NULL COMMENT '创建时间',
`creator` bigint(20) DEFAULT NULL COMMENT '创建人',
`updatetime` datetime DEFAULT NULL COMMENT '更新时间',
`updator` bigint(20) DEFAULT NULL COMMENT '更新人',
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
`delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除',
PRIMARY KEY (`id`),
KEY `FK353690ED9B6CB285` (`assetnameID`),
KEY `FK353690EDAD45B659` (`creator`),
KEY `FK353690ED27D23FE4` (`supplier`),
KEY `FK353690ED61FE182C` (`updator`),
KEY `FK353690ED3E226853` (`userID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='资产记录表';
-- ----------------------------
-- Records of jsh_asset
-- ----------------------------
INSERT INTO `jsh_asset` VALUES ('1', '27', 'weizhi', '', '0', null, '11.000000', '2016-10-22 00:00:00', '2016-10-21 00:00:00', '2016-11-03 00:00:00', '1231241', '123124123', '2', '', '2016-10', '2016-10-22 20:04:48', '63', '2016-10-22 20:04:48', '63', null, '0');
INSERT INTO `jsh_asset` VALUES ('3', '29', 'weizhi', null, '0', null, '11.000000', '2016-10-22 00:00:00', '2016-10-21 00:00:00', '2016-11-03 00:00:00', '1231241', '123124123', '2', null, null, '2017-07-22 18:42:14', null, '2017-07-22 18:42:14', null, null, '0');
-- ----------------------------
-- Table structure for jsh_assetcategory
-- ----------------------------
DROP TABLE IF EXISTS `jsh_assetcategory`;
CREATE TABLE `jsh_assetcategory` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`assetname` varchar(255) NOT NULL COMMENT '资产类型名称',
`isystem` tinyint(4) NOT NULL COMMENT '是否系统自带 0==系统 1==非系统',
`description` varchar(500) DEFAULT NULL COMMENT '描述信息',
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
`delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='资产类型';
-- ----------------------------
-- Records of jsh_assetcategory
-- ----------------------------
INSERT INTO `jsh_assetcategory` VALUES ('14', '递延资产', '1', '递延资产', null, '0');
INSERT INTO `jsh_assetcategory` VALUES ('15', '无形资产', '1', '无形资产', null, '0');
INSERT INTO `jsh_assetcategory` VALUES ('16', '长期投资', '1', '长期投资', null, '0');
INSERT INTO `jsh_assetcategory` VALUES ('17', '固定资产', '1', '固定资产', null, '0');
INSERT INTO `jsh_assetcategory` VALUES ('18', '流动资产', '1', '流动资产', null, '0');
-- ----------------------------
-- Table structure for jsh_assetname
-- ----------------------------
DROP TABLE IF EXISTS `jsh_assetname`;
CREATE TABLE `jsh_assetname` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`assetname` varchar(255) NOT NULL COMMENT '资产名称',
`assetcategoryID` bigint(20) NOT NULL COMMENT '资产类型',
`isystem` smallint(6) NOT NULL COMMENT '是否系统自带 0==系统 1==非系统',
`description` longtext COMMENT '描述信息',
`isconsumables` smallint(6) DEFAULT NULL COMMENT '是否为耗材 0==否 1==是 耗材状态只能是消费',
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
`delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除',
PRIMARY KEY (`id`),
KEY `FKA4ADCCF866BC8AD3` (`assetcategoryID`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='资产信息';
-- ----------------------------
-- Records of jsh_assetname
-- ----------------------------
INSERT INTO `jsh_assetname` VALUES ('1', '联想Y450', '17', '1', '', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('2', '惠普打印机', '15', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('12', '乐萌水杯', '16', '1', '', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('13', '机顶盒', '17', '1', '机顶盒', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('14', 'TCL电视', '17', '1', '', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('15', '手机', '17', '1', '', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('16', '硬盘', '16', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('17', '毛笔', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('18', '杯子', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('19', '建造师证书', '15', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('20', '算量软件', '14', '1', '', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('21', 'cad软件', '15', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('22', '办公桌', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('23', '笔记本', '17', '1', '笔记本', '1', null, '0');
INSERT INTO `jsh_assetname` VALUES ('24', '打印机', '17', '1', '打印机', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('25', '电脑', '17', '1', '电脑', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('26', '电动车', '16', '1', '电动车', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('27', '电源线', '17', '1', '电源线', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('28', '电源线666', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('29', '电源线777', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('30', '电源线8', '17', '1', '', '0', null, '0');
INSERT INTO `jsh_assetname` VALUES ('31', '电源线9', '17', '1', '', '0', null, '0');
-- ----------------------------
-- Table structure for jsh_depot
-- ----------------------------