Commit 809e8e21 authored by KeYong's avatar KeYong

修改bug

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