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
25a5bdc8
Commit
25a5bdc8
authored
Apr 12, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检导出增加参数
parent
5297af3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
PlanTaskController.java
...n/amos/patrol/business/controller/PlanTaskController.java
+3
-4
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+6
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanTaskController.java
View file @
25a5bdc8
...
...
@@ -225,15 +225,14 @@ public class PlanTaskController extends AbstractBaseController {
@ApiOperation
(
value
=
"执行计划导出"
,
notes
=
"执行计划导出"
)
@GetMapping
(
value
=
"/reportPlanTaskNew"
,
produces
=
"application/vnd.ms-excel;charset=UTF-8"
)
public
void
planTaskReportNew
(
@ApiParam
(
value
=
"导出参数"
,
required
=
false
)
@RequestBody
(
required
=
false
)
PlanTaskPageParam
params
,
@ApiParam
(
value
=
"导出参数"
,
required
=
false
)
PlanTaskPageParam
params
,
HttpServletResponse
response
)
{
try
{
PlanTaskPageParam
paramsk
=
new
PlanTaskPageParam
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
params
k
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
params
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
List
<
PlanTaskVo
>
list
=
planTaskService
.
planTaskReportNew
(
params
k
);
List
<
PlanTaskVo
>
list
=
planTaskService
.
planTaskReportNew
(
params
);
String
fileName
=
"计划执行"
+
new
Date
().
getTime
();
FileHelper
.
exportExcel
(
list
,
"计划执行"
,
"计划执行"
,
PlanTaskVo
.
class
,
fileName
+
".xls"
,
response
);
}
catch
(
Exception
e
)
{
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
25a5bdc8
...
...
@@ -22,15 +22,15 @@
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null and endDate != '' and
endDate == null
"
>
<if
test=
"beginDate!=null and endDate!=null and endDate != '' and
beginDate != ''
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate==
null
and endDate != null and endDate != ''"
>
<if
test=
"beginDate==
''
and endDate != null and endDate != ''"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate!=null and beginDate != '' and endDate ==
null
"
>
<if
test=
"beginDate!=null and beginDate != '' and endDate ==
''
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
...
...
@@ -104,15 +104,15 @@
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- )-->
<if
test=
"beginDate!=null and endDate!=null and endDate != '' and
endDate == null
"
>
<if
test=
"beginDate!=null and endDate!=null and endDate != '' and
beginDate != ''
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate} AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate==
null
and endDate != null and endDate != ''"
>
<if
test=
"beginDate==
''
and endDate != null and endDate != ''"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate!=null and beginDate != '' and endDate ==
null
"
>
<if
test=
"beginDate!=null and beginDate != '' and endDate ==
''
"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
...
...
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