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
aeca182c
Commit
aeca182c
authored
Oct 19, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加了 消防专家、机场单位人员的excle导出数据帅选
parent
f30399c7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
31 deletions
+49
-31
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+1
-1
IOrgUsrService.java
...n/amos/boot/module/common/api/service/IOrgUsrService.java
+1
-1
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+37
-25
FireExpertsServiceImpl.java
...odule/common/biz/service/impl/FireExpertsServiceImpl.java
+4
-2
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+6
-2
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+0
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
aeca182c
...
...
@@ -65,7 +65,7 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
List
<
Map
<
String
,
Object
>>
getparent
();
List
<
OrgUsrExcelDto
>
exportToExcel
();
List
<
OrgUsrExcelDto
>
exportToExcel
(
String
parentId
,
String
bizOrgName
,
String
internalPositionCode
,
String
positionType
);
/**
* 查询单位基本信息列表和单位下所有的重点部位数量。
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/IOrgUsrService.java
View file @
aeca182c
...
...
@@ -181,7 +181,7 @@ public interface IOrgUsrService {
List
<
Map
<
String
,
Object
>>
getparent
();
List
<
OrgUsrExcelDto
>
exportToExcel
();
List
<
OrgUsrExcelDto
>
exportToExcel
(
Map
par
);
UserUnitDto
getUserUnit
(
String
userId
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
aeca182c
...
...
@@ -68,21 +68,21 @@
( 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_typ
e,
max(case v.field_code when 'certificates
TypeCode' then IFNULL(v.field_value_label,v.field_value) end) certificatesTypeCod
e,
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_n
umber,
max(case v.field_code when 'certificates
Number' then IFNULL(v.field_value_label,v.field_value) end) certificatesN
umber,
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_t
raining,
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_t
ype,
max(case v.field_code when 'certificate
_type' then IFNULL(v.field_value_label,v.field_value) end) certificate_t
ype,
max(case v.field_code when 'holding
_time' then IFNULL(v.field_value_label,v.field_value) end) holding_t
ime,
max(case v.field_code when 'audit
_cycle' then IFNULL(v.field_value_label,v.field_value) end) audit_c
ycle,
max(case v.field_code when 'person
_img' then IFNULL(v.field_value_label,v.field_value) end) person_i
mg,
max(case v.field_code when 'certificate
_img' then IFNULL(v.field_value_label,v.field_value) end) certificate_i
mg
max(case v.field_code when 'safety
Training' then IFNULL(v.field_value_label,v.field_value) end) safetyT
raining,
max(case v.field_code when 'administrative
PositionCode' then IFNULL(v.field_value_label,v.field_value) end) administrativePositionCode
,
max(case v.field_code when 'internal
PositionCode' then IFNULL(v.field_value_label,v.field_value) end) internalPositionCode
,
max(case v.field_code when 'fireManagement
PostCode' then IFNULL(v.field_value_label,v.field_value) end) fireManagementPostCode
,
max(case v.field_code when 'position
Type' then IFNULL(v.field_value_label,v.field_value) end) positionT
ype,
max(case v.field_code when 'certificate
Type' then IFNULL(v.field_value_label,v.field_value) end) certificateT
ype,
max(case v.field_code when 'holding
Time' then IFNULL(v.field_value_label,v.field_value) end) holdingT
ime,
max(case v.field_code when 'audit
Cycle' then IFNULL(v.field_value_label,v.field_value) end) auditC
ycle,
max(case v.field_code when 'person
Img' then IFNULL(v.field_value_label,v.field_value) end) personI
mg,
max(case v.field_code when 'certificate
Img' then IFNULL(v.field_value_label,v.field_value) end) certificateI
mg
FROM
`cb_dynamic_form_instance` v
WHERE
...
...
@@ -223,23 +223,23 @@
left join
(
select instance_id,
max(case field_code when 'personNumber' then field_value end) person
_n
umber,
max(case field_code when 'certificatesTypeCode' then field_value end) certificates
_typ
e,
max(case field_code when 'personNumber' then field_value end) person
N
umber,
max(case field_code when 'certificatesTypeCode' then field_value end) certificates
TypeCod
e,
max(case field_code when 'gender' then field_value end) gender,
max(case field_code when 'certificatesNumber' then field_value end) certificates
_n
umber,
max(case field_code when 'certificatesNumber' then field_value end) certificates
N
umber,
max(case field_code when 'telephone' then field_value end) telephone,
max(case field_code when 'stateCode' then field_value end) state,
max(case field_code when 'safetyTraining' then field_value end) safety
_t
raining,
max(case field_code when 'safetyTraining' then field_value end) safety
T
raining,
max(
case field_code when 'administrativePositionCode' then field_value end) administrative
_position
,
max(case field_code when 'internalPositionCode' then field_value end) internal
_position
,
max(case field_code when 'fireManagementPostCode' then field_value end) fireManagement
_post
,
max(case field_code when 'positionType' then field_value end) position
_t
ype,
max(case field_code when 'certificateType' then field_value end) certificate
_t
ype,
max(case field_code when 'holdingTime' then field_value end) holding
_t
ime,
max(case field_code when 'auditCycle' then field_value end) audit
_c
ycle,
max(case field_code when 'personImg' then field_value end) person
_i
mg,
max(case field_code when 'certificateImg' then field_value end) certificate
_i
mg
case field_code when 'administrativePositionCode' then field_value end) administrative
PositionCode
,
max(case field_code when 'internalPositionCode' then field_value end) internal
PositionCode
,
max(case field_code when 'fireManagementPostCode' then field_value end) fireManagement
PostCode
,
max(case field_code when 'positionType' then field_value end) position
T
ype,
max(case field_code when 'certificateType' then field_value end) certificate
T
ype,
max(case field_code when 'holdingTime' then field_value end) holding
T
ime,
max(case field_code when 'auditCycle' then field_value end) audit
C
ycle,
max(case field_code when 'personImg' then field_value end) person
I
mg,
max(case field_code when 'certificateImg' then field_value end) certificate
I
mg
from cb_dynamic_form_instance
where group_code = 246
group by instance_id
...
...
@@ -503,6 +503,18 @@ GROUP BY
FROM cb_dynamic_form_instance GROUP BY instance_id) b
on b.instance_id=a.sequence_nbr where a.biz_org_name is not null and a.is_delete = 0
<if
test=
"parentId != null and parentId != '' and parentId != '-1'"
>
and a.parent_id = #{parentId}
</if>
<if
test=
"bizOrgName != null and bizOrgName != ''"
>
AND a.biz_org_name LIKE CONCAT( '%',#{bizOrgName}, '%')
</if>
<if
test=
"internalPositionCode != null and internalPositionCode != ''"
>
and b.internalPositionCode = #{internalPositionCode}
</if>
<if
test=
"positionType != null and positionType != ''"
>
b.positionType = #{positionType}
</if>
</select>
<select
id=
"getCompanyAndKeySite"
resultType=
"com.yeejoin.amos.boot.module.common.api.dto.CheckObjectDto"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FireExpertsServiceImpl.java
View file @
aeca182c
...
...
@@ -37,7 +37,9 @@ public class FireExpertsServiceImpl extends BaseService<FireExpertsDto, FireExpe
/**
* 列表查询 示例
*/
public
List
<
FireExpertsDto
>
queryForFireExpertsList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
)
{
return
this
.
queryForList
(
""
,
false
,
isDelete
);
public
List
<
FireExpertsDto
>
queryForFireExpertsList
(
@Condition
(
Operator
.
eq
)
Boolean
isDelete
,
@Condition
(
Operator
.
like
)
String
name
,
@Condition
(
Operator
.
eq
)
String
expertCode
)
{
return
this
.
queryForList
(
""
,
false
,
isDelete
,
name
,
expertCode
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
aeca182c
...
...
@@ -1184,8 +1184,12 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
@Override
public
List
<
OrgUsrExcelDto
>
exportToExcel
()
{
return
orgUsrMapper
.
exportToExcel
();
public
List
<
OrgUsrExcelDto
>
exportToExcel
(
Map
par
)
{
String
parentId
=
par
.
containsKey
(
"parentId"
)?
par
.
get
(
"parentId"
).
toString
():
null
;
String
bizOrgName
=
par
.
containsKey
(
"bizOrgName"
)?
par
.
get
(
"bizOrgName"
).
toString
():
null
;
String
internalPositionCode
=
par
.
containsKey
(
"internalPositionCode"
)?
par
.
get
(
"internalPositionCode"
).
toString
():
null
;
String
positionType
=
par
.
containsKey
(
"positionType"
)?
par
.
get
(
"positionType"
).
toString
():
null
;
return
orgUsrMapper
.
exportToExcel
(
parentId
,
bizOrgName
,
internalPositionCode
,
positionType
);
}
@Override
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
aeca182c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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