Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
test
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邬友楠
test
Commits
cea1cd07
Commit
cea1cd07
authored
Apr 29, 2020
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql easyearch别名问题
parent
7d5e22a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
5 deletions
+32
-5
uasp.mysql.sql
db/uasp.mysql.sql
+8
-4
easy-search-bpm.xml
...n/resources/config/content/easysearch/easy-search-bpm.xml
+1
-1
easy-search-bpm.xml
...urces/config/content/easysearch/mysql/easy-search-bpm.xml
+23
-0
No files found.
db/uasp.mysql.sql
View file @
cea1cd07
...
@@ -21947,24 +21947,28 @@ WHERE
...
@@ -21947,24 +21947,28 @@ WHERE
DROP
FUNCTION
DROP
FUNCTION
IF
IF
EXISTS
`next_sequence`
;
EXISTS
`next_sequence`
;
CREATE
FUNCTION
`next_sequence`
(
seq_name
VARCHAR
(
128
)
)
RETURNS
BIGINT
(
20
)
DETERMINISTIC
BEGIN
CREATE
FUNCTION
`next_sequence`
(
seq_name
VARCHAR
(
128
)
)
RETURNS
bigint
(
20
)
DETERMINISTIC
BEGIN
DECLARE
DECLARE
val
BIGINT
;
val
BIGINT
;
SET
val
=
0
;
SELECT
SELECT
next_val
INTO
val
next_val
INTO
val
FROM
FROM
hibernate_sequences
hibernate_sequences
WHERE
WHERE
sequence_name
=
seq_name
;
sequence_name
=
seq_name
;
IF
val
is
null
THEN
SIGNAL
SQLSTATE
'HY000'
SET
MESSAGE_TEXT
=
'序列不存在或者序列未设置初始值'
;
END
IF
;
UPDATE
hibernate_sequences
UPDATE
hibernate_sequences
SET
next_val
=
next_val
+
1
SET
next_val
=
next_val
+
1
WHERE
WHERE
sequence_name
=
seq_name
;
sequence_name
=
seq_name
;
RETURN
val
;
RETURN
val
;
END
;
END
ALTER
TABLE
WF_ApprovalRuleHandlerGroup
ADD
COLUMN
LIMIT_HANDLER
INT
NULL
COMMENT
'分组最少审批人数'
;
ALTER
TABLE
WF_ApprovalRuleHandlerGroup
ADD
COLUMN
LIMIT_HANDLER
INT
NULL
COMMENT
'分组最少审批人数'
;
...
...
huigou-uasp/src/main/resources/config/content/easysearch/easy-search-bpm.xml
View file @
cea1cd07
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
and p.proc_id = d.id
and p.proc_id = d.id
and d.proc_id = :procKey
and d.proc_id = :procKey
and d.code = :procUnitId
and d.code = :procUnitId
)
__wf_approvalelement__
)
</sql>
</sql>
<orderby>
sequence desc
</orderby>
<orderby>
sequence desc
</orderby>
<field
name=
"id"
code=
"id"
type=
'hidden'
/>
<field
name=
"id"
code=
"id"
type=
'hidden'
/>
...
...
huigou-uasp/src/main/resources/config/content/easysearch/mysql/easy-search-bpm.xml
0 → 100644
View file @
cea1cd07
<?xml version="1.0" encoding="UTF-8"?>
<easy-search-mappings>
<easy-search
name=
"procApprovalElement"
desc=
"选择流程审批要素"
>
<sql>
select id, code, name, kind_id, data_source_config, sequence from
(select id, code, name, kind_id,data_source_config, sequence from wf_approvalelement
where kind_id = 1
union
select t.id, t.code, t.name, t.kind_id, t.data_source_config, t.sequence from wf_approvalelement t, wf_procapprovalelement p, wf_procdef d
where t.id = p.element_id
and p.proc_id = d.id
and d.proc_id = :procKey
and d.code = :procUnitId
) __wf_approvalelement__
</sql>
<orderby>
sequence desc
</orderby>
<field
name=
"id"
code=
"id"
type=
'hidden'
/>
<field
name=
"编码"
code=
"code"
width=
"160"
/>
<field
name=
"名称"
code=
"name"
width=
"200"
/>
<field
name=
"类型"
code=
"kindId"
type=
'hidden'
/>
<field
name=
"数据源配置"
code=
"dataSourceConfig"
type=
"hidden"
/>
</easy-search>
</easy-search-mappings>
\ No newline at end of file
Write
Preview
Markdown
is supported
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