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
8716c9e9
Commit
8716c9e9
authored
Oct 19, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/moa/amos-boot-biz
into developer
parents
225f97fb
f30399c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
10 deletions
+48
-10
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+34
-9
DutyFirstAidServiceImpl.java
...dule/common/biz/service/impl/DutyFirstAidServiceImpl.java
+1
-1
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+13
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
8716c9e9
...
@@ -60,19 +60,43 @@
...
@@ -60,19 +60,43 @@
u.sequence_nbr sequenceNbr,
u.sequence_nbr sequenceNbr,
u.biz_org_name bizOrgName,
u.biz_org_name bizOrgName,
u.biz_org_code bizOrgCode,
u.biz_org_code bizOrgCode,
<if
test=
"map.fields != null"
>
g.*
<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>
FROM
FROM
cb_org_usr u
cb_org_usr u
LEFT JOIN
LEFT JOIN
cb_dynamic_form_instance v on u.sequence_nbr = v.instance_id
( SELECT
LEFT JOIN cb_dynamic_form_column f ON f.sequence_nbr = v.form_column_id
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
where
u.biz_org_type = #{map.bizOrgType}
u.biz_org_type = 'person'
AND u.is_delete = 0
AND
u.is_delete = 0
<if
test=
"map.bizOrgName != null"
>
<if
test=
"map.bizOrgName != null"
>
AND u.biz_org_name like concat('%',#{map.bizOrgName},'%')
AND u.biz_org_name like concat('%',#{map.bizOrgName},'%')
</if>
</if>
...
@@ -92,6 +116,7 @@
...
@@ -92,6 +116,7 @@
<foreach
collection=
"map.fieldsValue.keys"
item=
"item"
>
AND a.${item} = #{map.fieldsValue[${item}]}
</foreach>
<foreach
collection=
"map.fieldsValue.keys"
item=
"item"
>
AND a.${item} = #{map.fieldsValue[${item}]}
</foreach>
</if>
</if>
LIMIT #{map.pageNum}, #{map.pageSize}
LIMIT #{map.pageNum}, #{map.pageSize}
</select>
</select>
<!--机场单位查询机构下所有子数据 2021-09-16 by litw -->
<!--机场单位查询机构下所有子数据 2021-09-16 by litw -->
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyFirstAidServiceImpl.java
View file @
8716c9e9
...
@@ -115,7 +115,7 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
...
@@ -115,7 +115,7 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
public
List
<
Map
<
String
,
Object
>>
getFirstAidExportData
(
List
<
String
>
ids
)
{
public
List
<
Map
<
String
,
Object
>>
getFirstAidExportData
(
List
<
String
>
ids
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
List
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<
Map
<
String
,
Object
>>();
String
typeString
=
"
DUTY_POST_TYPE
"
;
String
typeString
=
"
JJZ
"
;
ids
.
stream
().
forEach
(
i
->{
ids
.
stream
().
forEach
(
i
->{
Map
<
String
,
Object
>
detailMap
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
detailMap
=
new
HashMap
<
String
,
Object
>();
List
<
OrgUsr
>
personList
=
orgUsrServiceImpl
.
getPersonListByParentId
(
Long
.
parseLong
(
i
));
List
<
OrgUsr
>
personList
=
orgUsrServiceImpl
.
getPersonListByParentId
(
Long
.
parseLong
(
i
));
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
8716c9e9
...
@@ -1852,7 +1852,20 @@
...
@@ -1852,7 +1852,20 @@
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"chenhao"
id=
"2021-10-19-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"cb_data_dictionary"
/>
<primaryKeyExists
primaryKeyName=
"sequence_nbr"
tableName=
"cb_data_dictionary"
/>
</preConditions>
<comment>
add data cb_data_dictionary
</comment>
<sql>
INSERT INTO cb_data_dictionary (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES ('1343', '1', '医生', 'JJZ', NULL, NULL, NULL, NULL, NULL, '\0', '12');
INSERT INTO cb_data_dictionary (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES ('1344', '2', '护士', 'JJZ', NULL, NULL, NULL, NULL, NULL, '\0', '12');
INSERT INTO cb_data_dictionary (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES ('1345', '3', '司机', 'JJZ', NULL, NULL, NULL, NULL, NULL, '\0', '12');
INSERT INTO cb_data_dictionary (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES ('1346', '4', '120值班主任', 'JJZ', NULL, NULL, NULL, NULL, NULL, '\0', '12');
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
...
...
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