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
49193807
Commit
49193807
authored
Nov 22, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检计划查询
parent
ca27f25f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
+30
-11
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+6
-0
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+24
-11
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
49193807
...
...
@@ -263,6 +263,12 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
@Override
public
Page
<
HashMap
<
String
,
Object
>>
getPlanTaskInfoNew
(
PlanTaskPageParam
params
)
{
if
(
StringUtils
.
isEmpty
(
params
.
getBeginDate
()))
{
params
.
setBeginDate
(
""
);
}
if
(
StringUtils
.
isEmpty
(
params
.
getEndDate
()))
{
params
.
setEndDate
(
""
);
}
long
total
=
planTaskMapper
.
countPlanTask
(
params
);
List
<
HashMap
<
String
,
Object
>>
content
=
planTaskMapper
.
getPlanTaskInfo
(
params
);
Page
<
HashMap
<
String
,
Object
>>
result
=
new
PageImpl
<
HashMap
<
String
,
Object
>>(
content
,
params
,
total
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
49193807
...
...
@@ -24,27 +24,33 @@
<!-- )-->
<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=='' and endDate != null and endDate != ''"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"beginDate!=null and beginDate != '' and endDate == ''"
>
and a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
<if
test=
"beginDate=='' and beginDate != null and endDate == ''"
>
AND a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
<if
test=
"status!=null"
>
and b.is_finish = #{status}
</if>
<if
test=
"planId!=null"
>
and a.plan_id = #{planId}
</if>
<if
test=
"routeId!=null"
>
and a.route_id = #{routeId}
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"searchDay!=null and searchDay != '' and searchDay == 1"
>
and a.`check_date` = curdate()
</if>
<if
test=
"endDate=='' and endDate != null and beginDate == ''"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"status!=null"
>
and b.is_finish = #{status}
</if>
<if
test=
"planId!=null"
>
and a.plan_id = #{planId}
</if>
<if
test=
"routeId!=null"
>
and a.route_id = #{routeId}
</if>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
<if
test=
"searchDay!=null and searchDay != '' and searchDay == 1"
>
and a.`check_date` = curdate()
</if>
</where>
order by b.id) t
</select>
...
...
@@ -116,6 +122,13 @@
</if>
<if
test=
"beginDate=='' and beginDate != null and endDate != ''"
>
AND a.begin_Time
<![CDATA[>=]]>
#{beginDate}
</if>
<if
test=
"endDate=='' and endDate != null"
>
AND a.end_Time
<![CDATA[<=]]>
#{endDate}
</if>
<if
test=
"status!=null"
>
and b.is_finish = #{status}
</if>
<if
test=
"routeId!=null"
>
and a.route_id = #{routeId}
</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