Commit f75450fe authored by 李秀明's avatar 李秀明

fix(消防巡查): 重做巡查计划:重做完后页面默认没有查出来,需要选择时间才能查出来

【web端】站端3711:运维管理>消防巡查>重做巡查计划: 重做完后页面默认没有查出来,需要选择时间才能查出来 Closes http://113.142.68.105:5080/zentao/bug-view-15607.html
parent 96224594
...@@ -153,7 +153,7 @@ public class PointTreeVo { ...@@ -153,7 +153,7 @@ public class PointTreeVo {
private String groupType; private String groupType;
/** /**
* 画布id * 机构编码
*/ */
private String bizOrgCode; private String bizOrgCode;
} }
...@@ -263,12 +263,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService { ...@@ -263,12 +263,6 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
@Override @Override
public Page<HashMap<String, Object>> getPlanTaskInfoNew(PlanTaskPageParam params) { 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); long total = planTaskMapper.countPlanTask(params);
List<HashMap<String, Object>> content = planTaskMapper.getPlanTaskInfo(params); List<HashMap<String, Object>> content = planTaskMapper.getPlanTaskInfo(params);
Page<HashMap<String, Object>> result = new PageImpl<HashMap<String, Object>>(content, params, total); Page<HashMap<String, Object>> result = new PageImpl<HashMap<String, Object>>(content, params, total);
......
...@@ -13,44 +13,24 @@ ...@@ -13,44 +13,24 @@
<where> <where>
<if test="pointNo!=null"> and d.point_no like concat('%',#{pointNo},'%')</if> <if test="pointNo!=null"> and d.point_no like concat('%',#{pointNo},'%')</if>
<if test="pointName!=null"> and d.name like concat('%',#{pointName},'%')</if> <if test="pointName!=null"> and d.name like concat('%',#{pointName},'%')</if>
<!-- AND--> <if test="beginDate != null and endDate != null and endDate != '' and beginDate != ''">
<!-- ((<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_Time <![CDATA[<=]]> #{endDate}</if>)--> AND a.begin_time <![CDATA[>=]]> #{beginDate} AND a.end_time <![CDATA[<=]]> #{endDate}
<!-- OR--> </if>
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{beginDate}</if>)--> <if test="(beginDate == null or beginDate == '') and endDate != null and endDate != ''">
<!-- OR--> AND a.end_time <![CDATA[<=]]> #{endDate}
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{endDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)--> </if>
<!-- OR--> <if test="beginDate != null and beginDate != '' and (endDate == null or endDate == '')">
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)--> and a.begin_time <![CDATA[>=]]> #{beginDate}
<!-- )--> </if>
<if test="beginDate!=null and endDate!=null and endDate != '' and beginDate != ''"> <if test="status!=null"> and b.is_finish = #{status}</if>
and a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_Time <![CDATA[<=]]> #{endDate} <if test="planId!=null"> and a.plan_id = #{planId}</if>
</if> <if test="routeId!=null"> and a.route_id = #{routeId}</if>
<if test="orgCode!=null">
<if test="beginDate=='' and endDate != null and endDate != ''"> and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
AND a.end_Time <![CDATA[<=]]> #{endDate} </if>
</if> <if test="searchDay!=null and searchDay != '' and searchDay == 1">
and a.`check_date` = curdate()
<if test="beginDate!=null and beginDate != '' and endDate == ''"> </if>
and a.begin_Time <![CDATA[>=]]> #{beginDate}
</if>
<if test="beginDate!='' and beginDate != null and endDate == ''">
AND a.begin_Time <![CDATA[>=]]> #{beginDate}
</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> </where>
order by b.id) t order by b.id) t
</select> </select>
...@@ -99,37 +79,15 @@ ...@@ -99,37 +79,15 @@
<where> <where>
<if test="pointNo!=null"> and d.point_no like concat('%',#{pointNo},'%')</if> <if test="pointNo!=null"> and d.point_no like concat('%',#{pointNo},'%')</if>
<if test="pointName!=null"> and d.name like concat('%',#{pointName},'%')</if> <if test="pointName!=null"> and d.name like concat('%',#{pointName},'%')</if>
<!-- AND--> <if test="beginDate != null and endDate != null and beginDate != '' and endDate != '' ">
<!-- ((<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_Time <![CDATA[<=]]> #{endDate}</if>)--> AND a.begin_time <![CDATA[>=]]> #{beginDate} AND a.end_time <![CDATA[<=]]> #{endDate}
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{beginDate} AND a.end_Time <![CDATA[>=]]> #{beginDate}</if>)-->
<!-- OR-->
<!-- (<if test="beginDate!=null and endDate!=null">a.begin_Time <![CDATA[<=]]> #{endDate} AND a.end_Time <![CDATA[>=]]> #{endDate}</if>)-->
<!-- 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 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>
<if test="beginDate!=null and beginDate != '' and endDate == ''"> <if test="(beginDate == null or beginDate == '') and endDate != null and endDate != ''">
and a.begin_Time <![CDATA[>=]]> #{beginDate} AND a.end_time <![CDATA[<=]]> #{endDate}
</if> </if>
<if test="beginDate != null and beginDate != '' and (endDate == null or endDate == '')">
<if test="beginDate=='' and beginDate != null and endDate != ''"> and a.begin_time <![CDATA[>=]]> #{beginDate}
AND a.begin_Time <![CDATA[>=]]> #{beginDate}
</if>
<if test="endDate=='' and endDate != null">
AND a.end_Time <![CDATA[<=]]> #{endDate}
</if> </if>
<if test="status!=null"> and b.is_finish = #{status}</if> <if test="status!=null"> and b.is_finish = #{status}</if>
<if test="routeId!=null"> and a.route_id = #{routeId}</if> <if test="routeId!=null"> and a.route_id = #{routeId}</if>
<if test="planId!=null"> and a.plan_id = #{planId}</if> <if test="planId!=null"> and a.plan_id = #{planId}</if>
...@@ -141,7 +99,7 @@ ...@@ -141,7 +99,7 @@
and a.`check_date` = curdate() and a.`check_date` = curdate()
</if> </if>
</where> </where>
order by b.id order by b.id desc
<choose> <choose>
<when test="pageSize==-1"></when> <when test="pageSize==-1"></when>
<when test="pageSize!=-1">limit #{offset},#{pageSize}</when> <when test="pageSize!=-1">limit #{offset},#{pageSize}</when>
...@@ -276,7 +234,7 @@ ...@@ -276,7 +234,7 @@
p_plan_task pt p_plan_task pt
INNER JOIN p_plan p ON pt.plan_id = p.id INNER JOIN p_plan p ON pt.plan_id = p.id
) a ) a
<include refid="plan-task-app-where"/> <include refid="plan-task-app-where"/>
<if test="orderBy != null and orderBy != ''"> order by ${orderBy} </if> <if test="orderBy != null and orderBy != ''"> order by ${orderBy} </if>
...@@ -527,7 +485,7 @@ ...@@ -527,7 +485,7 @@
ptd.route_id routeId, ptd.route_id routeId,
ptd.plan_id planId, ptd.plan_id planId,
ptd.user_id AS userId, ptd.user_id AS userId,
ptd.end_time AS endTime, ptd.end_time AS endTime,
pptd.id as planTaskDetailId, pptd.id as planTaskDetailId,
(select p_plan.dept_id from p_plan where p_plan.id=ptd.plan_id) depId (select p_plan.dept_id from p_plan where p_plan.id=ptd.plan_id) depId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment