Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
6fa21556
Commit
6fa21556
authored
Nov 28, 2019
by
季圣华
Browse files
更改单据编号表的表名
parent
2dcd8901
Changes
4
Hide whitespace changes
Inline
Side-by-side
docs/jsh_erp.sql
View file @
6fa21556
...
...
@@ -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
...
...
docs/数据库更新记录-方便升级.txt
View file @
6fa21556
...
...
@@ -669,4 +669,10 @@ ROW_FORMAT=COMPACT
-- ----------------------------
drop table databasechangelog;
drop table databasechangeloglock;
drop table jsh_app;
\ No newline at end of file
drop table jsh_app;
-- ----------------------------
-- 时间:2019年11月28日
-- 单据编号表-改表名
-- ----------------------------
ALTER TABLE tbl_sequence RENAME TO jsh_sequence;
\ No newline at end of file
src/main/java/com/jsh/erp/config/TenantConfig.java
View file @
6fa21556
...
...
@@ -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
;
...
...
src/main/resources/mapper_xml/DepotHeadMapperEx.xml
View file @
6fa21556
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment