给多单位再增加两个副单位
This commit is contained in:
@@ -866,7 +866,11 @@ CREATE TABLE `jsh_unit` (
|
||||
`name` varchar(50) DEFAULT NULL COMMENT '名称,支持多单位',
|
||||
`basic_unit` varchar(50) DEFAULT NULL COMMENT '基础单位',
|
||||
`other_unit` varchar(50) DEFAULT NULL COMMENT '副单位',
|
||||
`other_unit_two` varchar(50) DEFAULT NULL COMMENT '副单位2',
|
||||
`other_unit_three` varchar(50) DEFAULT NULL COMMENT '副单位3',
|
||||
`ratio` int(11) DEFAULT NULL COMMENT '比例',
|
||||
`ratio_two` int(11) DEFAULT NULL COMMENT '比例2',
|
||||
`ratio_three` int(11) DEFAULT NULL COMMENT '比例3',
|
||||
`tenant_id` bigint(20) DEFAULT NULL COMMENT '租户id',
|
||||
`delete_flag` varchar(1) DEFAULT '0' COMMENT '删除标记,0未删除,1删除',
|
||||
PRIMARY KEY (`id`)
|
||||
@@ -875,10 +879,10 @@ CREATE TABLE `jsh_unit` (
|
||||
-- ----------------------------
|
||||
-- Records of jsh_unit
|
||||
-- ----------------------------
|
||||
INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '个', '箱', '12', '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('19', '个,盒(1:15)', '个', '盒', '15', '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('20', '盒,箱(1:8)', '盒', '箱', '8', '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('21', '瓶,箱(1:12)', '瓶', '箱', '12', '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('15', '个,箱(1:12)', '个', '箱', null, null, '12', null, null, '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('19', '个,盒(1:15)', '个', '盒', null, null, '15', null, null, '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('20', '盒,箱(1:8)', '盒', '箱', null, null, '8', null, null, '63', '0');
|
||||
INSERT INTO `jsh_unit` VALUES ('21', '瓶,箱(1:12)', '瓶', '箱', null, null, '12', null, null, '63', '0');
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for jsh_user
|
||||
|
||||
@@ -1297,4 +1297,14 @@ alter table jsh_user_business add tenant_id bigint(20) DEFAULT null COMMENT '租
|
||||
update jsh_user_business ub left join jsh_user u on ub.key_id=u.id set ub.tenant_id=u.tenant_id
|
||||
where (ub.type='UserRole' or ub.type='UserDepot' or ub.type='UserCustomer') and u.tenant_id!=0;
|
||||
update jsh_user_business ub left join jsh_role r on ub.key_id=r.id set ub.tenant_id=r.tenant_id
|
||||
where (ub.type='RoleFunctions') and r.tenant_id is not null;
|
||||
where (ub.type='RoleFunctions') and r.tenant_id is not null;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
-- 时间 2021年11月30日
|
||||
-- by jishenghua
|
||||
-- 给计量单位表增加副单位2、副单位3、比例2、比例3 四个字段
|
||||
-- --------------------------------------------------------
|
||||
alter table jsh_unit add other_unit_two varchar(50) DEFAULT NULL COMMENT '副单位2' after other_unit;
|
||||
alter table jsh_unit add other_unit_three varchar(50) DEFAULT NULL COMMENT '副单位3' after other_unit_two;
|
||||
alter table jsh_unit add ratio_two int(11) DEFAULT NULL COMMENT '比例2' after ratio;
|
||||
alter table jsh_unit add ratio_three int(11) DEFAULT NULL COMMENT '比例3' after ratio_two;
|
||||
Reference in New Issue
Block a user