给计量单位表增加三个字段

This commit is contained in:
季圣华
2020-03-27 00:43:31 +08:00
parent f1fba5f705
commit 89d2e29779
7 changed files with 498 additions and 534 deletions

View File

@@ -1062,6 +1062,9 @@ DROP TABLE IF EXISTS `jsh_unit`;
CREATE TABLE `jsh_unit` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`UName` varchar(50) DEFAULT NULL COMMENT '名称,支持多单位',
`basic_unit` varchar(50) DEFAULT NULL COMMENT '基础单位' ,
`other_unit` varchar(50) DEFAULT NULL COMMENT '副单位' ,
`ratio` int(11) NULL DEFAULT NULL COMMENT '比例' ,
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
`delete_Flag` varchar(1) DEFAULT '0' COMMENT '删除标记0未删除1删除',
PRIMARY KEY (`id`)
@@ -1070,13 +1073,10 @@ CREATE TABLE `jsh_unit` (
-- ----------------------------
-- Records of jsh_unit
-- ----------------------------
INSERT INTO `jsh_unit` VALUES ('2', 'kg,包(1:25)', null, '0');
INSERT INTO `jsh_unit` VALUES ('8', '瓶,箱(1:12)', null, '0');
INSERT INTO `jsh_unit` VALUES ('11', 'qwe,sed(1:33)', null, '0');
INSERT INTO `jsh_unit` VALUES ('12', '1,2(1:33)', null, '0');
INSERT INTO `jsh_unit` VALUES ('13', 'aa,vv(1:22)', '1', '0');
INSERT INTO `jsh_unit` VALUES ('14', '个,箱(1:12)', '117', '0');
INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '63', '0');
INSERT INTO `jsh_unit` VALUES ('2', 'kg,包(1:25)', 'kg', '', '25', NULL, '0');
INSERT INTO `jsh_unit` VALUES ('8', '瓶,箱(1:12)', '', '', '12', NULL, '0');
INSERT INTO `jsh_unit` VALUES ('14', '个,箱(1:12)', '', '', '12', '117', '0');
INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '', '', '12', '63', '0');
-- ----------------------------
-- Table structure for jsh_user

View File

@@ -740,4 +740,13 @@ alter table jsh_depotitem add material_extend_id bigint(20) DEFAULT NULL COMMENT
-- by jishenghua
-- ----------------------------
alter table jsh_depothead drop column ProjectId;
alter table jsh_depothead drop column AllocationProjectId;
alter table jsh_depothead drop column AllocationProjectId;
-- ----------------------------
-- 给计量单位表增加基础单位、副单位、比例三个字段
-- 时间 2020-03-24
-- by jishenghua
-- ----------------------------
alter table jsh_unit add basic_unit varchar(50) DEFAULT NULL COMMENT '基础单位' after UName;
alter table jsh_unit add other_unit varchar(50) DEFAULT NULL COMMENT '副单位' after basic_unit;
alter table jsh_unit add ratio INT DEFAULT NULL COMMENT '比例' after other_unit;