更改单据编号表的表名

This commit is contained in:
季圣华
2019-11-28 14:35:10 +08:00
parent 2dcd890150
commit 6fa21556fd
4 changed files with 15 additions and 9 deletions

View File

@@ -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');
-- ----------------------------
-- Table structure for tbl_sequence
-- Table structure for jsh_sequence
-- ----------------------------
DROP TABLE IF EXISTS `tbl_sequence`;
CREATE TABLE `tbl_sequence` (
DROP TABLE IF EXISTS `jsh_sequence`;
CREATE TABLE `jsh_sequence` (
`seq_name` varchar(50) NOT NULL COMMENT '序列名称',
`min_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表';
-- ----------------------------
-- 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

View File

@@ -670,3 +670,9 @@ ROW_FORMAT=COMPACT
drop table databasechangelog;
drop table databasechangeloglock;
drop table jsh_app;
-- ----------------------------
-- 时间2019年11月28日
-- 单据编号表-改表名
-- ----------------------------
ALTER TABLE tbl_sequence RENAME TO jsh_sequence;

View File

@@ -61,7 +61,7 @@ public class TenantConfig {
return true;
} 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_tenant".equals(tableName)) {
return true;

View File

@@ -436,11 +436,11 @@
</update>
<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>
<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>
<update id="batchDeleteDepotHeadByIds">