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
f30399c7
Commit
f30399c7
authored
Oct 19, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
4f383310
83f73fe6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
9 deletions
+34
-9
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+34
-9
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
f30399c7
...
...
@@ -60,19 +60,43 @@
u.sequence_nbr sequenceNbr,
u.biz_org_name bizOrgName,
u.biz_org_code bizOrgCode,
<if
test=
"map.fields != null"
>
<foreach
collection=
"map.fields"
item=
"item"
separator=
","
>
MAX(case f.field_code when #{item} then IFNULL(v.field_value_label, v.field_value)
end) ${item}
</foreach>
</if>
g.*
FROM
cb_org_usr u
LEFT JOIN
cb_dynamic_form_instance v on u.sequence_nbr = v.instance_id
LEFT JOIN cb_dynamic_form_column f ON f.sequence_nbr = v.form_column_id
( SELECT
v.`instance_id`,
max(case v.field_code when 'personNumber' then IFNULL(v.field_value_label,v.field_value) end) personNumber,
max(case v.field_code when 'certificates_type' then IFNULL(v.field_value_label,v.field_value) end) certificates_type,
max(case v.field_code when 'gender' then IFNULL(v.field_value_label,v.field_value) end) gender,
max(case v.field_code when 'certificates_number' then IFNULL(v.field_value_label,v.field_value) end) certificates_number,
max(case v.field_code when 'telephone' then IFNULL(v.field_value_label,v.field_value) end) telephone,
max(case v.field_code when 'state' then IFNULL(v.field_value_label,v.field_value) end) state,
max(case v.field_code when 'safety_training' then IFNULL(v.field_value_label,v.field_value) end) safety_training,
max(case v.field_code when 'administrative_position' then IFNULL(v.field_value_label,v.field_value) end) administrative_position,
max(case v.field_code when 'internal_position' then IFNULL(v.field_value_label,v.field_value) end) internal_position,
max(case v.field_code when 'fireManagement_post' then IFNULL(v.field_value_label,v.field_value) end) fireManagement_post,
max(case v.field_code when 'position_type' then IFNULL(v.field_value_label,v.field_value) end) position_type,
max(case v.field_code when 'certificate_type' then IFNULL(v.field_value_label,v.field_value) end) certificate_type,
max(case v.field_code when 'holding_time' then IFNULL(v.field_value_label,v.field_value) end) holding_time,
max(case v.field_code when 'audit_cycle' then IFNULL(v.field_value_label,v.field_value) end) audit_cycle,
max(case v.field_code when 'person_img' then IFNULL(v.field_value_label,v.field_value) end) person_img,
max(case v.field_code when 'certificate_img' then IFNULL(v.field_value_label,v.field_value) end) certificate_img
FROM
`cb_dynamic_form_instance` v
WHERE
v.group_code = 246
GROUP BY
v.`instance_id`
) g
on u.sequence_nbr = g.instance_id
where
u.biz_org_type = #{map.bizOrgType}
AND u.is_delete = 0
u.biz_org_type = 'person'
AND
u.is_delete = 0
<if
test=
"map.bizOrgName != null"
>
AND u.biz_org_name like concat('%',#{map.bizOrgName},'%')
</if>
...
...
@@ -92,6 +116,7 @@
<foreach
collection=
"map.fieldsValue.keys"
item=
"item"
>
AND a.${item} = #{map.fieldsValue[${item}]}
</foreach>
</if>
LIMIT #{map.pageNum}, #{map.pageSize}
</select>
<!--机场单位查询机构下所有子数据 2021-09-16 by litw -->
...
...
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