Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
22f0d9c3
Commit
22f0d9c3
authored
May 23, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
2bc3904c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
Building.xml
...-boot-system-equip/src/main/resources/mapper/Building.xml
+16
-3
No files found.
amos-boot-system-equip/src/main/resources/mapper/Building.xml
View file @
22f0d9c3
...
...
@@ -183,7 +183,8 @@
group_name AS displayName,
- 1 AS parentId,
NULL AS equipCode,
NULL AS bizOrgCode
NULL AS bizOrgCode,
NULL AS groupType
FROM
wl_form_group
WHERE
...
...
@@ -193,7 +194,8 @@
nam.field_value AS displayName,
par.field_value AS parentId,
cd.field_value AS equipCode,
bzc.field_value AS bizOrgCode
bzc.field_value AS bizOrgCode,
ins.group_type as groupType
FROM
wl_form_instance AS ins
LEFT JOIN wl_form_instance AS nam ON nam.instance_id = ins.instance_id
...
...
@@ -205,8 +207,19 @@
LEFT JOIN wl_form_instance AS bzc ON bzc.instance_id = ins.instance_id
AND bzc.field_name = 'bizOrgCode'
<where>
1 =1
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
bzc.field_value LIKE CONCAT(#{bizOrgCode},'%')
and bzc.field_value LIKE CONCAT(#{bizOrgCode},'%')
</if>
<if
test=
"instanceId != null and instanceId != ''"
>
and ins.instance_id IN
(
select instance_id from wl_form_instance where field_name = 'parentId' AND field_value in(
select instance_id from wl_form_instance where field_name = 'parentId' AND field_value = #{instanceId})
union
select instance_id from wl_form_instance where field_name = 'parentId' AND field_value = #{instanceId} or
instance_id = #{instanceId}
)
</if>
</where>
GROUP BY
...
...
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