Commit 809e8e21 authored by KeYong's avatar KeYong

修改bug

parent 8cadd31d
...@@ -23,6 +23,7 @@ import org.slf4j.Logger; ...@@ -23,6 +23,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
...@@ -44,6 +45,7 @@ public class PlanVisual3dController extends BaseController { ...@@ -44,6 +45,7 @@ public class PlanVisual3dController extends BaseController {
@Autowired @Autowired
private IPlanVisual3dService planVisual3dService; private IPlanVisual3dService planVisual3dService;
@Lazy
@Autowired @Autowired
private IEmergencyTaskService emergencyTaskService; private IEmergencyTaskService emergencyTaskService;
......
...@@ -127,25 +127,25 @@ ...@@ -127,25 +127,25 @@
</select> </select>
<select id="getStatisticsCheck" resultType="java.util.HashMap"> <select id="getStatisticsCheck" resultType="java.util.HashMap">
<![CDATA[
SELECT IFNULL(d.STATUS,'') AS type, count(1) as value SELECT IFNULL(d.STATUS,'') AS type, count(1) as value
FROM p_plan_task_detail d FROM p_plan_task_detail d
left JOIN p_plan_task t on t.id=d.task_no left JOIN p_plan_task t on t.id=d.task_no
WHERE WHERE
DATEDIFF(t.begin_time,CURRENT_DATE) <= 0 AND DATEDIFF(t.end_time,CURRENT_DATE) >= 0 DATEDIFF(t.begin_time,CURRENT_DATE) <![CDATA[<=]]> 0 AND DATEDIFF(t.end_time,CURRENT_DATE) <![CDATA[>=]]> 0
AND (t.org_code like CONCAT(#{orgCode},'-%') OR t.org_code = #{orgCode}) <if test="orgCode != null and orgCode != ''">
AND d.status = 0 AND (t.org_code like CONCAT(#{orgCode},'%') OR t.org_code = #{orgCode})
UNION ALL </if>
select AND d.status = 0
is_ok as type,count(1) as value UNION ALL
from p_check a select
where is_ok as type,count(1) as value
TO_DAYS(a.check_time) = TO_DAYS(CURRENT_DATE) from p_check a
<if test="orgCode != null and orgCode != ''"> where
AND (a.org_code like CONCAT(#{orgCode},'%') OR a.org_code = #{orgCode}) TO_DAYS(a.check_time) = TO_DAYS(CURRENT_DATE)
</if> <if test="orgCode != null and orgCode != ''">
AND (a.org_code like CONCAT(#{orgCode},'%') OR a.org_code = #{orgCode})
</if>
GROUP BY a.is_ok GROUP BY a.is_ok
]]>
</select> </select>
<select id="getRiskErrorTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo"> <select id="getRiskErrorTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo">
......
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