Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
b4b0c3d9
Commit
b4b0c3d9
authored
May 12, 2021
by
jiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交Excel导出机顶盒运维信息 不用分页
parent
1ea1c297
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
2 deletions
+47
-2
TBoxOperationMapper.java
...n/java/cn/chnmuseum/party/mapper/TBoxOperationMapper.java
+8
-0
TBoxOperationService.java
...java/cn/chnmuseum/party/service/TBoxOperationService.java
+8
-0
TBoxOperationServiceImpl.java
...hnmuseum/party/service/impl/TBoxOperationServiceImpl.java
+5
-0
TBoxOperationController.java
...nmuseum/party/web/controller/TBoxOperationController.java
+2
-2
TBoxOperationMapper.xml
src/main/resources/mapper/TBoxOperationMapper.xml
+24
-0
No files found.
src/main/java/cn/chnmuseum/party/mapper/TBoxOperationMapper.java
View file @
b4b0c3d9
...
...
@@ -24,5 +24,13 @@ public interface TBoxOperationMapper extends BaseMapper<TBoxOperation> {
List
<
TBoxOperation
>
selectPageList
(
Page
<
TBoxOperation
>
page
,
@Param
(
"tBoxOperation"
)
TBoxOperation
tBoxOperation
);
/**
* 不分页查询
*
* @param tBoxOperation
* @return
*/
List
<
TBoxOperation
>
selectListA
(
@Param
(
"tBoxOperation"
)
TBoxOperation
tBoxOperation
);
List
<
TBoxOperation
>
selectBoxPage
(
@Param
(
"user"
)
TUser
user
);
}
src/main/java/cn/chnmuseum/party/service/TBoxOperationService.java
View file @
b4b0c3d9
...
...
@@ -23,5 +23,13 @@ public interface TBoxOperationService extends IService<TBoxOperation> {
Page
<
TBoxOperation
>
selectPage
(
Page
<
TBoxOperation
>
page
,
TBoxOperation
tBoxOperation
);
/**
* 查询List不分页
* @param tBoxOperation
* @return
*/
List
<
TBoxOperation
>
selectListA
(
TBoxOperation
tBoxOperation
);
List
<
TBoxOperation
>
selectBoxList
(
TUser
user
);
}
src/main/java/cn/chnmuseum/party/service/impl/TBoxOperationServiceImpl.java
View file @
b4b0c3d9
...
...
@@ -44,6 +44,11 @@ public class TBoxOperationServiceImpl extends ServiceImpl<TBoxOperationMapper, T
return
page
.
setRecords
(
tBoxOperationMapper
.
selectPageList
(
page
,
tBoxOperation
));
}
@Override
public
List
<
TBoxOperation
>
selectListA
(
TBoxOperation
tBoxOperation
)
{
return
tBoxOperationMapper
.
selectListA
(
tBoxOperation
);
}
@Override
public
List
<
TBoxOperation
>
selectBoxList
(
TUser
user
)
{
List
<
TBoxOperation
>
list
=
tBoxOperationMapper
.
selectBoxPage
(
user
);
...
...
src/main/java/cn/chnmuseum/party/web/controller/TBoxOperationController.java
View file @
b4b0c3d9
...
...
@@ -352,9 +352,9 @@ public class TBoxOperationController extends BaseController {
}
Page
<
TBoxOperation
>
page
=
null
;
try
{
page
=
this
.
tBoxOperationService
.
selectPage
(
getPage
(),
tBoxOperation
);
List
<
TBoxOperation
>
records
=
this
.
tBoxOperationService
.
selectListA
(
tBoxOperation
);
//
List
<
TBoxOperation
>
records
=
page
.
getRecords
();
fillAreaName
(
records
);
//导出excel
ExcelWriter
writer
=
ExcelUtil
.
getWriter
();
...
...
src/main/resources/mapper/TBoxOperationMapper.xml
View file @
b4b0c3d9
...
...
@@ -128,4 +128,28 @@
order by b.create_time desc
</select>
<select
id=
"selectListA"
resultType=
"cn.chnmuseum.party.model.TBoxOperation"
>
SELECT b.id,b.organ_id,b.mac,b.status,b.area_id,b.create_time,b.update_time,r.name organ_name ,u.user_name
FROM t_box_operation b
left join t_organ r on r.id = b.organ_id
left join t_user u on u.org_id = b.organ_id and u.type = '3'
where 1=1
<if
test=
"tBoxOperation.organId != null and tBoxOperation.organId != '' "
>
and b.organ_id =#{tBoxOperation.organId}
</if>
<if
test=
"tBoxOperation.status != null"
>
and b.status =#{tBoxOperation.status}
</if>
<if
test=
"tBoxOperation.areaId != null and tBoxOperation.areaId != '' "
>
and b.area_id = #{tBoxOperation.areaId}
</if>
<if
test=
"tBoxOperation.areaName != null and tBoxOperation.areaName != '' "
>
and b.area_id LIKE concat(#{tBoxOperation.areaName}, '%')
</if>
<if
test=
"tBoxOperation.organCode != null and tBoxOperation.organCode != '' "
>
and r.code LIKE concat(#{tBoxOperation.organCode}, '%')
</if>
order by b.create_time desc
</select>
</mapper>
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