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
9024e252
Commit
9024e252
authored
Oct 22, 2021
by
李腾威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联动单位导出增加过滤
parent
0fa59747
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
LinkageUnitMapper.java
...amos/boot/module/common/api/mapper/LinkageUnitMapper.java
+1
-1
ILinkageUnitService.java
...s/boot/module/common/api/service/ILinkageUnitService.java
+1
-1
LinkageUnitMapper.xml
...ommon-api/src/main/resources/mapper/LinkageUnitMapper.xml
+5
-0
LinkageUnitServiceImpl.java
...odule/common/biz/service/impl/LinkageUnitServiceImpl.java
+3
-2
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+3
-2
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/LinkageUnitMapper.java
View file @
9024e252
...
@@ -60,6 +60,6 @@ public interface LinkageUnitMapper extends BaseMapper<LinkageUnit> {
...
@@ -60,6 +60,6 @@ public interface LinkageUnitMapper extends BaseMapper<LinkageUnit> {
Page
<
List
<
LinkageUnitDto
>>
getEmergencyLinkageUnitList
(
IPage
<
LinkageUnitDto
>
page
,
String
unitName
,
Page
<
List
<
LinkageUnitDto
>>
getEmergencyLinkageUnitList
(
IPage
<
LinkageUnitDto
>
page
,
String
unitName
,
String
linkageUnitType
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
);
String
linkageUnitType
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
);
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
);
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/service/ILinkageUnitService.java
View file @
9024e252
...
@@ -43,7 +43,7 @@ public interface ILinkageUnitService {
...
@@ -43,7 +43,7 @@ public interface ILinkageUnitService {
*/
*/
public
List
<
Menu
>
getEmergencyLinkageUnitCodeGroupBy
(
String
type
,
String
rootName
);
public
List
<
Menu
>
getEmergencyLinkageUnitCodeGroupBy
(
String
type
,
String
rootName
);
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
);
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
);
List
<
LinkageUnitDto
>
queryForLinkageUnitList
(
Boolean
isDelete
);
List
<
LinkageUnitDto
>
queryForLinkageUnitList
(
Boolean
isDelete
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/LinkageUnitMapper.xml
View file @
9024e252
...
@@ -141,6 +141,11 @@
...
@@ -141,6 +141,11 @@
<if
test=
"linkageUnitTypeCode != null and linkageUnitTypeCode != ''"
>
<if
test=
"linkageUnitTypeCode != null and linkageUnitTypeCode != ''"
>
AND a.linkage_unit_type_code =#{linkageUnitTypeCode}
AND a.linkage_unit_type_code =#{linkageUnitTypeCode}
</if>
</if>
<if
test=
"emergencyLinkageUnitCode != null and emergencyLinkageUnitCode != '' "
>
<if
test=
"emergencyLinkageUnitCode != '-1'"
>
AND clu.emergency_linkage_unit_code =#{emergencyLinkageUnitCode}
</if>
</if>
order by a.rec_date desc
order by a.rec_date desc
</select>
</select>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/LinkageUnitServiceImpl.java
View file @
9024e252
...
@@ -304,8 +304,8 @@ public class LinkageUnitServiceImpl extends BaseService<LinkageUnitDto, LinkageU
...
@@ -304,8 +304,8 @@ public class LinkageUnitServiceImpl extends BaseService<LinkageUnitDto, LinkageU
}
}
@Override
@Override
public
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
)
{
public
List
<
LinkageUnitDto
>
exportToExcel
(
String
unitName
,
String
linkageUnitTypeCode
,
String
emergencyLinkageUnitCode
)
{
return
linkageUnitMapper
.
exportToExcel
(
unitName
,
linkageUnitTypeCode
);
return
linkageUnitMapper
.
exportToExcel
(
unitName
,
linkageUnitTypeCode
,
emergencyLinkageUnitCode
);
}
}
}
}
\ No newline at end of file
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 @
9024e252
...
@@ -316,10 +316,11 @@ public class ExcelServiceImpl {
...
@@ -316,10 +316,11 @@ public class ExcelServiceImpl {
if
(
par
.
size
()>
0
)
{
if
(
par
.
size
()>
0
)
{
LinkageUnitDtoList
=
linkageUnitServiceImpl
.
exportToExcel
(
par
.
containsKey
(
"unitName"
)?
par
.
get
(
"unitName"
).
toString
():
null
,
LinkageUnitDtoList
=
linkageUnitServiceImpl
.
exportToExcel
(
par
.
containsKey
(
"unitName"
)?
par
.
get
(
"unitName"
).
toString
():
null
,
par
.
containsKey
(
"linkageUnitTypeCode"
)?
par
.
get
(
"linkageUnitTypeCode"
).
toString
():
null
par
.
containsKey
(
"linkageUnitTypeCode"
)?
par
.
get
(
"linkageUnitTypeCode"
).
toString
():
null
,
par
.
containsKey
(
"emergencyLinkageUnitCode"
)?
par
.
get
(
"emergencyLinkageUnitCode"
).
toString
():
null
);
);
}
else
{
}
else
{
LinkageUnitDtoList
=
linkageUnitServiceImpl
.
exportToExcel
(
null
,
null
);
LinkageUnitDtoList
=
linkageUnitServiceImpl
.
exportToExcel
(
null
,
null
,
null
);
}
}
List
<
Map
>
linkageUnitListMap
=
JSONArray
.
parseArray
(
JSONArray
.
toJSONString
(
LinkageUnitDtoList
),
Map
.
class
);
List
<
Map
>
linkageUnitListMap
=
JSONArray
.
parseArray
(
JSONArray
.
toJSONString
(
LinkageUnitDtoList
),
Map
.
class
);
...
...
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