更改单据编号表的表名
This commit is contained in:
@@ -1762,10 +1762,10 @@ INSERT INTO `jsh_userbusiness` VALUES ('65', 'UserRole', '129', '[10]', null, '0
|
|||||||
INSERT INTO `jsh_userbusiness` VALUES ('66', 'UserRole', '130', '[10]', null, '0');
|
INSERT INTO `jsh_userbusiness` VALUES ('66', 'UserRole', '130', '[10]', null, '0');
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for tbl_sequence
|
-- Table structure for jsh_sequence
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS `tbl_sequence`;
|
DROP TABLE IF EXISTS `jsh_sequence`;
|
||||||
CREATE TABLE `tbl_sequence` (
|
CREATE TABLE `jsh_sequence` (
|
||||||
`seq_name` varchar(50) NOT NULL COMMENT '序列名称',
|
`seq_name` varchar(50) NOT NULL COMMENT '序列名称',
|
||||||
`min_value` bigint(20) NOT NULL COMMENT '最小值',
|
`min_value` bigint(20) NOT NULL COMMENT '最小值',
|
||||||
`max_value` bigint(20) NOT NULL COMMENT '最大值',
|
`max_value` bigint(20) NOT NULL COMMENT '最大值',
|
||||||
@@ -1776,9 +1776,9 @@ CREATE TABLE `tbl_sequence` (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sequence表';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sequence表';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of tbl_sequence
|
-- Records of jsh_sequence
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `tbl_sequence` VALUES ('depot_number_seq', '1', '999999999999999999', '304', '1', '单据编号sequence');
|
INSERT INTO `jsh_sequence` VALUES ('depot_number_seq', '1', '999999999999999999', '304', '1', '单据编号sequence');
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for jsh_tenant
|
-- Table structure for jsh_tenant
|
||||||
|
|||||||
@@ -669,4 +669,10 @@ ROW_FORMAT=COMPACT
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
drop table databasechangelog;
|
drop table databasechangelog;
|
||||||
drop table databasechangeloglock;
|
drop table databasechangeloglock;
|
||||||
drop table jsh_app;
|
drop table jsh_app;
|
||||||
|
|
||||||
|
-- ----------------------------
|
||||||
|
-- 时间:2019年11月28日
|
||||||
|
-- 单据编号表-改表名
|
||||||
|
-- ----------------------------
|
||||||
|
ALTER TABLE tbl_sequence RENAME TO jsh_sequence;
|
||||||
@@ -61,7 +61,7 @@ public class TenantConfig {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
// 这里可以判断是否过滤表
|
// 这里可以判断是否过滤表
|
||||||
if ("jsh_materialproperty".equals(tableName) || "tbl_sequence".equals(tableName)
|
if ("jsh_materialproperty".equals(tableName) || "jsh_sequence".equals(tableName)
|
||||||
|| "jsh_userbusiness".equals(tableName) || "jsh_functions".equals(tableName)
|
|| "jsh_userbusiness".equals(tableName) || "jsh_functions".equals(tableName)
|
||||||
|| "jsh_tenant".equals(tableName)) {
|
|| "jsh_tenant".equals(tableName)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -436,11 +436,11 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateBuildOnlyNumber">
|
<update id="updateBuildOnlyNumber">
|
||||||
update tbl_sequence set current_val = current_val + 1 where seq_name = 'depot_number_seq'
|
update jsh_sequence set current_val = current_val + 1 where seq_name = 'depot_number_seq'
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="getBuildOnlyNumber" resultType="java.lang.Long">
|
<select id="getBuildOnlyNumber" resultType="java.lang.Long">
|
||||||
select current_val from tbl_sequence where seq_name = 'depot_number_seq'
|
select current_val from jsh_sequence where seq_name = 'depot_number_seq'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="batchDeleteDepotHeadByIds">
|
<update id="batchDeleteDepotHeadByIds">
|
||||||
|
|||||||
Reference in New Issue
Block a user