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
eb412f8f
Commit
eb412f8f
authored
Jan 08, 2020
by
雍欢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复MySQL数据库下无法正常删除组织和清除回收站
parent
dfd95268
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
91 deletions
+110
-91
OrgApplicationImpl.java
...java/com/huigou/uasp/bmp/opm/impl/OrgApplicationImpl.java
+92
-91
opm.xml
...sp/src/main/resources/config/uasp/query/bmp/mysql/opm.xml
+18
-0
No files found.
huigou-core-impl/src/main/java/com/huigou/uasp/bmp/opm/impl/OrgApplicationImpl.java
View file @
eb412f8f
This diff is collapsed.
Click to expand it.
huigou-uasp/src/main/resources/config/uasp/query/bmp/mysql/opm.xml
View file @
eb412f8f
...
@@ -9,6 +9,24 @@
...
@@ -9,6 +9,24 @@
and (o.org_Kind_Id != 'psm' or
and (o.org_Kind_Id != 'psm' or
(select p.status from SA_OPPerson p where p.id = o.person_Id) >= :newStatus)
(select p.status from SA_OPPerson p where p.id = o.person_Id) >= :newStatus)
</sql>
</sql>
<sql
name=
"subordinatePsm"
>
select id
from
SA_OPOrg o
where o.org_Kind_Id = 'psm'
and o.status in (:oldStatus)
and (select p.status from SA_OPOrg p where p.id = o.parent_Id) >= :newStatus
and exists (select 1
from SA_OPPerson person, SA_OPOrg org
where person.status = :newStatus
and org.org_Kind_Id = 'psm'
and org.status in (:oldStatus)
and org.full_Id like :fullId
and person.main_Org_Id = org.parent_Id
and person.id = org.person_Id
and o.person_Id = person.id
and o.parent_Id != person.main_Org_Id)
</sql>
<sql
name=
"updateSubordinatePsmStatus"
>
<sql
name=
"updateSubordinatePsmStatus"
>
update SA_OPOrg o
update SA_OPOrg o
set o.status = :newStatus, o.version = (select next_sequence('version_seq'))
set o.status = :newStatus, o.version = (select next_sequence('version_seq'))
...
...
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